Closed moneyDboat closed 7 years ago
@moneyDboat can you upload example data and expand out those arguments so that we can reproduce and explore that bug?
I was watching mushrooms.ipynb in "ContextLab/hypertools-paper-notebooks" and use "mushrooms.csv". The code is following. I think "import sys" can fix this simple bug.
import pandas as pd
import hypertools as hyp
data = pd.read_csv('mushrooms.csv')
cluster_labels = hyp.tools.cluster(data, n_clusters=23, ndims=3)
hyp.plot(data, 'o', point_colors= cluster_labels, ndims=2)
@moneyDboat yep, you are right. import sys
is missing at the top. This brought up another issue though in the notebook, that I'll also fix. We replaced the point_colors
kwarg with group
, but didn't update it in the notebook on that commented line. If you use group
instead of point colors, the code should work. I'll fix that import statement and the notebook today
fixed in 5833a0a, will be in 0.1.7 release
Here's the log