A library which Predicts the Y value(output) for given test data points using gradient descent algorithm.
Project description
predictor_gradient_descent
A library which Predicts the Y value(output) for given test data points using gradient descent algorithm. Use: import gradient_descent as gd gd.output_predictor() #and run the code..You will be guided. # Predicts the Y value(output) for given test data points. The model must be trained with samples and output before. Just need to call the function. Accuracy of equation will depend on the no of samples entered..(Directly proportional) Equation should be of the form Ax(0) + Bx(1) + Cx(2) = Y, where A,B and C are coefficients of the linear equation. Input: No of samples, x(0),x(1) and x(2) of all the samples and their Y value Output: Y value for new set of x(0), x(1) and x(2)
Sample output:
ENTER THE NO OF SAMPLES AVAILABLE:3 Enter the samples:
Enter the elements in sample 1
Enter the value of X0: 1 Enter the value of X1: 2 Enter the value of X2: 3 Enter the value of Y: 6
Enter the elements in sample 2
Enter the value of X0: 2 Enter the value of X1: 3 Enter the value of X2: 4 Enter the value of Y: 9
Enter the elements in sample 3
Enter the value of X0: 1 Enter the value of X1: 1 Enter the value of X2: 1 Enter the value of Y: 3
MODEL IS BEING TRAINED..PLEASE WAIT!!
MODEL TRAINED!!!
ENTER THE NEW SAMPLE TO GET THE Y
Enter the element X0: 10 Enter the element X1: 90 Enter the element X2: 11 PREDICTED Y:111.0
[Program finished]
Installation
pip install predictor-gradient-descent
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 predictor_gradient_descent-0.1.0.tar.gz.
File metadata
- Download URL: predictor_gradient_descent-0.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df418042ac0a0ed64bfbdf839de28ae851407d6a1f327a9d8793fc74a9e50a66
|
|
| MD5 |
fda40544f83e75e8a6fdfdbcebe2725e
|
|
| BLAKE2b-256 |
b8093f6a1871de0398723ea6e35a1c8ef7cd8b8c22eb44d34961f041c3a7fce2
|
File details
Details for the file predictor_gradient_descent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: predictor_gradient_descent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a14c03e41318e8e2844990e48b9b550054bec84d0ca2a87418f229ae0a40c224
|
|
| MD5 |
a637167e35229c9cc65fc032ecb97d30
|
|
| BLAKE2b-256 |
1c2fc1caf64fed2348fb7fdb79931e38dc974926caa06df1920b3219e4523a68
|