Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

predictor_gradient_descent-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

predictor_gradient_descent-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for predictor_gradient_descent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df418042ac0a0ed64bfbdf839de28ae851407d6a1f327a9d8793fc74a9e50a66
MD5 fda40544f83e75e8a6fdfdbcebe2725e
BLAKE2b-256 b8093f6a1871de0398723ea6e35a1c8ef7cd8b8c22eb44d34961f041c3a7fce2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for predictor_gradient_descent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a14c03e41318e8e2844990e48b9b550054bec84d0ca2a87418f229ae0a40c224
MD5 a637167e35229c9cc65fc032ecb97d30
BLAKE2b-256 1c2fc1caf64fed2348fb7fdb79931e38dc974926caa06df1920b3219e4523a68

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