Skip to main content

Custom Machine Learning Package built from scratch

Project description

My ML Package

A custom Machine Learning package built from scratch using Python and NumPy.

Features

  • Linear Regression
  • KNN Classifier
  • PCA
  • Neural Network
  • Standard Scaler
  • Metrics
  • Train Test Split
  • Pipeline System
  • PCA Visualization

Project Structure

my_ml_package/ │ ├── base/ ├── preprocessing/ ├── linear_models/ ├── decomposition/ ├── neighbors/ ├── neural_network/ ├── metrics/ ├── model_selection/ ├── pipeline/ ├── visualization/ ├── utils/ └── tests/


Installation

pip install -e .

Requirements

  • numpy
  • matplotlib

Install using:

pip install -r requirements.txt

Example Usage

Linear Regression

import numpy as np

from my_ml_package.linear_models.linear_regression import LinearRegression

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

model = LinearRegression()

model.fit(X, y)

predictions = model.predict(X)

print(predictions)

PCA Example

from my_ml_package.decomposition.pca import PCA

Neural Network Example

from my_ml_package.neural_network.neural_network import NeuralNetwork

Author

Bhagyashree Patil

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

bhagya_my_ml_package-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

bhagya_my_ml_package-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bhagya_my_ml_package-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for bhagya_my_ml_package-0.1.0.tar.gz
Algorithm Hash digest
SHA256 79eeda5529e780ea57e30d773edc3f4e9857b6ea6f5c635bbbc6f024cc18a652
MD5 9a49a41b2b115a2393e288bf71885c5d
BLAKE2b-256 23c7ebb63862ddb75ae4ed9046a60fef5283312bcd89e86774402d0e2e97e402

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bhagya_my_ml_package-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24ded08042899ea86444d0e8ea69701ce5b7af896b32d938556fae5692e5a0db
MD5 136d6014d96897c653b7bc5516a53284
BLAKE2b-256 f2ad424fa7f8efdf6ced892171c1bf4ca82e9fe4a3e353ac8bdb23c54967224f

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