Skip to main content

A simple, Open source ML library.

Project description

A simple ML library.


class Brain:
"""
A brain. An Artificial intelligence (AI)'s data and runner.
Data: First argument in __init__(), Data is for the training data key/values
Threshold: Second argument in __init(), Threshold is for the percentage of which the AI finds
That the data is simular enough to the input string of which it is accepted
NOTE: This only works with strings now.
"""

def __init__(self, data: dict or None, threshold: float):
"""
Initializes a new brain.
"""

def forward(self, data: str) -> str:
"""
Gives a string for the Artificial intelligence (AI) to process.
"""

As you can see, This is just the way the brain is organized.
You can only just use this, and you would have A good time.
But for quickly loading the brain. By quickly
I mean without having to load the file yourself with "open()"
You can actually just use load(filename, threshold), and save(ai, threshold).
Note that load and save just save with json.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_py_ml-0.0.3.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

open_py_ml-0.0.3-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file open_py_ml-0.0.3.tar.gz.

File metadata

  • Download URL: open_py_ml-0.0.3.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for open_py_ml-0.0.3.tar.gz
Algorithm Hash digest
SHA256 138a2bb9e4693fa3b610cd9b96fb8c832a966a50ea72db17c2a8788601827ffa
MD5 f4d1dbb9c4a7a2f8f546ad2d259551c4
BLAKE2b-256 33b229e0b1eb5e028370f5d0c1dd7f643904a17607006f26b7d7206bcbc4b235

See more details on using hashes here.

File details

Details for the file open_py_ml-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: open_py_ml-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 1.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for open_py_ml-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c00044ea46c4b43083115b5ad42d946e6bc984ffc58466057087073ea70deac8
MD5 1b6377b0f26c4fdf0fe1787f9de808df
BLAKE2b-256 fe37a4ed896b22a93dd0bd2ed2d9bfadefccd987da0b55d9b922bb8cdf51ed14

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