Skip to content

Commit

Permalink
Change scaler
Browse files Browse the repository at this point in the history
  • Loading branch information
CihanSoylu committed Mar 18, 2020
1 parent ba79113 commit 9e5093a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project_utils/project_2_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ def load_data(n_features = 2):

x_train, x_test, y_train, y_test = train_test_split(x, y, test_size=0.3, stratify = y, random_state=2)

scaler = MinMaxScaler()
scaler = StandardScaler()
scaler.fit(x_train)
x_train = scaler.transform(x_train)
x_test = scaler.transform(x_test)



return x_train[:,:n_features], x_test[:,:n_features], y_train, y_test

def plot_data(x,y):
Expand Down

0 comments on commit 9e5093a

Please sign in to comment.