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.4
trabbit
:
- renamed the folder 'gradient_descent' -> 'oscars_toolbox' so now you can actually import the package as 'oscars_toolbox'
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.4.tar.gz
(3.7 kB
view details)
Built Distribution
File details
Details for the file oscars_toolbox-0.0.4.tar.gz
.
File metadata
- Download URL: oscars_toolbox-0.0.4.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 | cddedd5f241f73270a26cb311bf684c7bcae863244e34e5bb2e67b7e590f60b5 |
|
MD5 | 20a8a2e4b02ed52db7957a31a221176e |
|
BLAKE2b-256 | efd7d45579beb650d9a95f67155bb81219612691162ba363fcbbedd9bc116a00 |
File details
Details for the file oscars_toolbox-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: oscars_toolbox-0.0.4-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 | 04c84302d940fa8d7f8ec08e09f4538594c46112c9e324fb424005eb42420972 |
|
MD5 | a0806cd032ad062b682cf453324dc6cb |
|
BLAKE2b-256 | 6fecc3a650e68dfab28b38e832240c0cc2a70cdfced1b71369fde1e2c536c770 |