# 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
```python
def GaussianBasis(x, zero=0.0, sigma=0.33)
```
Example:
```python
x = np.arange(-2.0, 2.0, 0.01)
y = GaussianBasis(torch.tensor(x))
plt.plot(x, y)
plt.show()
```
![gaussian_bias](./img/gaussian_bias.png)
### 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](https://indico.in2p3.fr/event/20306/contributions/96819/attachments/64768/89975/packaging.pdf)
[Package Discovery](https://setuptools.pypa.io/en/latest/userguide/package_discovery.html)
Raw data
{
"_id": null,
"home_page": "https://github.com/bhlarson/pymlutil",
"name": "pymlutil",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "python,Machine Learning,Utilities",
"author": "Brad Larson",
"author_email": "<bhlarson@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/6c/76/19cdde3dc5e3d4439ad423463abe6fcd576b5e5412a65f7c3ba395edac1a/pymlutil-0.1.12.tar.gz",
"platform": null,
"description": "# pymlutil\nPython Machine Learning utilities:\n\n## functions\n### GaussianBasis\nComputes a unit height gaussian bell curve function \\\n$ GaussianBasis(x, zero, sigma) = e^{-\\frac{(x-zero)^2}{2*sigma^2}} $ \\\n- x : function input\n- zero : location of the peak center\n- sigma: curve with or standard deviation\n\n```python\ndef GaussianBasis(x, zero=0.0, sigma=0.33)\n```\n\nExample:\n```python\nx = np.arange(-2.0, 2.0, 0.01) \ny = GaussianBasis(torch.tensor(x))\nplt.plot(x, y)\nplt.show()\n```\n![gaussian_bias](./img/gaussian_bias.png)\n\n\n### imutial\n\n### jsonutil\n\n- cmd(command, check=True, timeout=None): execute subprocess.call prining the execution time and results\n\n### metrics\n\n### s3\n```\npython3 -clone \n\n### torch_util\n\n### version\n\n### workflow\n\n\n[Packaging Python Projects](https://www.freecodecamp.org/news/build-your-first-python-package/)\n[How to Publish an Open-Source Python Package to PyPI](https://realpython.com/pypi-publish-python-package/)\n\n- Install twine:\n ```cmd\n pip3 install twine\n ```\n\n- Build whl:\n ```cmd\n py setup.py sdist bdist_wheel\n ```\n\n- Upload package to pipy\n ```cmd\n twine upload dist/*\n ```\n\n[pymlutil](https://pypi.org/project/pymlutil)\n\n- Load package into project\n ```cmd\n pip3 install --upgrade pymlutil\n ```\n\n- Include pymlutil into project\n```cmd\nfrom pymlutil import *\n```\n\n## Notes\n[Packaging and Distributing Python Projects](https://indico.in2p3.fr/event/20306/contributions/96819/attachments/64768/89975/packaging.pdf)\n[Package Discovery](https://setuptools.pypa.io/en/latest/userguide/package_discovery.html)\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Python Machine Learning Utilities",
"version": "0.1.12",
"split_keywords": [
"python",
"machine learning",
"utilities"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7074d38a67faff989b2c45e3324202c17d9da3b9953cbe4d4c3c846c5921831d",
"md5": "2a5ebd695e16cf6de2cb4a6dfbd5ba67",
"sha256": "b334b4fcc076baa93db0bac9a254c0fdf6b3c00526ed2218231f764e164399ba"
},
"downloads": -1,
"filename": "pymlutil-0.1.12-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2a5ebd695e16cf6de2cb4a6dfbd5ba67",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 25697,
"upload_time": "2023-01-27T18:16:15",
"upload_time_iso_8601": "2023-01-27T18:16:15.863528Z",
"url": "https://files.pythonhosted.org/packages/70/74/d38a67faff989b2c45e3324202c17d9da3b9953cbe4d4c3c846c5921831d/pymlutil-0.1.12-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6c7619cdde3dc5e3d4439ad423463abe6fcd576b5e5412a65f7c3ba395edac1a",
"md5": "cbd4404e73daa9d1304cdeda627d62c9",
"sha256": "f03c950cf022edde0dfff8788a2a8f499f618454806b237533d54daa383f6767"
},
"downloads": -1,
"filename": "pymlutil-0.1.12.tar.gz",
"has_sig": false,
"md5_digest": "cbd4404e73daa9d1304cdeda627d62c9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 22015,
"upload_time": "2023-01-27T18:16:17",
"upload_time_iso_8601": "2023-01-27T18:16:17.912451Z",
"url": "https://files.pythonhosted.org/packages/6c/76/19cdde3dc5e3d4439ad423463abe6fcd576b5e5412a65f7c3ba395edac1a/pymlutil-0.1.12.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-27 18:16:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "bhlarson",
"github_project": "pymlutil",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pymlutil"
}