Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

combine py-earth with sklearn.ensemble.BaggingRegressor #163

@zrq0123

Description

@zrq0123

Hi, in my project, I combine pyearth with BaggingRegressor to get a bagging result, my code is as follow:
bagger=BaggingRegressor(base_estimator=Earth(penalty =20,feature_importance_type="rss",max_terms =10,use_fast=True,allow_missing=True),n_estimators=1000,n_jobs=-1,random_state=random.randint(1,100),bootstrap=True,max_features =5)
In one small scale dataset, the code run correctly, but in a large one (4381 cols * 832 rows), the code give a ValueError: assignment destination is read-only, and if I set the parameter n_jobs =1 ,the code can run correctly. So the py-earth have some bugs or error combine with BaggingRegressor on multiple CPUs, which can speed up the computing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions