Skip to main content

A Collection of Machine Learning Algorithms implemented from Scratch

Project description

Py-neuronix

neuronn is a collection of machine learning models implemented from scratch. This library provides simple and easy-to-use implementations of various machine learning algorithms, including linear regression, multiple regression, logistic regression, k-nearest neighbors (KNN), decision trees,random forests,XGB classifier and SVM.

Installation

You can install Neuronn using pip:

pip install neuronix

Usage

Here an examples of how to use the models provided by Neuron:

Linear Regression

from neuronix import LinearRegression
import numpy as np

# Example data
X = np.array([[1], [2], [3], [4]])
y = np.array([2, 4, 6, 8])

# Create and train the model
model = LinearRegression(learning_rate=0.01, epochs=1000)
model.fit(X, y)

# Make predictions
predictions = model.predict(X)
print("Predictions:", predictions)

similarly implement all other algorithms

Algorithms

neuronix includes the following machine learning algorithms:

Linear Regression - A basic regression model that fits a linear relationship between independent and dependent variables. Multiple Linear Regression - An extension of linear regression that handles multiple input features. Logistic Regression - A classification algorithm based on the sigmoid function for binary classification problems. K-Nearest Neighbors (KNN) - A non-parametric method used for classification and regression based on distance metrics. Decision Tree - A tree-based model that splits data based on feature importance to make decisions. Random Forest - An ensemble method using multiple decision trees to improve prediction accuracy and reduce overfitting. Support Vector Machine (SVM) - A powerful classification algorithm that finds the optimal hyperplane for separating classes. XGBoost - An optimized gradient boosting algorithm that builds trees sequentially to minimize errors

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any questions or feedback, please contact Karthikeyan.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neuronix-0.1.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neuronix-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file neuronix-0.1.0.tar.gz.

File metadata

  • Download URL: neuronix-0.1.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for neuronix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3cf8138405bb1fdaf421a55e6889914623e983d2514fa82901ce7d3da03d7863
MD5 a880fa36c88e6e4c5431acfe954b6139
BLAKE2b-256 c76c41872c5f4f62a3d6a419700dd97664fee7e99f13f7acb4f9a9c79c78feb5

See more details on using hashes here.

File details

Details for the file neuronix-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: neuronix-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for neuronix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 034779180cb19999cc1ea84474cd40d500714fae546923851066ed3c11074aca
MD5 e8bad11d19665e5ee421d52e93cce618
BLAKE2b-256 03a76c3a660953753e58883cd80daec55a4b2bf7db534b774a7e895da2f79397

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page