To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 6b51f467 authored by Feliks Kiszkurno's avatar Feliks Kiszkurno
Browse files

Fixed problem with conflict if sen==True and weight==True

parent 2cf82faa
......@@ -39,20 +39,29 @@ def classification_train(test_training, test_results, clf, clf_name):
depth_estim_labels_training = []
num_feat = []
if settings.settings['norm'] is True:
num_feat.append('RESN')
else:
num_feat.append('RES')
if settings.settings['sen'] is True:
num_feat.append('SEN')
if settings.settings['depth'] is True:
num_feat.append('Y')
if settings.settings['weight'] is True:
num_feat.remove('SEN')
try:
num_feat.remove('SEN')
except ValueError:
print('SEN already removed')
if settings.settings['sen'] is False:
try:
num_feat.remove('SEN')
except ValueError:
print('SEN already removed')
if settings.settings['sen'] is True:
num_feat.append('SEN')
num_trans = StandardScaler()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment