Spaces:
Sleeping
Sleeping
Commit
·
b935024
1
Parent(s):
2bf9759
Remove deprecated kwargs
Browse files- pysr/sr.py +2 -4
pysr/sr.py
CHANGED
|
@@ -243,8 +243,7 @@ def pysr(X=None, y=None, weights=None,
|
|
| 243 |
topn=topn, verbosity=verbosity,
|
| 244 |
julia_optimization=julia_optimization, timeout=timeout,
|
| 245 |
fractionReplacedHof=fractionReplacedHof,
|
| 246 |
-
hofMigration=hofMigration,
|
| 247 |
-
limitPowComplexity=limitPowComplexity, maxdepth=maxdepth,
|
| 248 |
maxsize=maxsize, migration=migration, nrestarts=nrestarts,
|
| 249 |
parsimony=parsimony, perturbationFactor=perturbationFactor,
|
| 250 |
populations=populations, procs=procs,
|
|
@@ -375,7 +374,7 @@ weights = readdlm("{_escape_filename(weights_filename)}", ',', Float32, '\\n')[:
|
|
| 375 |
|
| 376 |
def _make_hyperparams_julia_str(X, alpha, annealing, batchSize, batching, binary_operators, constraints_str,
|
| 377 |
def_hyperparams, equation_file, fast_cycle, fractionReplacedHof, hofMigration,
|
| 378 |
-
|
| 379 |
parsimony, perturbationFactor, populations, procs, shouldOptimizeConstants,
|
| 380 |
unary_operators, useFrequency, use_custom_variable_names,
|
| 381 |
variable_names, warmupMaxsize, weightAddNode,
|
|
@@ -438,7 +437,6 @@ mutationWeights=[
|
|
| 438 |
{weightDoNothing:f}
|
| 439 |
],
|
| 440 |
warmupMaxsize={warmupMaxsize:d},
|
| 441 |
-
limitPowComplexity={"true" if limitPowComplexity else "false"},
|
| 442 |
useFrequency={"true" if useFrequency else "false"},
|
| 443 |
npop={npop:d},
|
| 444 |
ncyclesperiteration={ncyclesperiteration:d},
|
|
|
|
| 243 |
topn=topn, verbosity=verbosity,
|
| 244 |
julia_optimization=julia_optimization, timeout=timeout,
|
| 245 |
fractionReplacedHof=fractionReplacedHof,
|
| 246 |
+
hofMigration=hofMigration, maxdepth=maxdepth,
|
|
|
|
| 247 |
maxsize=maxsize, migration=migration, nrestarts=nrestarts,
|
| 248 |
parsimony=parsimony, perturbationFactor=perturbationFactor,
|
| 249 |
populations=populations, procs=procs,
|
|
|
|
| 374 |
|
| 375 |
def _make_hyperparams_julia_str(X, alpha, annealing, batchSize, batching, binary_operators, constraints_str,
|
| 376 |
def_hyperparams, equation_file, fast_cycle, fractionReplacedHof, hofMigration,
|
| 377 |
+
maxdepth, maxsize, migration, nrestarts, npop,
|
| 378 |
parsimony, perturbationFactor, populations, procs, shouldOptimizeConstants,
|
| 379 |
unary_operators, useFrequency, use_custom_variable_names,
|
| 380 |
variable_names, warmupMaxsize, weightAddNode,
|
|
|
|
| 437 |
{weightDoNothing:f}
|
| 438 |
],
|
| 439 |
warmupMaxsize={warmupMaxsize:d},
|
|
|
|
| 440 |
useFrequency={"true" if useFrequency else "false"},
|
| 441 |
npop={npop:d},
|
| 442 |
ncyclesperiteration={ncyclesperiteration:d},
|