Skip to content

A small example how to do linear regression to calculate the length of a fish.

Notifications You must be signed in to change notification settings

kstrempel/LinearRegressionFishLength

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear Regression with Tensorflow Example

Creating the Conda Environment

conda env create -f conda.yaml

Activating the Conda Environment

conda activate fishlength

Running the Example

The run.py python file is the training script.

The run.py scripts needs two parameters

e.g.

python run.py 1000 0.001

  • 1000 is the amount of steps to train
  • 0.001 is the learning rate for the GradientDescentOptimizer

Check the learning rate in the MLFlow

Start the MLFlow server with:

mlflow server

In the overview click select the experiment that you want to check.

In the metrics section click on the loos link.

You should see something like this:

Loss History

Now you can play with the amount of steps and learning rate. :-)

About

A small example how to do linear regression to calculate the length of a fish.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages