How to predict using multiply equations? #607
-
Hi, I want to test the performance of result equations on test dataset. But Regard, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks! The equations are stored in For example: model # fitted PySRRegressor
for i in range(len(model.equations_)):
print("Equation", i, "equal to", model.sympy(i))
print("with predictions")
pred = model.predict(X, i)
print(pred) This assumes 1-dimensional |
Beta Was this translation helpful? Give feedback.
Thanks!
The equations are stored in
model.equations_
in a pandas dataframe.For example:
This assumes 1-dimensional
y
. For 2 dimensional you would need to iterate over each component too.