Skip to content

Lightweight save/load #673

Answered by ViniciusTxc3
EdoAlvarezR asked this question in Q&A
Discussion options

You must be logged in to vote

I was also having this problem, I saw this discussion topic and now that I managed to solve it, I will share it below for the record. I did an analysis of the variables after training and managed to go from 1.1Gb to 1.2Mb the size of the model for saving, for that I deleted the following variables, sorry for not being written in the most optimized way.

sm = KRG()
sm.set_training_values(X_train, y_train)
sm.train()

sm.D = np.array([])
sm.theta0 = np.array([])
sm.optimal_par["sigma2"] = np.array([])
sm.F = np.array([])
sm.optimal_par["C"] = np.array([])
sm.optimal_par["Q"] = np.array([])
sm.optimal_par["Ft"] = np.array([])
sm.F = np.array([])
sm.training_points = {}
sm._correlation_class =

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@EdoAlvarezR
Comment options

Comment options

You must be logged in to vote
1 reply
@EdoAlvarezR
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@EdoAlvarezR
Comment options

Answer selected by EdoAlvarezR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants