Pysr

Latest version: v0.18.4

Safety actively analyzes 629004 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 10 of 11

0.10.1

**Full Changelog**: https://github.com/MilesCranmer/PySR/compare/v0.10.0...v0.10.1

0.10.0

What's Changed

* Easy loading from auto-generated checkpoint files by MilesCranmer w/ review tttc3 Pablo-Lemos in https://github.com/MilesCranmer/PySR/pull/167
* Use `.from_file` to load from the auto-generated `.pkl` file.
* LaTeX table generator by MilesCranmer w/ review tttc3 kazewong in https://github.com/MilesCranmer/PySR/pull/156
* Generate a LaTeX table of discovered equations with `.latex_table()`
* Improved default model selection strategy by MilesCranmer in https://github.com/MilesCranmer/PySR/pull/177
* Old strategy is available as `model_selection="score"`
* Add opencontainers image-spec to `Dockerfile` by SauravMaheshkar w/ review MilesCranmer in https://github.com/MilesCranmer/PySR/pull/166
* Switch to comma-based csv format by MilesCranmer in https://github.com/MilesCranmer/PySR/pull/176

Bug fixes

* Fixed conversions to torch and JAX when a rational number appears in the sympy expression (https://github.com/MilesCranmer/PySR/commit/17c9b1a1762efbd8e021d275491f75cc6dcea8f1, https://github.com/MilesCranmer/PySR/commit/f119733698e4517e34cc902c78dcb95d450c0c80)
* Fixed pickle saving when trained with multi-output (https://github.com/MilesCranmer/PySR/commit/3da0df512ee295f446ceb0ae6e2c39fb0e380618)
* Fixed pickle saving when using custom operators with defined sympy -> jax/torch/numpy mappings
* Backend fix avoids use of Julia's `cp` which is buggy for some file systems (e.g., EOS)

New Contributors
* SauravMaheshkar made their first contribution in https://github.com/MilesCranmer/PySR/pull/166

**Full Changelog**: https://github.com/MilesCranmer/PySR/compare/v0.9.0...v0.10.0

0.9.0

What's Changed
* Refactor of PySRRegressor by tttc3 in https://github.com/MilesCranmer/PySR/pull/146
* PySRRegressor is now completely compatible with scikit-learn.
* PySRRegressor can be stored in a pickle file, even after fitting, and then be reloaded and used with `.predict()`
* `PySRRegressor.equations` -> `PySRRegressor.equations_`

New Contributors
* tttc3 made their first contribution in https://github.com/MilesCranmer/PySR/pull/146

**Full Changelog**: https://github.com/MilesCranmer/PySR/compare/v0.8.7...v0.9.0

0.8.5

What's Changed
* Custom complexities for operators, constants, and variables (https://github.com/MilesCranmer/PySR/pull/138)
* Early stopping conditions (https://github.com/MilesCranmer/PySR/pull/134)
* Based on a certain loss value being achieved
* Max number of evaluations (for theoretical studies of genetic algorithms, rather than anything practical).
* Work with specified expression rather than the one given by `model_selection`, by passing `index` to the function you wish to use (e.g,. `model.predict(X, index=5)` would use the 5th equation.).

**Full Changelog since v0.8.1**: https://github.com/MilesCranmer/PySR/compare/v0.8.1...v0.8.5

0.8.1

What's Changed
* Enable distributed processing with ClusterManagers.jl from https://github.com/MilesCranmer/PySR/pull/133


**Full Changelog**: https://github.com/MilesCranmer/PySR/compare/v0.8.0...v0.8.1

0.8.0

This new release updates the entire set of default PySR parameters according to the ones presented in https://github.com/MilesCranmer/PySR/discussions/115. These parameters have been tuned over nearly 71,000 trials. See the discussion for further info.

Additional changes:

- Nested constraints implemented. For example, you can now prevent `sin` and `cos` from being repeatedly nested, by using the argument: `nested_constraints={"sin": {"sin": 0, "cos": 0}, "cos": {"sin": 0, "cos": 0}}`. This argument states that within a `sin` operator, you can only have a max depth of 0 for other `sin` or `cos`. The same is done for `cos`. The argument `nested_constraints={"^": {"+": 2, "*": 1, "^": 0}}` states that within a pow operator, you can only have 2 things added, or 1 use of multiplication (i.e., no double products), and zero other pow operators. This helps a lot with finding interpretable expressions!
- New parsimony algorithm (backend change). This seems to help searches quite a bit, especially when one is searching for more complex expressions. This is turned on by `use_frequency_in_tournament` which is now the default.
- Many backend improvements: speed, bug fixes, etc.
- Improved stability of multi-processing (backend change). Thanks to CharFox1.
- Auto-differentiation implemented (backend change). This isn't used by default in any instances right now, but could be used by optimization later. Thanks to kazewong.
- Improved testing coverage of weird edge cases.
- All parameters to PySRRegressor have been cleaned up to be in snake_case rather than CamelCase. The backend is also now almost entirely snake_case for internal functions. +Other readability improvements. Thanks to bstollnitz and patrick-kidger for the suggestions.

Page 10 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.