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

fit a model using mapie regressor #660

Open
sraghavan0610 opened this issue Sep 29, 2023 · 1 comment
Open

fit a model using mapie regressor #660

sraghavan0610 opened this issue Sep 29, 2023 · 1 comment

Comments

@sraghavan0610
Copy link

Hi I am trying to use a mapie regressor on top of a trained xgboost model trained using mljar.
This is what I am doing

automl = AutoML(results_path ="AutoML_1) # this will load the best performing model which is xgboost
mapie_re = MapieRegressor(automl, cv=10, random_state=2)
mapie_re.fit(x_train, y_train) 
mapie.predict(x_test)
 

This approach seems to not work so I would like to save the original best performing model as a .pkl or .joblib file. Please advice!

Thanks

@pplonski
Copy link
Contributor

What is the error from MapieRegressor when using AutoML? The good approach might be to use AutoML to find good hyperparameters set and then create model manually which can be used with MapieRegressor.

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

2 participants