Advertisement
korenizla

интерпретацияMSE_1

Oct 11th, 2022
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. import pandas as pd
  2. from sklearn.metrics import mean_squared_error
  3.  
  4. df = pd.read_csv('/datasets/train_data.csv')
  5.  
  6. # < создайте переменные features и target >
  7. fearures = df.drop(['last_price'], axis=1)
  8. target = df['last_price'] / 1000000
  9.  
  10. print('Средняя цена:', target.mean()) # < найдите и напечатайте среднее >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement