Spaces:
Running
Running
Commit
·
6efb0ba
1
Parent(s):
c1a7eb6
Cleanup unused imports
Browse files- pysr/feynman_problems.py +0 -1
- pysr/sr.py +1 -1
pysr/feynman_problems.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import numpy as np
|
| 2 |
import csv
|
| 3 |
-
import traceback
|
| 4 |
from .sr import pysr, best
|
| 5 |
from pathlib import Path
|
| 6 |
from functools import partial
|
|
|
|
| 1 |
import numpy as np
|
| 2 |
import csv
|
|
|
|
| 3 |
from .sr import pysr, best
|
| 4 |
from pathlib import Path
|
| 5 |
from functools import partial
|
pysr/sr.py
CHANGED
|
@@ -685,7 +685,7 @@ def run_feature_selection(X, y, select_k_features):
|
|
| 685 |
features as output."""
|
| 686 |
|
| 687 |
from sklearn.ensemble import RandomForestRegressor
|
| 688 |
-
from sklearn.feature_selection import SelectFromModel
|
| 689 |
|
| 690 |
clf = RandomForestRegressor(n_estimators=100, max_depth=3, random_state=0)
|
| 691 |
clf.fit(X, y)
|
|
|
|
| 685 |
features as output."""
|
| 686 |
|
| 687 |
from sklearn.ensemble import RandomForestRegressor
|
| 688 |
+
from sklearn.feature_selection import SelectFromModel
|
| 689 |
|
| 690 |
clf = RandomForestRegressor(n_estimators=100, max_depth=3, random_state=0)
|
| 691 |
clf.fit(X, y)
|