Python Machine Learning Utilities
Project description
pymlutil
Python Machine Learning utilities:
functions
GaussianBasis
Computes a unit height gaussian bell curve function
$ GaussianBasis(x, zero, sigma) = e^{-\frac{(x-zero)^2}{2*sigma^2}} $ \
- x : function input
- zero : location of the peak center
- sigma: curve with or standard deviation
def GaussianBasis(x, zero=0.0, sigma=0.33)
Example:
x = np.arange(-2.0, 2.0, 0.01)
y = GaussianBasis(torch.tensor(x))
plt.plot(x, y)
plt.show()
imutial
jsonutil
- cmd(command, check=True, timeout=None): execute subprocess.call prining the execution time and results
metrics
s3
python3 -clone
### torch_util
### version
### workflow
[Packaging Python Projects](https://www.freecodecamp.org/news/build-your-first-python-package/)
[How to Publish an Open-Source Python Package to PyPI](https://realpython.com/pypi-publish-python-package/)
- Install twine:
```cmd
pip3 install twine
```
- Build whl:
```cmd
py setup.py sdist bdist_wheel
```
- Upload package to pipy
```cmd
twine upload dist/*
```
[pymlutil](https://pypi.org/project/pymlutil)
- Load package into project
```cmd
pip3 install --upgrade pymlutil
```
- Include pymlutil into project
```cmd
from pymlutil import *
Notes
Packaging and Distributing Python Projects Package Discovery
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
pymlutil-0.1.18.tar.gz
(22.1 kB
view details)
Built Distribution
pymlutil-0.1.18-py3-none-any.whl
(25.7 kB
view details)
File details
Details for the file pymlutil-0.1.18.tar.gz
.
File metadata
- Download URL: pymlutil-0.1.18.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8879769e7b7edfb001112ad0aca01d078186c46f07687590b0c823f10c86cd56 |
|
MD5 | 230c77fc7471e7cae653016dadfe4ed4 |
|
BLAKE2b-256 | d4e2605a34f530f6d93eaa8b8a5ff4fb9e96b8bf26d4bc879c12078ce82c1d00 |
File details
Details for the file pymlutil-0.1.18-py3-none-any.whl
.
File metadata
- Download URL: pymlutil-0.1.18-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e8520e4fc7b650ff65e96c3d14ad8440ecdedb47a7a63a5e1a3a722636f0b8b |
|
MD5 | d05b40d454a50e6d8ceb877602419441 |
|
BLAKE2b-256 | da183531fc254502c7025e934b60755c3587133c75cd72fde5a08cbbaabdb94b |