Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

model.py 205 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
  1. import pandas as pd
  2. from sklearn.linear_model import LinearRegression
  3. df = pd.read_csv('cleaned_data.csv')
  4. y = df['target']
  5. X = df.drop('target')
  6. reg = LinearRegression().fit(X,y)
  7. score = reg.score(X,y)
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...