Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

Commit

Permalink
implement like based classifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Hironsan committed Apr 7, 2017
1 parent 72833a4 commit 79251e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebooks/like_based_classifier.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 40,
"metadata": {},
"outputs": [
{
Expand All @@ -67,7 +67,7 @@
"items['data'] = [[like] for like in items['data']]\n",
"items = reduce_annotation(items)\n",
"X_train, X_test, y_train, y_test = train_test_split(items['data'], items['labels'], test_size=0.4)\n",
"lr = LogisticRegression(C=1000.0)\n",
"lr = LogisticRegression()\n",
"lr.fit(X_train, y_train)\n",
"y_pred = lr.predict(X_test)\n",
"\n",
Expand Down

0 comments on commit 79251e8

Please sign in to comment.