Hi @BioGoertz I have installed and tested gumbi on both Windows 10 and WSL2 under Anaconda setup. Please note that my numpy version was 1.21.5. I have tried but unable to install a numpy version >=1.15 #<= 1.19.3.
I installed an environment where numpy version is 1.19.3, but when I install other packages, numpy gets upgraded to 1.21.5.
Here are the commands I ran and the errors I got (Any resolution would be very helpful):
import seaborn as sns
cars = sns.load_dataset('mpg').dropna()
ds = gmb.DataSet(cars, outputs=['mpg', 'acceleration'], log_vars=['mpg', 'acceleration', 'weight', 'horsepower', 'displacement'])```
C:\Users\sreedatta\Anaconda3\envs\gumbi_env\lib\site-packages\theano\tensor\elemwise.py:826: RuntimeWarning: invalid value encountered in log
variables = ufunc(*ufunc_args, **ufunc_kwargs)
X = gp.prepare_grid()
y = gp.predict_grid()
gmb.ParrayPlotter(X, y).plot()
sns.scatterplot(data=cars, x=‘horsepower’, y=‘mpg’, color=sns.cubehelix_palette)
TypeError Traceback (most recent call last)
Input In [5], in
2 y = gp.predict_grid()
3 gmb.ParrayPlotter(X, y).plot()
----> 4 sns.scatterplot(data=cars, x=‘horsepower’, y=‘mpg’, color=sns.cubehelix_palette)
File ~\Anaconda3\envs\gumbi_env\lib\site-packages\seaborn_decorators.py:46, in _deprecate_positional_args..inner_f(*args, **kwargs)
36 warnings.warn(
37 "Pass the following variable{} as {}keyword arg{}: {}. "
38 "From version 0.12, the only valid positional argument "
(…)
43 FutureWarning
44 )
45 kwargs.update({k: arg for k, arg in zip(sig.parameters, args)})
—> 46 return f(**kwargs)
File ~\Anaconda3\envs\gumbi_env\lib\site-packages\seaborn\relational.py:827, in scatterplot(x, y, hue, style, size, data, palette, hue_order, hue_norm, sizes, size_order, size_norm, markers, style_order, x_bins, y_bins, units, estimator, ci, n_boot, alpha, x_jitter, y_jitter, legend, ax, **kwargs)
823 return ax
825 p._attach(ax)
→ 827 p.plot(ax, kwargs)
829 return ax
File ~\Anaconda3\envs\gumbi_env\lib\site-packages\seaborn\relational.py:608, in _ScatterPlotter.plot(self, ax, kws)
603 scout_size = max(
604 np.atleast_1d(kws.get(“s”, [])).shape[0],
605 np.atleast_1d(kws.get(“c”, [])).shape[0],
606 )
607 scout_x = scout_y = np.full(scout_size, np.nan)
→ 608 scout = ax.scatter(scout_x, scout_y, **kws)
609 s = kws.pop(“s”, scout.get_sizes())
610 c = kws.pop(“c”, scout.get_facecolors())
File ~\Anaconda3\envs\gumbi_env\lib\site-packages\matplotlib_init_.py:1412, in _preprocess_data..inner(ax, data, *args, **kwargs)
1409 @functools.wraps(func)
1410 def inner(ax, *args, data=None, **kwargs):
1411 if data is None:
→ 1412 return func(ax, *map(sanitize_sequence, args), **kwargs)
1414 bound = new_sig.bind(ax, *args, **kwargs)
1415 auto_label = (bound.arguments.get(label_namer)
1416 or bound.kwargs.get(label_namer))
File ~\Anaconda3\envs\gumbi_env\lib\site-packages\matplotlib\axes_axes.py:4387, in Axes.scatter(self, x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, edgecolors, plotnonfinite, **kwargs)
4384 if edgecolors is None:
4385 orig_edgecolor = kwargs.get(‘edgecolor’, None)
4386 c, colors, edgecolors =
→ 4387 self._parse_scatter_color_args(
4388 c, edgecolors, kwargs, x.size,
4389 get_next_color_func=self._get_patches_for_fill.get_next_color)
4391 if plotnonfinite and colors is None:
4392 c = np.ma.masked_invalid(c)
File ~\Anaconda3\envs\gumbi_env\lib\site-packages\matplotlib\axes_axes.py:4160, in Axes._parse_scatter_color_args(c, edgecolors, kwargs, xsize, get_next_color_func)
4158 if kwcolor is not None:
4159 try:
→ 4160 mcolors.to_rgba_array(kwcolor)
4161 except ValueError as err:
4162 raise ValueError(
4163 "‘color’ kwarg must be a color or sequence of color "
4164 "specs. For a sequence of values to be color-mapped, use "
4165 “the ‘c’ argument instead.”) from err
File ~\Anaconda3\envs\gumbi_env\lib\site-packages\matplotlib\colors.py:363, in to_rgba_array(c, alpha)
358 if isinstance(c, str):
359 raise ValueError("Using a string of single character colors as "
360 "a color sequence is not supported. The colors can "
361 “be passed as an explicit list instead.”)
→ 363 if len(c) == 0:
364 return np.zeros((0, 4), float)
366 # Quick path if the whole sequence can be directly converted to a numpy
367 # array in one shot.
TypeError: object of type ‘function’ has no len()