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

Set model to another iteration breaks $getParameterAtIteration() for OptimizerAGBM #365

Open
schalkdaniel opened this issue Jan 23, 2023 · 1 comment

Comments

@schalkdaniel
Copy link
Owner

Check:

cboost = boostSplines(iris, "Sepal.Length", loss = LossQuadratic$new(), optimizer = OptimizerAGBM$new())

cboost$model$getEstimatedParameter()
cboost$model$getParameterAtIteration(30)
cboost$model$setToIteration(30, 0)
cboost$model$getEstimatedParameter()
cboost$model$getParameterAtIteration(30)

The parameter do not match.

@schalkdaniel
Copy link
Owner Author

To not crash the tests, this is excluded out in test_json.R

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

1 participant