Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error for test case from front page #416

Open
Sandy4321 opened this issue Sep 20, 2018 · 6 comments
Open

error for test case from front page #416

Sandy4321 opened this issue Sep 20, 2018 · 6 comments

Comments

@Sandy4321
Copy link

error for test case

code
from auto_ml import Predictor
from auto_ml.utils import get_boston_dataset

df_train, df_test = get_boston_dataset()

column_descriptions = {
'MEDV': 'output',
'CHAS': 'categorical'
}

ml_predictor = Predictor(type_of_estimator='regressor', column_descriptions=column_descriptions)

ml_predictor.train(df_train)

ml_predictor.score(df_test, df_test.MEDV)
q=1

error message

File "E:\my_code\s_auto_ml_test_sep20.py", line 13, in
ml_predictor.train(df_train)
File "C:\Users\sndr\Anaconda3\Lib\site-packages\auto_ml\predictor.py", line 652, in train
X_df = self.fit_transformation_pipeline(X_df, y, estimator_names)
File "C:\Users\sndr\Anaconda3\Lib\site-packages\auto_ml\predictor.py", line 899, in fit_transformation_pipeline
ppl = self._construct_pipeline(model_name=model_names[0], keep_cat_features=self.keep_cat_features)
File "C:\Users\sndr\Anaconda3\Lib\site-packages\auto_ml\predictor.py", line 204, in _construct_pipeline
final_model = utils_models.get_model_from_name(model_name, training_params=params)
File "C:\Users\sndr\Anaconda3\Lib\site-packages\auto_ml\utils_models.py", line 176, in get_model_from_name
model_map['CatBoostRegressor'] = CatBoostRegressor(calc_feature_importance=True)

builtins.TypeError: init() got an unexpected keyword argument 'calc_feature_importance'

@havenS
Copy link

havenS commented Nov 6, 2018

@havenS
Copy link

havenS commented Nov 6, 2018

Had it working with pip install catboost==0.1.1.2

@xingyuezhiji
Copy link

xingyuezhiji commented Nov 21, 2018

Had it working with pip install catboost==0.1.1.2

How can we solve this problem if we use catboost==0.11.1?

@xingyuezhiji
Copy link

Had it working with pip install catboost==0.1.1.2

How can we solve this problem if we use catboost==0.11.1?

I got it! I've deleted the 'calc_feature_importance=True' in utils_models.py,and then it works!

@above-c-level
Copy link

above-c-level commented Dec 5, 2018

Hey there! It appears that this repository is no longer being actively maintained. However, I still think it's a great idea, so I've started working on my own version of it, which you can find here. It's worth pointing out that I've dropped Python 2.7 support, so you'll have to upgrade if you haven't already.

P.S. @xingyuezhiji is correct, that fixes the issue.

@elnurmmmdv
Copy link

Had it working with pip install catboost==0.1.1.2

How can we solve this problem if we use catboost==0.11.1?

I got it! I've deleted the 'calc_feature_importance=True' in utils_models.py,and then it works!

Can you please tell me how did you do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants