Classical machine learning algorithms on the GPU/TPU.
Project description
Scikit-JAX: Classical Machine Learning on the GPU
Welcome to Scikit-JAX, a machine learning library designed to leverage the power of GPUs through JAX for efficient and scalable classical machine learning algorithms. Our library provides implementations for a variety of classical machine learning techniques, optimized for performance and ease of use.
Features
- Linear Regression: Implemented with options for different weight initialization methods and dropout regularization.
- KMeans: Clustering algorithm to group data points into clusters.
- Principal Component Analysis (PCA): Dimensionality reduction technique to simplify data while preserving essential features.
- Multinomial Naive Bayes: Classifier suitable for discrete data, such as text classification tasks.
- Gaussian Naive Bayes: Classifier for continuous data with a normal distribution assumption.
Installation
To install Scikit-JAX, you can use pip. The package is available on PyPI:
pip install scikit-jax
Usage
Here is a quick guide on how to use the key components of Scikit-JAX.
Linear Regression
from skjax.linear_model import LinearRegression
# Initialize the model
model = LinearRegression(weights_init='xavier', epochs=100, learning_rate=0.01)
# Fit the model
model.fit(X_train, y_train)
# Make predictions
predictions = model.predict(X_test)
# Plot losses
model.plot_losses()
K-Means
from skjax.clustering import KMeans
# Initialize the model
kmeans = KMeans(num_clusters=3)
# Fit the model
kmeans.fit(X_train)
Gaussian Naive Bayes
from skjax.naive_bayes import GaussianNaiveBayes
# Initialize the model
nb = GaussianNaiveBayes()
# Fit the model
nb.fit(X_train, y_train)
# Make predictions
predictions = nb.predict(X_test)
License
Scikit-JAX is licensed under the MIT License.
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
File details
Details for the file scikit_jax-0.0.2.tar.gz
.
File metadata
- Download URL: scikit_jax-0.0.2.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 333e1c6ec3680a803afb5ae0561dfa05973d265b30151429f72729ce45582d37 |
|
MD5 | b6a6c9436eb01be4069c9089a361e99d |
|
BLAKE2b-256 | 905e58e5b2a5622f46cfc102dcdf994570d1a47d952a4c46a2966bbe7cdf413e |
File details
Details for the file scikit_jax-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: scikit_jax-0.0.2-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b136f34db60826b544007d0423e9c47c17bd6272523cdbd3e9783d63a206169f |
|
MD5 | 2ade95056621c4ed4fac75b8137bec84 |
|
BLAKE2b-256 | c66498e0f28a2fb083e3efbd4b124bfe80cb15ce90761d30dd1ac5e9d291d9a1 |