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 Distribution
Close
Hashes for classification_library-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 584229861a41122658979d5bc48bce3997c71bbc8c3239a254b0a94663b399a4 |
|
MD5 | 4adcf902ad9ce6558d832df1ac9eac27 |
|
BLAKE2b-256 | 4cb6f7d6c7ba6b383851f27f3b0c257d9fa29f781b3790947aeb57e405b3a88a |
Close
Hashes for classification_library-0.0.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f2d45f15b89d36429976a1cf353b3177a2bca2486401d611740c6e0d7763629 |
|
MD5 | e5323c520b7735f0d4a13a704693fe72 |
|
BLAKE2b-256 | 98c43ea9f2756a2787374bee7f68810b1ab258a9ca960e066be648d798cdd5aa |