A classification library using a novel audio-inspired algorithm.
Project description
Classification Library
A classification library using a novel audio-inspired technique.
Installation
Try:
pip install classification_library
Except:
pip install git+https://github.com/lol-cubes/classification-library
Usage
from classification_library import AudioClassifier
import numpy as np
X_train = np.array([1, 2, 3, 4])
y_train = np.array([1, 4, 9, 16])
X_test = np.array([5, 6])
y_test = np.array([25, 36])
model = AudioClassifier(alpha=10)
model.fit(X_train, y_train)
predictions = model.predict(X_test)
correct_predictions = 0
for y_true, y_pred in zip(y_test, predictions):
if y_true == y_pred:
correct_predictions += 1
print(f"Accuracy: {correct_predictions / len(y_test)}")
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 Distributions
Close
Hashes for classification_library-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4a036d77ee3bf5e4f58b68519dfc2900d9c893eb0d4af06e074dd0dfc70e7cb |
|
MD5 | d5a8831eb78d0bb5cb71a8786fe039d4 |
|
BLAKE2b-256 | ca7f03648bf4d49a54e5ccbdcb90f7080075512f5c1cb1d80b188da91c07d6e7 |
Close
Hashes for classification_library-0.0.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1d11537f624217c3588a38b93456920be9bb8a981e4f68be2160e344ceff779 |
|
MD5 | cf811133425ca26537f6d1709357a54c |
|
BLAKE2b-256 | b71be89f4d5fb037c410bebe79d229f59228a606fc80239822108a26eb3da1ea |
Close
Hashes for classification_library-0.0.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e5872b19cc031b132d3ba1b7525285233e1f41761be63d1ecd0a0bc8e42e394 |
|
MD5 | de378def3dc5821a649056b9f44db267 |
|
BLAKE2b-256 | 1273a76854d296adedb4e7d0ba8fd2f9567a9b385c1bb52bfab5025087c7f341 |