MilesCranmer commited on
Commit
96e5a0f
1 Parent(s): 526d334

fix: upper bound of randint for windows

Browse files
Files changed (1) hide show
  1. pysr/sr.py +2 -2
pysr/sr.py CHANGED
@@ -1910,7 +1910,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
1910
  )
1911
 
1912
  random_state = check_random_state(self.random_state) # For np random
1913
- seed = random_state.randint(0, 2**32) # For julia random
1914
 
1915
  # Pre transformations (feature selection and denoising)
1916
  X, y, variable_names, X_units, y_units = self._pre_transform_training_data(
@@ -1962,7 +1962,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
1962
 
1963
  return self
1964
 
1965
- def refresh(self, checkpoint_file=None):
1966
  """
1967
  Update self.equations_ with any new options passed.
1968
 
 
1910
  )
1911
 
1912
  random_state = check_random_state(self.random_state) # For np random
1913
+ seed = random_state.randint(0, 2**31 - 1) # For julia random
1914
 
1915
  # Pre transformations (feature selection and denoising)
1916
  X, y, variable_names, X_units, y_units = self._pre_transform_training_data(
 
1962
 
1963
  return self
1964
 
1965
+ def refresh(self, checkpoint_file=None) -> None:
1966
  """
1967
  Update self.equations_ with any new options passed.
1968