Git Product home page Git Product logo

Comments (5)

ihopethiswillfi avatar ihopethiswillfi commented on July 25, 2024

Same problem when using:

from sklearn.ensemble import RandomForestRegressor

data = fetch_california_housing()
X = pd.DataFrame(data.data, columns=data.feature_names).values
y = pd.Series(data.target, name='label').values

rf = RandomForestRegressor(n_jobs=-1, max_depth=5)
feat_selector = BorutaPy(rf, n_estimators=100, verbose=3, random_state=2)
feat_selector.fit(X, y)```

from boruta_py.

salml avatar salml commented on July 25, 2024

I'm having a similar issue on this Kaggle dataset which is really easy to predict (.99 f1 score with a random forest, default hyperparameters). Judging by the output, it may be because all of the features are relevant?

from boruta_py.

danielhomola avatar danielhomola commented on July 25, 2024

this should been handled now with the latest pr, thanks to @guitarmind

from boruta_py.

jon-mic avatar jon-mic commented on July 25, 2024

I am still facing this issue with the iris dataset. I installed the most recent version of BorutaPy directly from github and get the error if no features are rejected.

from sklearn.datasets import load_iris

iris = load_iris()
iris = pd.DataFrame(data= np.c_[iris['data'], iris['target']],
                     columns= iris['feature_names'] + ['target'])
X = iris.drop('target',1).values
y = iris['target'].values

Adding iris['test'] = 1 an arbitrary column that leads to rejection does not raise the error.

from boruta_py.

danielhomola avatar danielhomola commented on July 25, 2024

I forgot to update the pypy version.. please install the latest version from github directly.

from boruta_py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.