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 e245da66 authored by Feliks Kiszkurno's avatar Feliks Kiszkurno
Browse files

Last commit to what now is master_old. This is to preserve, just in case, the...

Last commit to what now is master_old. This is to preserve, just in case, the old, incorrect run_classi function.
parent e10123b3
...@@ -6,6 +6,8 @@ Created on 19.01.2021 ...@@ -6,6 +6,8 @@ Created on 19.01.2021
@author: Feliks Kiszkurno @author: Feliks Kiszkurno
""" """
# LEGACY FILE DONT USE!!!!
import settings import settings
import slopestabilityML import slopestabilityML
import numpy as np import numpy as np
...@@ -18,7 +20,7 @@ from matplotlib import ticker ...@@ -18,7 +20,7 @@ from matplotlib import ticker
import slopestabilitytools import slopestabilitytools
def run_classification(test_training, test_prediction, test_results, clf, clf_name): def run_classification_legacy(test_training, test_prediction, test_results, clf, clf_name):
accuracy_result = [] accuracy_result = []
accuracy_labels = [] accuracy_labels = []
...@@ -73,6 +75,7 @@ def run_classification(test_training, test_prediction, test_results, clf, clf_na ...@@ -73,6 +75,7 @@ def run_classification(test_training, test_prediction, test_results, clf, clf_na
clf_pipeline = make_pipeline(preprocessor, clf) clf_pipeline = make_pipeline(preprocessor, clf)
# This part is wrong
for test_name in test_training: for test_name in test_training:
# Prepare data # Prepare data
print(test_name) print(test_name)
......
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