# lawlite19/machinelearning_python

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/lawlite19-machinelearning-python).**

8,526 stars · 2,520 forks · Python · MIT

## Links

- GitHub: https://github.com/lawlite19/MachineLearning_Python
- awesome-repositories: https://awesome-repositories.com/repository/lawlite19-machinelearning-python.md

## Description

This is a Python machine learning library featuring a collection of core algorithms implemented from scratch to demonstrate foundational AI concepts. It provides a comprehensive toolkit for supervised learning, unsupervised learning, and neural network development.

The project is distinguished by its custom implementation of a neural network framework, which includes multi-layer perceptrons with backpropagation, gradient descent, and weight regularization. It also includes a specialized anomaly detection toolkit that identifies outliers and rare events using Gaussian probability distributions and F1-score optimization.

The library covers a broad range of capabilities, including supervised classification and regression, k-means clustering, and dimensionality reduction via principal component analysis. Additional functional areas include data preprocessing for numerical normalization, feature engineering through polynomial expansion, and computer vision tasks such as handwritten digit recognition and image color quantization.

## Tags

### Artificial Intelligence & ML

- [Python Machine Learning Libraries](https://awesome-repositories.com/f/artificial-intelligence-ml/python-machine-learning-libraries.md) — A comprehensive collection of core machine learning algorithms implemented from scratch in Python.
- [Centroid-Based Clustering](https://awesome-repositories.com/f/artificial-intelligence-ml/centroid-based-clustering.md) — Implements unsupervised grouping of data by iteratively updating central points.
- [Dimensionality Reduction](https://awesome-repositories.com/f/artificial-intelligence-ml/dimensionality-reduction.md) — Simplifies high-dimensional datasets by projecting data onto principal components that preserve maximum variance.
- [Gradient-Based Learning](https://awesome-repositories.com/f/artificial-intelligence-ml/gradient-based-learning.md) — Implements weight updates in neural networks using gradients computed via backpropagation.
- [K-Means Clustering](https://awesome-repositories.com/f/artificial-intelligence-ml/k-means-clustering.md) — Groups unlabeled data by iteratively assigning points to the nearest centroid. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Clustering Algorithms](https://awesome-repositories.com/f/artificial-intelligence-ml/k-means-clustering/clustering-algorithms.md) — Groups unlabeled data points into distinct clusters based on feature similarity. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Linear Regression](https://awesome-repositories.com/f/artificial-intelligence-ml/linear-regression.md) — Implements linear regression to predict continuous values using gradient descent and feature normalization.
- [Logistic Regression Models](https://awesome-repositories.com/f/artificial-intelligence-ml/logistic-regression-models.md) — Performs binary classification by minimizing a convex cost function through optimization methods. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Neural Network Frameworks](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-network-frameworks.md) — Implements a neural network framework featuring multi-layer perceptrons with backpropagation and regularization.
- [Neural Network Implementations](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-network-implementations.md) — Implements multi-layer neural networks using forward propagation and gradient descent for training. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Neural Networks](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-networks.md) — Implements a neural network framework for creating multi-layer perceptrons with backpropagation.
- [Gradient Descent Algorithms](https://awesome-repositories.com/f/artificial-intelligence-ml/optimization-algorithms/gradient-descent-algorithms.md) — Uses iterative gradient descent to minimize cost functions and optimize model weights.
- [Supervised Classification](https://awesome-repositories.com/f/artificial-intelligence-ml/supervised-classification.md) — Provides a full workflow for building and training models to categorize data into distinct classes.
- [Supervised Learning](https://awesome-repositories.com/f/artificial-intelligence-ml/supervised-learning.md) — Provides a set of supervised learning models including linear regression, logistic regression, and support vector machines.
- [Support Vector Machines](https://awesome-repositories.com/f/artificial-intelligence-ml/support-vector-machines.md) — Constructs classifiers that find the maximum margin hyperplane to separate two distinct classes. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Unsupervised Learning](https://awesome-repositories.com/f/artificial-intelligence-ml/unsupervised-learning.md) — Implements unsupervised learning algorithms including k-means clustering and principal component analysis.
- [Anomaly Detection Metrics](https://awesome-repositories.com/f/artificial-intelligence-ml/anomaly-detection-metrics.md) — Measures the accuracy of anomaly detection using precision, recall, and F1-score. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Gradient Checking](https://awesome-repositories.com/f/artificial-intelligence-ml/backpropagation/gradient-checking.md) — Validates backpropagation gradients by comparing analytic results against numerical approximations. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Decision Threshold Calibration](https://awesome-repositories.com/f/artificial-intelligence-ml/face-detection/confidence-filtering/prediction-thresholds/decision-threshold-calibration.md) — Optimizes probability thresholds on cross-validation sets to maximize the F1-score for anomaly detection. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Feature Scale Normalization](https://awesome-repositories.com/f/artificial-intelligence-ml/feature-scale-normalization.md) — Scales numerical features to a consistent range using mean and standard deviation for faster model convergence. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Probability Density Functions](https://awesome-repositories.com/f/artificial-intelligence-ml/gaussian-processes/probability-density-functions.md) — Calculates probability density values using mean and variance to model normal data distributions.
- [Kernel-Based Feature Mapping](https://awesome-repositories.com/f/artificial-intelligence-ml/kernel-based-feature-mapping.md) — Transforms data into higher-dimensional spaces using kernel functions to resolve non-linear patterns.
- [Polynomial Feature Mapping](https://awesome-repositories.com/f/artificial-intelligence-ml/linear-regression/polynomial-feature-mapping.md) — Transforms low-dimensional input features into polynomial combinations to capture non-linear relationships. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Neural Network Construction](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-network-construction.md) — Implements the process of building neural networks through random weight initialization and automated gradient checking. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Neural Network Regularization](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-network-regularization.md) — Prevents model overfitting by adding a penalty term based on weight magnitudes to the cost function. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Digit Recognition](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-networks/digit-recognition.md) — Processes image pixel data to identify and recognize handwritten numeric characters. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Kernel SVMs](https://awesome-repositories.com/f/artificial-intelligence-ml/online-learning/kernel-svms.md) — Implements support vector machines that use kernel functions for non-linear separation. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Weight Decay Regularization](https://awesome-repositories.com/f/artificial-intelligence-ml/overfitting-reduction-techniques/weight-decay-regularization.md) — Prevents overfitting by adding a penalty term proportional to the square of the weights to the cost function. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Weight Initialization](https://awesome-repositories.com/f/artificial-intelligence-ml/weight-initialization.md) — Assigns small random values to weights to break symmetry and allow neurons to learn distinct features. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Weight Regularization](https://awesome-repositories.com/f/artificial-intelligence-ml/weight-regularization.md) — Prevents model overfitting by adding a penalty term based on the square of the weights to the cost function.

### Data & Databases

- [Anomaly Detection](https://awesome-repositories.com/f/data-databases/anomaly-detection.md) — Provides statistical anomaly detection for identifying outliers and rare events in datasets. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Toolkits](https://awesome-repositories.com/f/data-databases/anomaly-detection-algorithms/toolkits.md) — Ships a specialized anomaly detection toolkit using Gaussian distributions and F1-score optimization.
- [Gaussian Anomaly Detectors](https://awesome-repositories.com/f/data-databases/anomaly-detection-algorithms/gaussian-anomaly-detectors.md) — Implements statistical outlier detection using Gaussian probability density functions. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [One-Vs-All Multi-class Classification](https://awesome-repositories.com/f/data-databases/data-categorization/classification-labelers/one-vs-all-multi-class-classification.md) — Solves multi-class classification problems by training a binary classifier for each distinct category.

### Scientific & Mathematical Computing

- [Principal Component Analysis](https://awesome-repositories.com/f/scientific-mathematical-computing/linear-algebra-routines/principal-component-analysis.md) — Implements a full principal component analysis algorithm to reduce dimensionality while maximizing variance. ([source](https://github.com/lawlite19/machinelearning_python#readme))
- [Non-Linear Classifiers](https://awesome-repositories.com/f/scientific-mathematical-computing/non-linear-state-estimation/non-linear-classifiers.md) — Uses linear, polynomial, and Gaussian kernels to separate non-linearly distributed datasets. ([source](https://github.com/lawlite19/machinelearning_python#readme))
