This is a comprehensive package designed to demystify the concepts of gradients and their applications across various machine learning algorithms. With this release, developers and researchers gain access to a powerful toolkit that simplifies the understanding and implementation of gradient-based optimization techniques.
Project description
Gradient-Based Learning
A comprehensive Python library for gradient-based learning, including neural networks, logistic regression, support vector machines (SVM), and more.
Introduction
The Gradient-Based Learning Library is a versatile toolset for implementing and experimenting with various machine learning algorithms that rely on gradient descent optimization. From basic linear regression to complex neural networks, this library provides a unified interface for building, training, and evaluating models.
Features
- Implementation of the Variable class for automatic differentiation
- Support for various activation functions and cost functions
- Modular neural network architecture with customizable layers and activations
- Logistic regression and support vector machine (SVM) implementations
- Optimizers including stochastic gradient descent (SGD) and batch gradient descent
- Extensible and easy-to-use API for adding custom models and functionalities
Installation
Install the library using pip:
pip install gradientblueprint
Usage
To use the library, import the necessary modules and classes into your Python code:
from gradientblueprint import Variable, MLP, LogisticRegression, SVM, Optimizer, CostFunction
Then, create instances of the provided classes and customize them according to your requirements. Here's a basic example of building and training a neural network:
# Define input dimension and layer dimensions
input_dim = 10
layer_dims = [32, 16, 8]
# Create a multilayer perceptron (MLP)
mlp = MLP(input_dim=input_dim, layers_dim=layer_dims, activations=['relu', 'relu', 'sigmoid'])
# Define optimizer and cost function
optimizer = Optimizer()
cost_function = CostFunction.mean_squared_error
# Train the MLP
for epoch in range(num_epochs):
# Perform forward pass
# Perform backward pass and update weights using optimizer
Refer to the documentation and examples for detailed usage instructions and customization options.
Examples
Explore the examples directory for detailed usage examples and tutorials on how to use different components of the library:
- Simple MLP Example: Basic usage example of building and training a multilayer perceptron (MLP).
- Logistic Regression Example: Example demonstrating how to use logistic regression for binary classification.
- SVM Example: Example illustrating how to use support vector machines (SVM) for classification tasks.
Documentation
For detailed documentation, including API reference and usage guidelines, refer to the Documentation.
Contributing
Contributions to the Gradient-Based Learning Library are welcome! If you find any issues or have suggestions for improvement, please submit a pull request or open an issue on GitHub.
Please read the Contributing Guide for details on how to contribute to this project.
License
This project is licensed under the MIT License.
Star History
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gradientblueprint-1.0.1.tar.gz.
File metadata
- Download URL: gradientblueprint-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86830c5ebc91796f06fb31e8b7fbdfc12a4b638cd9ce137811a626d49930ed01
|
|
| MD5 |
125c8e3648a18d615a8774e62dfee8fa
|
|
| BLAKE2b-256 |
afe4c82ddc5dfc302c7c1b1b90ccbaf02c45e4181394f0636a6a1b3d3a2c04c8
|
File details
Details for the file gradientblueprint-1.0.1-py3-none-any.whl.
File metadata
- Download URL: gradientblueprint-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
804227381d66e21a73fc7c013182dd1b0771213fdfeb721d4c1ed8ab01352b3c
|
|
| MD5 |
456fe456af4c1c81321c600111bdaa43
|
|
| BLAKE2b-256 |
a9e037bba59d7c6f38e47bb70309277107a87ce0771a6d41efc3b720a6f3f165
|