Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
38e582f
1
Parent(s):
a2862ab
Remove deprecated _yesno function
Browse files- pysr/sr.py +0 -12
pysr/sr.py
CHANGED
@@ -198,18 +198,6 @@ def best_tex(*args, **kwargs):
|
|
198 |
def best_callable(*args, **kwargs):
|
199 |
raise NotImplementedError("`best_callable` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can use `.predict(X)` to use the best callable.")
|
200 |
|
201 |
-
# https://gist.github.com/garrettdreyfus/8153571
|
202 |
-
def _yesno(question):
|
203 |
-
"""Simple Yes/No Function."""
|
204 |
-
prompt = f"{question} (y/n): "
|
205 |
-
ans = input(prompt).strip().lower()
|
206 |
-
if ans not in ["y", "n"]:
|
207 |
-
print(f"{ans} is invalid, please try again...")
|
208 |
-
return _yesno(question)
|
209 |
-
if ans == "y":
|
210 |
-
return True
|
211 |
-
return False
|
212 |
-
|
213 |
|
214 |
def _denoise(X, y, Xresampled=None):
|
215 |
"""Denoise the dataset using a Gaussian process"""
|
|
|
198 |
def best_callable(*args, **kwargs):
|
199 |
raise NotImplementedError("`best_callable` has been deprecated. Please use the `PySRRegressor` interface. After fitting, you can use `.predict(X)` to use the best callable.")
|
200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
|
202 |
def _denoise(X, y, Xresampled=None):
|
203 |
"""Denoise the dataset using a Gaussian process"""
|