-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @AKHCE, Sorry for the late reply, I missed this post for some reason. There is not a built-in mechanism for saving the csv file over time. However, there is a mechanism for saving the entire history of a search to a JSON file (including every single mutation that happens). It is a bit overkill and I'm not sure if it is useful, but you could try it out. It's typically used from the Julia side so there's no built-in parameter in PySRRegressor. However, you could turn this on by adding to: Line 1608 in 6abcc15 add a line val_recorder=Main.eval("Val(true)") and it should generate a JSON file Other than that, you could modify the backend, particularly this line, and get it to save a file given by the current You can use a custom backend in PySR by following the instructions here: https://astroautomata.com/PySR/backend/ Cheers, |
Beta Was this translation helpful? Give feedback.
Thank you so much for giving me alternatives. I chose a different approach which seems working well. Simply, I pass warm_start = True to enable resuming the training, then I use a for-loop to move forward the model training. Please see screenshot below:
As you can see I set populations (I interpret it as generation) to 1 and the model is trained through a for-loop. Also, niterations which is number of re-running algorithm in each generation can be set any values, I chose 1 in the given example.
As you can see, I can save hall of fame for each generation. How do you think about this approach?
Thank you so much for your support,