Skip to content

Efficient serialization of agtboost model objects#59

Draft
Blunde1 wants to merge 1 commit into
masterfrom
serialization-rds
Draft

Efficient serialization of agtboost model objects#59
Blunde1 wants to merge 1 commit into
masterfrom
serialization-rds

Conversation

@Blunde1

@Blunde1 Blunde1 commented Aug 7, 2022

Copy link
Copy Markdown
Owner

Resolves #57

@Blunde1

Blunde1 commented Aug 7, 2022

Copy link
Copy Markdown
Owner Author

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