-
Notifications
You must be signed in to change notification settings - Fork 199
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
The saved MFK result takes too much space #149
Comments
How do you save the MFK model? |
I used dill.dump to save it. |
Ok. I've just fixed the pickle problem with #154, but I do not think it will solve your problem. sm_MFK.D_all = None dill.dump(...) It should decrease the size of the model. |
Great! Thank you vary much! By the way, is it also possible to improve the prediction speed? I built the same model using GaussianProcessRegressor in scikit-learn, which takes only 90s to run 1200000 times of prediction, but the model fitting time is too much (~40 minutes), while the fitting time in MFK is only 2 mins!!! Since I will use surrogate in Bayesian inference, which requires hundreds of thousands of predictions and I also have over one hundred surrogate model. The reduction of both fitting time and prediction time makes sense to me. Thanks in advance!!!! |
Well... Feel free to make a pull request if you have a way to improve the current implementation. For the meantime, I close the issue. |
Hi
In case:
3000 sampling points
8 features
using MFK to create surrogate model
e.g.
from smt.extensions import MFK
sm_MFK = MFK(theta0=numpy.ones(8), eval_noise=True, noise0=5)
sm_MFK.set_training_values(X, Y)
sm_MFK.train()
The saved MFK model (sm_MFK) will take around 0.4GB, which is far beyond my expectation.
So is it possible to reduce the taken memory?
Thanks in advance!
The text was updated successfully, but these errors were encountered: