Mercurial > hg > plosone_underreview
diff notebooks/test_hubness.ipynb @ 18:ed109218dd4b branch-tests
rename result scripts and more tests
author | Maria Panteli |
---|---|
date | Tue, 12 Sep 2017 23:18:19 +0100 |
parents | ff18f364bbac |
children | 29b5ee381305 bd284065aeb6 |
line wrap: on
line diff
--- a/notebooks/test_hubness.ipynb Tue Sep 12 19:11:43 2017 +0100 +++ b/notebooks/test_hubness.ipynb Tue Sep 12 23:18:19 2017 +0100 @@ -19,7 +19,7 @@ "%autoreload 2\n", "\n", "sys.path.append('../')\n", - "import scripts.results as results\n", + "import scripts.outliers as outliers\n", "import scripts.utils_spatial as utils_spatial" ] }, @@ -68,14 +68,14 @@ ], "source": [ "X_list, Y, Yaudio = pickle.load(open('../data/lda_data_melodia_8.pickle','rb'))\n", - "ddf = results.load_metadata(Yaudio, metadata_file='../data/metadata.csv')\n", + "ddf = outliers.load_metadata(Yaudio, metadata_file='../data/metadata.csv')\n", "w, data_countries = utils_spatial.get_neighbors_for_countries_in_dataset(Y)\n", "w_dict = utils_spatial.from_weights_to_dict(w, data_countries)\n", "Xrhy, Xmel, Xmfc, Xchr = X_list\n", "X = np.concatenate((Xrhy, Xmel, Xmfc, Xchr), axis=1)\n", "\n", "# global outliers\n", - "df_global, threshold, MD = results.get_outliers_df(X, Y, chi2thr=0.999)" + "df_global, threshold, MD = outliers.get_outliers_df(X, Y, chi2thr=0.999)" ] }, {