Skip to main content

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()

gaussian_bias

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.0.105.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

pymlutil-0.0.105-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

Details for the file pymlutil-0.0.105.tar.gz.

File metadata

  • Download URL: pymlutil-0.0.105.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.2 importlib-metadata/4.8.2 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for pymlutil-0.0.105.tar.gz
Algorithm Hash digest
SHA256 1baa39b4dcbd41f9ff8b3713896458daf2ad20996d329da8495dac7afc0ba369
MD5 cf425a988be04f1a634dab31d0ade04e
BLAKE2b-256 34d354705d7ede95e7ae58c8e3de85b86a8ee6700a0d311ffca7987b5e0f4218

See more details on using hashes here.

File details

Details for the file pymlutil-0.0.105-py3-none-any.whl.

File metadata

  • Download URL: pymlutil-0.0.105-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.2 importlib-metadata/4.8.2 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for pymlutil-0.0.105-py3-none-any.whl
Algorithm Hash digest
SHA256 7fc63b2052f70551230e9ee1a84371729d068fa97b09dc77278a90736e6f76ff
MD5 c43bc4fa7426014d372411f8063af1ad
BLAKE2b-256 c3c9b498105cc7c4cad9451afb090e469058b45dbf095f6ae51586848a15268d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page