A package for optimization. See the GitHub repo for instructions and version notes.
Project description
oscars-toolbox
A package for helpful general algorithms I've developed. See also my wesbite, https://oscars47.github.io/.
Current functions as of version 0.0.3:
trabbit
custom gradient descent algorithm to determine optimal params to minimize loss function.
- How to use: specify loss function, function to generate random parameters. Optionally, you can define bounds for the parameters, an initial list of parameters, the total number of iterations you want, the learning rate, the temperature (how often we seek a random solution), the tolerance for convergence (default is 1e-5), the size of the gradient step (default is 1e-5), and a boolean option verbose for whether to print out progress or not (default = True).
Updates
0.0.3
trabbit
:
- renamed
frac
->temperature
- added option for
bounds
of inputs - added parameter for
grad_step
- set
verbose = True
by default.
0.0.2
initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oscars_toolbox-0.0.3.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file oscars_toolbox-0.0.3.tar.gz
.
File metadata
- Download URL: oscars_toolbox-0.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36293a3ed1fb6076c4019aa508dca92dc002c34c943a57efafc730ee90d740c0 |
|
MD5 | 569fb4fa0736bfce054945f67d2f85f8 |
|
BLAKE2b-256 | f219e26fd4b92b01412846677af92f40a1aea09c1428cceb9f02d614e71c3e7c |
File details
Details for the file oscars_toolbox-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: oscars_toolbox-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f908b169e9dcebc59138ad0b838b4b6d3f56a113bf73efd0adc9fd1f9e5faa71 |
|
MD5 | 6d7242314ad70415aeb076fd73ecf3dd |
|
BLAKE2b-256 | b8c0ee39d0f438602317ca0442c99dcd04b5912ca637937bf284c2e1e193fae9 |