Spaces:
Running
Running
Commit
·
7602382
1
Parent(s):
47dbec6
Fix variable selection for PyTorch
Browse files- pysr/sr.py +1 -0
pysr/sr.py
CHANGED
|
@@ -1752,6 +1752,7 @@ class PySRRegressor(BaseEstimator, RegressorMixin, MultiOutputMixin):
|
|
| 1752 |
module = sympy2torch(
|
| 1753 |
eqn,
|
| 1754 |
sympy_symbols,
|
|
|
|
| 1755 |
extra_torch_mappings=self.extra_torch_mappings,
|
| 1756 |
)
|
| 1757 |
torch_format.append(module)
|
|
|
|
| 1752 |
module = sympy2torch(
|
| 1753 |
eqn,
|
| 1754 |
sympy_symbols,
|
| 1755 |
+
selection=self.selection_mask_,
|
| 1756 |
extra_torch_mappings=self.extra_torch_mappings,
|
| 1757 |
)
|
| 1758 |
torch_format.append(module)
|