ulysse commited on
Commit
6fbbd53
·
1 Parent(s): 66884d3

With the model fit, this time

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -19,7 +19,11 @@ def trainme(MedInc, HouseAge, AveRooms, AveBedrms, Population, AveOccup, Latitud
19
  #Split
20
  y = pd.DataFrame(data=housing_df['Price']).to_numpy()
21
  X = housing_df.drop('Price', axis=1).to_numpy()
22
-
 
 
 
 
23
  #Create a redable/clean feature list
24
  clean_features = ['Median income',
25
  'Median house age',
 
19
  #Split
20
  y = pd.DataFrame(data=housing_df['Price']).to_numpy()
21
  X = housing_df.drop('Price', axis=1).to_numpy()
22
+
23
+ #create a machine learning model and train it
24
+ lineareg = LinearRegression()
25
+ lineareg.fit(X,y)
26
+
27
  #Create a redable/clean feature list
28
  clean_features = ['Median income',
29
  'Median house age',