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

Efficient serialization of agtboost model objects #59

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Blunde1
Copy link
Owner

@Blunde1 Blunde1 commented Aug 7, 2022

Resolves #57

@Blunde1
Copy link
Owner Author

Blunde1 commented Aug 7, 2022

Running

set.seed(123)
x <- runif(5000, 0, 10)
y <- rnorm(5000, x, 1)
mod <- gbt.train(y, as.matrix(x))
gbt.save(mod, 'gbt_model.rds')
mod <- gbt.load('gbt_model.rds')
mod

I obtain

> mod
Error in sprintf("C++ object <%s> of class '%s' <%s>", externalptr_address(pointer),  : 
  external pointer is not valid

@Blunde1 Blunde1 marked this pull request as draft August 7, 2022 15:35
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

Successfully merging this pull request may close these issues.

Refactor serialization to be more efficient
1 participant