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
genetic_data=pd.read_csv('https://github.com/EpistasisLab/scikit-rebate/raw/master/data/''GAMETES_Epistasis_2-Way_20atts_0.4H_EDM-1_1.tsv.gz',
sep='\t', compression='gzip')
# # Now we convert to a numpy array#features, labels=genetic_data.drop('class', axis=1).values, genetic_data['class'].values
This would be as simple as changing (in fit() and 'predict()`)
self._X=check_array(X)
self._y=column_or_1d(y)
The text was updated successfully, but these errors were encountered:
aadu
added a commit
to aadu/scikit-rebate
that referenced
this issue
Aug 7, 2020
Currently the fit method fails if you pass a pandas dataframe object to the
fit()
andpredict()
adding using the sklearn util check_array (http://scikit-learn.org/stable/modules/generated/sklearn.utils.check_array.html#sklearn.utils.check_array) will by default convert the pandasdf
to an at 2D numpy array which can then be used without code change from the user.i.e
In the examples you load data as a data frame
This would be as simple as changing (in
fit()
and 'predict()`)The text was updated successfully, but these errors were encountered: