Gradient Descent Module
Introduction
Gradient Descent for the Fundamentals of Machine Learning module of my Computer Science Degree
Getting Started
Installation
This can be installed via pip by running
pip install
It can then be used as a regular module
Examples
Examples found in the examples folder both as a python file and as jupyter notebooks
- The blue points are the random points that somewhat fit the curve 2x2 - 3x + 4
- The Red line is the actual curve
- The Green line is the predicted curve
Prerequisites
Modules Used
- Matplotlib
Version of python Used = 3.11.4
Developer Details
Documentation
HTML file documentation generated by sphinx can be found here
Linting
In the base of the project you can run pylint gradient_descent
Learning Parameters (for OK results)
- Quartic - learning = 0.0000000003
- Cubic - learning = 0.00000003
- Quadratic - learning = 0.000001
- Linear - learning = 0.00001
In general for each extra polynomial term you add it should be ~100x smaller. Smaller learning rates may get better results, but you will need to have more attempts to reach it since it learns slower
Testing
pytest is required for these tests.
This can be installed by pip install pytest
Details
License
This falls under the MIT license found here
Authors
Ed Fillingham
Sources
This project can be found at https://github.com/edf1101/GradientDescent
Metadata
Release files for gradient-descent-edf1101 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gradient_descent-edf1101-1.0.tar.gz | 5.9 kB | Without provenance | Details for gradient_descent-edf1101-1.0.tar.gz |
Release files / gradient_descent-edf1101-1.0.tar.gz
| Download URL | gradient_descent-edf1101-1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ded1a61f941900ab7ec035891a596df34956f9fca5f2541319d9c62c31951cf8
|
|
BLAKE2b-256 checksum How to use checksums |
4b6ab90fa6f6ea7931b0507b9b99c3f6b5e856c574a93497bdd4e16da82dfa53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for gradient-descent-edf1101 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.