A Python machine learning library!
Project description
PyMuL
PyMuL is a machine learning library which includes neural networks and genetic algorithms!
Installation
To install PyMuL, run:
pip install pymul
Usage
Here is a simple program that solves XOR:
from pymul import Network
# Input data
# Use the Network.to_batch_array() function to convert to array
x_train = Network.to_batch_array([[0, 0], [0, 1], [1, 0], [1, 1]])
# Expected outputs
y_train = Network.to_batch_array([[0], [1], [1], [0]])
# Initialize network with 2 input nodes, 1 layer of 3 hidden nodes, and 1 output node
network = Network([2, 3, 1])
# Train network
network.batch_train(x_train, y_train)
# Predict outputs
print(network.batch_predict(x_train))
Credits
Thanks to Omar Aflak for his Neural Network from scratch in Python tutorial! It helped a lot while making this project! Also, thanks to Coding Tech on YouTube for the tutorial on publishing Python packages!
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pymul-0.0.1.tar.gz.
File metadata
- Download URL: pymul-0.0.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ebe6d08a29b759d1ccc9462ea99eb5f8ca13940d7640eab51d51cb0475873c8
|
|
| MD5 |
7cc850f4d3015d3f94a7fc04c7ef59b9
|
|
| BLAKE2b-256 |
27368b14189f34393857d935d682e11c9345d58e94ad301542436fe46b8a2b45
|
File details
Details for the file pymul-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pymul-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
816900e42603579913784bff0876c1b0b842c21c977060a104d6bf16b240a14f
|
|
| MD5 |
7258f47f91bed8083aa9325e622027ac
|
|
| BLAKE2b-256 |
74efecd893cd5533cc15d69302b997dc92f40de37b8f236508ab782ec5238037
|