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

Support RDS format in R package #91

Closed
khrisanfov opened this issue Aug 20, 2017 · 2 comments
Closed

Support RDS format in R package #91

khrisanfov opened this issue Aug 20, 2017 · 2 comments

Comments

@khrisanfov
Copy link

@khrisanfov khrisanfov commented Aug 20, 2017

catboost.fit <- train(....)
head(predict(catboost.fit, X_test)) # it works fine
saveRDS(catboost.fit, "catboost.fit.rds")
catboost.fit <- readRDS("catboost.fit.rds")
head(predict(catboost.fit, X_test)) # caught segfault
*** caught segfault ***
address 0x48, cause 'memory not mapped'

Traceback:
1: .Call("CatBoostGetModelParams_R", model$handle)
2: catboost.get_model_params(modelFit)
3: method$predict(modelFit = modelFit, newdata = newdata, submodels = param)
4: predictionFunction(method = object$modelInfo, modelFit = object$finalModel,     newdata = newdata, preProc = object$preProcess)
5: predict.train(catboost.fit, X_test)
6: predict(catboost.fit, X_test)
7: head(predict(catboost.fit, X_test))
@a4tunado
Copy link
Contributor

@a4tunado a4tunado commented Aug 20, 2017

RDS format is not supported yet. Use catboost.save_model and catboost.load_model instead.

@annaveronika annaveronika changed the title R: Segfault on predict after loading from RDS format Support RDS format in R package Aug 21, 2017
@annaveronika
Copy link
Contributor

@annaveronika annaveronika commented Sep 13, 2018

This is implemented in our release 0.10

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

Successfully merging a pull request may close this issue.

None yet
3 participants