Skip to content

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

2 participants