Skip to content

Commit

Permalink
Fix confusing scaler variable name (intel#1608)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokahaiku authored and jason-dai committed Sep 11, 2019
1 parent 4d0d42e commit 59f3e6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/anomaly-detection/anomaly-detection-nyc-taxi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@
"source": [
"#select and standardize data\n",
"data_n = df[['value', 'hours', 'awake']]\n",
"min_max_scaler = preprocessing.StandardScaler()\n",
"np_scaled = min_max_scaler.fit_transform(data_n)\n",
"standard_scaler = preprocessing.StandardScaler()\n",
"np_scaled = standard_scaler.fit_transform(data_n)\n",
"data_n = pd.DataFrame(np_scaled)\n",
"\n",
"#important parameters and train/test size\n",
Expand Down Expand Up @@ -628,7 +628,7 @@
"axs.set_title('the predicted values and actual values (for the test data)')\n",
"\n",
"plt.xlabel('test data index')\n",
"plt.ylabel('number of taxi passengers after min_max_scalar')\n",
"plt.ylabel('number of taxi passengers after scaling')\n",
"plt.legend(loc='upper left')\n",
"plt.show()"
]
Expand Down Expand Up @@ -686,7 +686,7 @@
"\n",
"plt.hlines(threshold, 0, 1000, color='red', label='threshold')\n",
"plt.xlabel('test data index')\n",
"plt.ylabel('difference value after min_max_scalar')\n",
"plt.ylabel('difference value after scaling')\n",
"plt.legend(loc='upper left')\n",
"plt.show()"
]
Expand Down

0 comments on commit 59f3e6e

Please sign in to comment.