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

snapshot...

parent cdad9919
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,12 @@ import sklearn.tree as tree ...@@ -15,6 +15,12 @@ import sklearn.tree as tree
from sklearn.tree import export_graphviz from sklearn.tree import export_graphviz
# def analyze(dataFrame):
# no_icing_df = dataFrame[dataFrame['icing_intensity'] == -1]
# icing_df = dataFrame[dataFrame['icing_intensity'] >= 1]
# return no_icing_df, icing_df
def plot_confusion_matrix(cm, classes, def plot_confusion_matrix(cm, classes,
normalize=False, normalize=False,
title='Confusion matrix', title='Confusion matrix',
...@@ -80,6 +86,8 @@ def get_feature_target_data(data_frame, standardize=True): ...@@ -80,6 +86,8 @@ def get_feature_target_data(data_frame, standardize=True):
'cld_opd_dcomp', 'iwc_dcomp'] 'cld_opd_dcomp', 'iwc_dcomp']
# Remove this column # Remove this column
icing_df = icing_df.drop('lwc_dcomp', axis=1) icing_df = icing_df.drop('lwc_dcomp', axis=1)
# Remove this column
icing_df = icing_df.drop('cld_geo_thick', axis=1)
# Remove rows with NaN values # Remove rows with NaN values
# icing_df = icing_df.dropna() # icing_df = icing_df.dropna()
......
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