# simplemlplus
> Version: 1.0.1
Simple machine learning one-liners.
## Headless Mode
All functions create plots, useful for seeing how they work. To use a headless version (no plot), just import them from `simplemlplus.headless` instead of `simplemlplus`.
## Plot Only
If you just want to see the visual representation, simply call the function without assigning it to a variable.
```python
import simplemlplus
linear_regression(6, [5, 2, 7, 8], [4, 2, 4, 8])
```
## Linear Regression
```python
linear_regression(x: int, x_data: list, y_data: list)
Returns:
{
"prediction": predicted value,
"r", relationship, how well this regression fits the model
}
```
Both `x_data` and `y_data` have default values if you want to play around with existing data.
### Example Use
```python
import simplemlplus
data = linear_regression(10, [1, 2, 3, 4], [1, 2, 3, 4])
```
## Polynomial Regression
```python
import simplemlplus
data = polynomial_regression(x: int, x_data: list, y_data: list)
Returns:
{
"prediction": predicted value,
"r", relationship^2, how well this regression fits the model
}
```
Both `x_data` and `y_data` have default values if you want to play around with existing data.
### Example Use
```python
polynomial_regression(10, [1, 2, 3, 4], [1, 2, 3, 4])
```
## Contribuiting
The repo is `XenonPy/ai`. Feel free to open an issue/PR for any changes.
Raw data
{
"_id": null,
"home_page": null,
"name": "simplemlplus",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "ml, ai, simple",
"author": null,
"author_email": "XenonPy <xenonpy@bluspace.net>",
"download_url": "https://files.pythonhosted.org/packages/c1/31/c54986b9deb081a6b93ad6915d9658c79f9551b7c7f7923b485114590bd4/simplemlplus-1.0.1.tar.gz",
"platform": null,
"description": "# simplemlplus\n> Version: 1.0.1\n\nSimple machine learning one-liners.\n## Headless Mode\nAll functions create plots, useful for seeing how they work. To use a headless version (no plot), just import them from `simplemlplus.headless` instead of `simplemlplus`.\n## Plot Only\nIf you just want to see the visual representation, simply call the function without assigning it to a variable.\n```python\nimport simplemlplus\nlinear_regression(6, [5, 2, 7, 8], [4, 2, 4, 8])\n```\n\n## Linear Regression\n```python\nlinear_regression(x: int, x_data: list, y_data: list)\n\nReturns:\n\n{\n \"prediction\": predicted value,\n \"r\", relationship, how well this regression fits the model\n}\n```\nBoth `x_data` and `y_data` have default values if you want to play around with existing data.\n### Example Use\n```python\nimport simplemlplus\ndata = linear_regression(10, [1, 2, 3, 4], [1, 2, 3, 4])\n```\n\n## Polynomial Regression\n```python\nimport simplemlplus\ndata = polynomial_regression(x: int, x_data: list, y_data: list)\n\nReturns:\n\n{\n \"prediction\": predicted value,\n \"r\", relationship^2, how well this regression fits the model\n}\n```\nBoth `x_data` and `y_data` have default values if you want to play around with existing data.\n### Example Use\n```python\npolynomial_regression(10, [1, 2, 3, 4], [1, 2, 3, 4])\n```\n\n## Contribuiting\nThe repo is `XenonPy/ai`. Feel free to open an issue/PR for any changes.\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Simple machine learning one-liners.",
"version": "1.0.1",
"project_urls": {
"Homepage": "https://github.com/xenonpy/ai"
},
"split_keywords": [
"ml",
" ai",
" simple"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9af4945ab27c2949770e85a729a3b2c83233c89f682a6e06939b66067872b4e0",
"md5": "3a3b9303d067c5ec91fe9065e551ade9",
"sha256": "8c2be9a239424d3874d255016a3e3bd3a840859fd722ded4e5f7eab6bc91c5cc"
},
"downloads": -1,
"filename": "simplemlplus-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3a3b9303d067c5ec91fe9065e551ade9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 2321,
"upload_time": "2024-12-05T16:04:12",
"upload_time_iso_8601": "2024-12-05T16:04:12.697429Z",
"url": "https://files.pythonhosted.org/packages/9a/f4/945ab27c2949770e85a729a3b2c83233c89f682a6e06939b66067872b4e0/simplemlplus-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c131c54986b9deb081a6b93ad6915d9658c79f9551b7c7f7923b485114590bd4",
"md5": "94f3ef75cd4a7a252cac61947cdf5648",
"sha256": "bb4af3c239a888950f7c82710b7519a7d7dfcb44d7712a5e592bc55643d2f25f"
},
"downloads": -1,
"filename": "simplemlplus-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "94f3ef75cd4a7a252cac61947cdf5648",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 2273,
"upload_time": "2024-12-05T16:04:13",
"upload_time_iso_8601": "2024-12-05T16:04:13.815593Z",
"url": "https://files.pythonhosted.org/packages/c1/31/c54986b9deb081a6b93ad6915d9658c79f9551b7c7f7923b485114590bd4/simplemlplus-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-05 16:04:13",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "xenonpy",
"github_project": "ai",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "matplotlib",
"specs": []
},
{
"name": "scipy",
"specs": []
},
{
"name": "numpy",
"specs": []
},
{
"name": "pandas",
"specs": []
},
{
"name": "scikit-learn",
"specs": []
},
{
"name": "spacy",
"specs": []
},
{
"name": "setuptools",
"specs": []
},
{
"name": "wheel",
"specs": []
}
],
"lcname": "simplemlplus"
}