bleesman commited on
Commit
8f5b8fd
1 Parent(s): 71ec22d
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,8 +14,8 @@ def main(input1):
14
  train_set, test_set = train_test_split(housing, test_size=0.2, random_state=10)
15
 
16
  train_set_clean = train_set.dropna()
17
- train_labels = train_set_clean["housing_median_age"].copy() # get labels for output label Y
18
- train_features = train_set_clean.drop("housing_median_age", axis=1) # drop labels to get features X for training set
19
 
20
  scaler = MinMaxScaler() ## define the transformer
21
  scaler.fit(train_features) ## call .fit() method to calculate the min and max value for each column in dataset
 
14
  train_set, test_set = train_test_split(housing, test_size=0.2, random_state=10)
15
 
16
  train_set_clean = train_set.dropna()
17
+ train_labels = train_set_clean[input1].copy() # get labels for output label Y
18
+ train_features = train_set_clean.drop(input1, axis=1) # drop labels to get features X for training set
19
 
20
  scaler = MinMaxScaler() ## define the transformer
21
  scaler.fit(train_features) ## call .fit() method to calculate the min and max value for each column in dataset