Skip to content
Discussion options

You must be logged in to vote
using SymbolicRegression, CSV, MLJ
guesses = CSV.read("path\\hall_of_fame.csv", DataFrame).Equation
model = SRRegressor(
   #...
    guesses = guesses,
    fraction_replaced_guesses=0.0, #unless you want the search to keep referring back to your guesses 
)

mach = machine(model, X, y)
fit!(mach)

This will however, re-evolve the equations to match your new dataset, presumably this is what you want, rather than a post-hoc test.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@qizzhao
Comment options

@MilesCranmer
Comment options

Answer selected by qizzhao
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