You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This sometimes raises DeprecationWarnings of the following kind:
/Users/nmadnani/anaconda/envs/rsmtool/lib/python3.4/site-packages/sklearn/utils/validation.py:386: DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and willraise ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample.
This happens because the inverse_transform() method of the feature selector requires a 2D array of shape [n_samples, n_features]. So, to get around these warnings we should simply change the SKLL code to be:
Currently, in
model_params
we are using the following to get the coefficients for the selected features for a linear model:This sometimes raises DeprecationWarnings of the following kind:
This happens because the
inverse_transform()
method of the feature selector requires a 2D array of shape [n_samples, n_features]. So, to get around these warnings we should simply change the SKLL code to be:The text was updated successfully, but these errors were encountered: