Updating
Browse files
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[
|
18 |
-
train_features = train_set_clean.drop(
|
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
|