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

model reuse #308

Open
yuzhou93 opened this issue Dec 12, 2021 · 1 comment
Open

model reuse #308

yuzhou93 opened this issue Dec 12, 2021 · 1 comment

Comments

@yuzhou93
Copy link

@dswah Thanks for creating this great package. I've been learning GAM and this package for the last few weeks, and I am at a stage pretty comfortable on the math/implementation behind it. One question I have is how do I save the model and reuse it for prediction? And as I am working in finance industry, most of the people are using excel. Is there away I can call the model from my excel, within the excel I would have a bunch of X that needs to get the prediction from the model?

Thanks in advance for the help.

@defelix
Copy link

defelix commented Feb 26, 2022

@dswah Many thanks for this great work!
I am quite interested in the same possibility: I need to re-use a trained model (classification problem) in a different environment (JavaScript);
How can I use the coefficients of trained smoothing functions for making the predictions?
I see that predict function outputs the _linear_predictor result which returns modelmat.dot(b), where can I get modelmat and b?

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

2 participants