Jan. 20, 2022, 7:11 p.m. | /u/AggieDev

Machine Learning www.reddit.com

I have a very basic multiple linear regression working as expected in Python with Sklearn. If I have the input csv:

Grind, RoastLevel, Time
5.5, 5, 20
5.25, 5, 22

And set the independent variables as Roast Level and Time, and dependent variable as Grind:

data_minus_grind = []
grind_data = []
for row in floats:
data_minus_grind.append(row[1:3])
grind_data.append(row[0])

When I run the regression to predict the Grind for a Time of 25, I expect a number slightly lower than 5.25 …

linear regression machinelearning regression

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US

Research Engineer

@ Allora Labs | Remote

Ecosystem Manager

@ Allora Labs | Remote

Founding AI Engineer, Agents

@ Occam AI | New York