deepsource-autofix[bot] commited on
Commit
048be9c
1 Parent(s): aa8371c

Format code with black

Browse files
Files changed (2) hide show
  1. pysr/sr.py +0 -2
  2. pysr/test/test.py +1 -2
pysr/sr.py CHANGED
@@ -762,7 +762,6 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
762
  julia_kwargs=None,
763
  **kwargs,
764
  ):
765
-
766
  # Hyperparameters
767
  # - Model search parameters
768
  self.model_selection = model_selection
@@ -2123,7 +2122,6 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
2123
  equation_file_contents = copy.deepcopy(self.equation_file_contents_)
2124
 
2125
  for output in equation_file_contents:
2126
-
2127
  scores = []
2128
  lastMSE = None
2129
  lastComplexity = 0
 
762
  julia_kwargs=None,
763
  **kwargs,
764
  ):
 
765
  # Hyperparameters
766
  # - Model search parameters
767
  self.model_selection = model_selection
 
2122
  equation_file_contents = copy.deepcopy(self.equation_file_contents_)
2123
 
2124
  for output in equation_file_contents:
 
2125
  scores = []
2126
  lastMSE = None
2127
  lastComplexity = 0
pysr/test/test.py CHANGED
@@ -243,7 +243,6 @@ class TestPipeline(unittest.TestCase):
243
  regressor.fit(self.X, y)
244
 
245
  def test_noisy(self):
246
-
247
  y = self.X[:, [0, 1]] ** 2 + self.rstate.randn(self.X.shape[0], 1) * 0.05
248
  model = PySRRegressor(
249
  # Test that passing a single operator works:
@@ -677,7 +676,7 @@ class TestMiscellaneous(unittest.TestCase):
677
 
678
  check_generator = check_estimator(model, generate_only=True)
679
  exception_messages = []
680
- for (_, check) in check_generator:
681
  try:
682
  with warnings.catch_warnings():
683
  warnings.simplefilter("ignore")
 
243
  regressor.fit(self.X, y)
244
 
245
  def test_noisy(self):
 
246
  y = self.X[:, [0, 1]] ** 2 + self.rstate.randn(self.X.shape[0], 1) * 0.05
247
  model = PySRRegressor(
248
  # Test that passing a single operator works:
 
676
 
677
  check_generator = check_estimator(model, generate_only=True)
678
  exception_messages = []
679
+ for _, check in check_generator:
680
  try:
681
  with warnings.catch_warnings():
682
  warnings.simplefilter("ignore")