A Python library that provides implementations of various machine learning algorithms for tasks such as regression, classification, clustering, and more.
- Linear Regression
- Logistic Regression
- Naive Bayes
- Decision Trees
- Ensembles (Random Forest, Gradient Boosting)
- K-Means
- Support Vector Machines (SVM)
- Artificial Neural Networks (Multi-layer Perceptron)
- Convolutional Neural Networks (CNNs)
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Here's a simple example of how to use ML-Lib to train a linear regression model:
from models.linear_regression.regression_sgd import SGDRegression
import numpy as np
# Create some sample data
X = np.array([[1], [2], [3], [4], [5]])
y = np.array([2, 4, 6, 8, 10])
# Instantiate and train the linear regression model
model = SGDRegression()
model.fit(X, y)
# Make predictions
X_test = np.array([[6], [7], [8]])
predictions = model.predict(X_test)
print(predictions)
This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE - see the License file for details.