MilesCranmer commited on
Commit
f87c7e9
1 Parent(s): edbd8fd

More comments to help explain call structure

Browse files
Files changed (1) hide show
  1. pysr/sr.py +4 -0
pysr/sr.py CHANGED
@@ -1323,6 +1323,8 @@ class PySRRegressor(BaseEstimator, RegressorMixin):
1323
 
1324
  self.params_hash = cur_hash
1325
 
 
 
1326
  options = Main.Options(
1327
  binary_operators=Main.eval(str(tuple(binary_operators)).replace("'", "")),
1328
  unary_operators=Main.eval(str(tuple(unary_operators)).replace("'", "")),
@@ -1394,6 +1396,8 @@ class PySRRegressor(BaseEstimator, RegressorMixin):
1394
 
1395
  cprocs = 0 if multithreading else procs
1396
 
 
 
1397
  self.raw_julia_state = Main.EquationSearch(
1398
  Main.X,
1399
  Main.y,
 
1323
 
1324
  self.params_hash = cur_hash
1325
 
1326
+ # Call to Julia backend.
1327
+ # See https://github.com/search?q=%22function+Options%22+repo%3AMilesCranmer%2FSymbolicRegression.jl+path%3A%2Fsrc%2F+filename%3AOptions.jl+language%3AJulia+language%3AJulia&type=Code&ref=advsearch&l=&l=
1328
  options = Main.Options(
1329
  binary_operators=Main.eval(str(tuple(binary_operators)).replace("'", "")),
1330
  unary_operators=Main.eval(str(tuple(unary_operators)).replace("'", "")),
 
1396
 
1397
  cprocs = 0 if multithreading else procs
1398
 
1399
+ # Call to Julia backend.
1400
+ # See https://github.com/search?q=%22function+EquationSearch%22+repo%3AMilesCranmer%2FSymbolicRegression.jl+path%3A%2Fsrc%2F+filename%3ASymbolicRegression.jl+language%3AJulia+language%3AJulia&type=Code&ref=advsearch&l=Julia&l=Julia
1401
  self.raw_julia_state = Main.EquationSearch(
1402
  Main.X,
1403
  Main.y,