Skip to content

Commit

Permalink
Remove deprecated kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Feb 1, 2021
1 parent 2bf9759 commit b935024
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pysr/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ def pysr(X=None, y=None, weights=None,
topn=topn, verbosity=verbosity,
julia_optimization=julia_optimization, timeout=timeout,
fractionReplacedHof=fractionReplacedHof,
hofMigration=hofMigration,
limitPowComplexity=limitPowComplexity, maxdepth=maxdepth,
hofMigration=hofMigration, maxdepth=maxdepth,
maxsize=maxsize, migration=migration, nrestarts=nrestarts,
parsimony=parsimony, perturbationFactor=perturbationFactor,
populations=populations, procs=procs,
Expand Down Expand Up @@ -375,7 +374,7 @@ def _make_datasets_julia_str(X, X_filename, weights, weights_filename, y, y_file

def _make_hyperparams_julia_str(X, alpha, annealing, batchSize, batching, binary_operators, constraints_str,
def_hyperparams, equation_file, fast_cycle, fractionReplacedHof, hofMigration,
limitPowComplexity, maxdepth, maxsize, migration, nrestarts, npop,
maxdepth, maxsize, migration, nrestarts, npop,
parsimony, perturbationFactor, populations, procs, shouldOptimizeConstants,
unary_operators, useFrequency, use_custom_variable_names,
variable_names, warmupMaxsize, weightAddNode,
Expand Down Expand Up @@ -438,7 +437,6 @@ def tuple_fix(ops):
{weightDoNothing:f}
],
warmupMaxsize={warmupMaxsize:d},
limitPowComplexity={"true" if limitPowComplexity else "false"},
useFrequency={"true" if useFrequency else "false"},
npop={npop:d},
ncyclesperiteration={ncyclesperiteration:d},
Expand Down

0 comments on commit b935024

Please # to comment.