Spaces:
Sleeping
Sleeping
Better description for running locally
Browse files- gui/run_pysr_and_save.py +9 -2
gui/run_pysr_and_save.py
CHANGED
@@ -67,8 +67,15 @@ if __name__ == "__main__":
|
|
67 |
error_message = (
|
68 |
"Success!\n"
|
69 |
f"You may run the model locally (faster) with "
|
70 |
-
f"the following parameters
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
except Exception as e:
|
73 |
error_message = tb.format_exc()
|
74 |
# Dump to file:
|
|
|
67 |
error_message = (
|
68 |
"Success!\n"
|
69 |
f"You may run the model locally (faster) with "
|
70 |
+
f"the following parameters:"
|
71 |
+
+f"""
|
72 |
+
model = PySRRegressor(
|
73 |
+
niterations={niterations},
|
74 |
+
binary_operators={str(binary_operators)},
|
75 |
+
unary_operators={str(unary_operators)},
|
76 |
+
maxsize={maxsize},
|
77 |
+
)
|
78 |
+
model.fit(X, y)""")
|
79 |
except Exception as e:
|
80 |
error_message = tb.format_exc()
|
81 |
# Dump to file:
|