Skip to content
Snippets Groups Projects
Commit 76aa578e authored by tomrink's avatar tomrink
Browse files

snapshot...

parent dd0998cf
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ def get_csv_as_dataframe(csv_file):
return icing_df
def get_train_test_data(data_frame, normalize=True):
def get_train_test_data(data_frame, standardize=True):
icing_df = data_frame
# The independent variables we want to use:
params = ['cld_geo_thick', 'cld_temp_acha', 'conv_cloud_fraction', 'supercooled_cloud_fraction', 'cld_reff_dcomp',
......@@ -32,7 +32,7 @@ def get_train_test_data(data_frame, normalize=True):
print(icing_df.shape)
x = np.asarray(icing_df[params])
if normalize:
if standardize:
x = preprocessing.StandardScaler().fit(x).transform(x)
y = np.asarray(icing_df['icing_intensity'])
y = np.where(y == -1, 0, y)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment