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 49a46895 authored by Martyna Plomecka's avatar Martyna Plomecka
Browse files

Added the next results for SVC

parent 67275090
......@@ -60,17 +60,17 @@ def try_sklearn_classifiers(X, y):
logging.info("Training the simple classifiers: kNN, Linear SVM, Random Forest and Naive Bayes.")
names = [# "Nearest Neighbors",
# "Linear SVM",
"Random Forest",
"Naive Bayes",
# "Random Forest",
# "Naive Bayes",
"Linear SVM"
]
classifiers = [
# KNeighborsClassifier(n_neighbors=5, weights='uniform', algorithm='auto', leaf_size=30, n_jobs=-1),
# LinearSVC(tol=1e-5, C=1, random_state=42, max_iter=1000),
RandomForestClassifier(n_estimators=30, max_depth=20, max_features='auto', random_state=42, n_jobs=-1),
GaussianNB(),
LinearSVC(tol=1e-3, C=5, random_state=42, max_iter=500)
# RandomForestClassifier(n_estimators=30, max_depth=20, max_features='auto', random_state=42, n_jobs=-1),
# GaussianNB(),
LinearSVC(tol=1e-3, C=100, random_state=42, max_iter=500)
]
X = X.reshape((36223, 500 * 129))
......
......@@ -51,7 +51,7 @@ def main():
try_sklearn_classifiers(trainX, trainY)
# cross_validate_kNN(trainX, trainY)
# cross_validate_SVC(trainX, trainY)
cross_validate_RFC(trainX, trainY)
# cross_validate_RFC(trainX, trainY)
else:
# tune(trainX,trainY)
run(trainX,trainY)
......
Model,Score,Runtime
Linear SVM,0.7054520358868185,1480.9644372463226
LinearSVC(tol=1e-3, C=100, random_state=42, max_iter=500)
INFO:root:Started the Logging
INFO:root:X training loaded.
INFO:root:(129, 500, 36223)
INFO:root:y training loaded.
INFO:root:(1, 36223)
INFO:root:Setting the shapes
INFO:root:(36223, 500, 129)
INFO:root:(36223, 1)
INFO:root:Training the simple classifiers: kNN, Linear SVM, Random Forest and Naive Bayes.
INFO:root:Linear SVM
INFO:root:--- Score: 0.7054520358868185
INFO:root:--- Runtime: 1480.9644372463226 for seconds ---
INFO:root:--- Runtime: 1700.2272758483887 seconds ---
INFO:root:Finished Logging
Sender: LSF System <lsfadmin@eu-g1-011-4>
Subject: Job 166874781: <python /cluster/home/mplomecka/dl-project/main.py> in cluster <euler> Done
Job <python /cluster/home/mplomecka/dl-project/main.py> was submitted from host <eu-login-16> by user <mplomecka> in cluster <euler> at Wed Mar 24 08:27:14 2021
Job was executed on host(s) <15*eu-g1-011-4>, in queue <bigmem.24h>, as user <mplomecka> in cluster <euler> at Wed Mar 24 08:27:51 2021
</cluster/home/mplomecka> was used as the home directory.
</cluster/home/mplomecka/dl-project> was used as the working directory.
Started at Wed Mar 24 08:27:51 2021
Terminated at Wed Mar 24 08:56:25 2021
Results reported at Wed Mar 24 08:56:25 2021
Your job looked like:
------------------------------------------------------------
# LSBATCH: User input
python /cluster/home/mplomecka/dl-project/main.py
------------------------------------------------------------
Successfully completed.
Resource usage summary:
CPU time : 1704.64 sec.
Max Memory : 95444 MB
Average Memory : 85955.62 MB
Total Requested Memory : 120000.00 MB
Delta Memory : 24556.00 MB
Max Swap : -
Max Processes : 3
Max Threads : 4
Run time : 1714 sec.
Turnaround time : 1751 sec.
The output (if any) follows:
2021-03-24 08:27:52.622212: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.11.0
(36223, 500, 129)
(36223, 1)
/cluster/apps/nss/gcc-6.3.0/python/3.8.5/x86_64/lib64/python3.8/site-packages/sklearn/svm/_base.py:976: ConvergenceWarning: Liblinear failed to converge, increase the number of iterations.
warnings.warn("Liblinear failed to converge, increase "
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