Created
May 14, 2020 16:34
-
-
Save RokoMijic/847a2e0a1d07ba1f35e426449a437343 to your computer and use it in GitHub Desktop.
umap_stacktrace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
AttributeError Traceback (most recent call last) | |
<timed exec> in <module> | |
~/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/umap/umap_.py in fit(self, X, y) | |
1935 self.output_metric in ("euclidean", "l2"), | |
1936 self.random_state is None, | |
-> 1937 self.verbose, | |
1938 )[inverse] | |
1939 | |
~/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/umap/umap_.py in simplicial_set_embedding(data, graph, n_components, initial_alpha, a, b, gamma, negative_sample_rate, n_epochs, init, random_state, metric, metric_kwds, output_metric, output_metric_kwds, euclidean_output, parallel, verbose) | |
1036 random_state, | |
1037 metric=metric, | |
-> 1038 metric_kwds=metric_kwds, | |
1039 ) | |
1040 expansion = 10.0 / np.abs(initialisation).max() | |
~/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/umap/spectral.py in spectral_layout(data, graph, dim, random_state, metric, metric_kwds) | |
279 random_state, | |
280 metric=metric, | |
--> 281 metric_kwds=metric_kwds, | |
282 ) | |
283 | |
~/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/umap/spectral.py in multi_component_layout(data, graph, n_components, component_labels, dim, random_state, metric, metric_kwds) | |
166 random_state, | |
167 metric=metric, | |
--> 168 metric_kwds=metric_kwds, | |
169 ) | |
170 else: | |
~/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/umap/spectral.py in component_layout(data, n_components, component_labels, dim, random_state, metric, metric_kwds) | |
87 if metric in SPECIAL_METRICS: | |
88 distance_matrix = pairwise_special_metric( | |
---> 89 component_centroids, metric=metric | |
90 ) | |
91 elif metric in SPARSE_SPECIAL_METRICS: | |
~/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/umap/distances.py in pairwise_special_metric(X, Y, metric, kwds) | |
1249 def pairwise_special_metric(X, Y=None, metric="hellinger", kwds=None): | |
1250 if callable(metric): | |
-> 1251 kwd_vals = tuple(kwds.values()) | |
1252 | |
1253 @numba.njit(fastmath=True) | |
AttributeError: 'NoneType' object has no attribute 'values' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment