-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plot mistake #28
Comments
Following |
I've experienced the same problem with the tutorial. In case it helps, here are the modules reported by
|
To be precise, I may be getting the error in a different place:
|
supposed to be solved by modified line as follow #27 but for me it still doesn't work, showed the same error information even the log showed the modified line with int() in ice.py Please checkUpdate Restarting the kernel did the trick |
There is a problem in the visualization part. When I am trying to plot the graph in the example, I see the following mistake:
TypeError Traceback (most recent call last)
in
12 ice_plot(ice_df, frac_to_plot=0.1,
13 color_by='x3', cmap=PuOr,
---> 14 ax=ice_ax);
15
16 ice_ax.set_xlabel('$X_2$');
C:\ProgramData\Anaconda3\lib\site-packages\pycebox\ice.py in ice_plot(ice_data, frac_to_plot, plot_points, point_kwargs, x_quantile, plot_pdp, centered, centered_quantile, color_by, cmap, ax, pdp_kwargs, **kwargs)
128 if frac_to_plot < 1.:
129 n_cols = ice_data.shape[1]
--> 130 icols = np.random.choice(n_cols, size=frac_to_plot * n_cols, replace=False)
131 plot_ice_data = ice_data.iloc[:, icols]
132 else:
mtrand.pyx in mtrand.RandomState.choice()
TypeError: 'float' object cannot be interpreted as an integer
The text was updated successfully, but these errors were encountered: