Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Troubled Cell Detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laura Christine Kühle
Troubled Cell Detection
Commits
dae61416
Commit
dae61416
authored
3 years ago
by
Laura Christine Kühle
Browse files
Options
Downloads
Patches
Plain Diff
Removed unnecessary imports.
parent
1aa08945
No related branches found
No related tags found
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ANN_Training.py
+14
-6
14 additions, 6 deletions
ANN_Training.py
with
14 additions
and
6 deletions
ANN_Training.py
+
14
−
6
View file @
dae61416
...
@@ -3,16 +3,25 @@
...
@@ -3,16 +3,25 @@
@author: Laura C. Kühle, Soraya Terrab (sorayaterrab)
@author: Laura C. Kühle, Soraya Terrab (sorayaterrab)
TODO: Give option to compare multiple models -> Done
TODO: Give option to compare multiple models -> Done
TODO: Add more evaluation measures (AUROC, ROC, F1, training accuracy, boxplot over CVF, etc.) -> Done
TODO: Add more evaluation measures (AUROC, ROC, F1, training accuracy, boxplot over CVF, etc.)
-> Done
TODO: Add log to pipeline
TODO: Add log to pipeline
TODO: Remove object set-up
TODO: Remove object set-up
TODO: Optimize Snakefile-vs-config relation
TODO: Optimize Snakefile-vs-config relation
TODO: Improve maximum selection runtime
TODO: Improve maximum selection runtime
TODO: Discuss if we want training accuracy/ROC in addition to CFV
TODO: Discuss if we want training accuracy/ROC in addition to CFV -> Done (No)
TODO: Discuss whether to change output to binary
TODO: Discuss whether to change output to binary -> Done (Yes)
TODO: Change output to binary
TODO: Adapt TCD file to new classification
TODO: Adapt TCD file to new classification
TODO: Improve classification stat handling -> Done
TODO: Improve classification stat handling -> Done
TODO: Discuss automatic comparison between (non-)normalized data
TODO: Discuss automatic comparison between (non-)normalized data
-> Done (Flag for comparison)
TODO: Add flag for evaluation of non-normalized data as well -> Next!
TODO: Add evaluation for all classes (recall, precision, fscore)
TODO: Add documentation
TODO: Separate model training in Snakefile by using wildcards -> Done
TODO: Correct import statements -> Done (Installed new version)
TODO: Remove unnecessary imports -> Done
"""
"""
import
numpy
as
np
import
numpy
as
np
...
@@ -21,8 +30,7 @@ import os
...
@@ -21,8 +30,7 @@ import os
import
torch
import
torch
from
torch.utils.data
import
TensorDataset
,
DataLoader
,
random_split
from
torch.utils.data
import
TensorDataset
,
DataLoader
,
random_split
from
sklearn.model_selection
import
KFold
from
sklearn.model_selection
import
KFold
# from sklearn.metrics import accuracy_score
from
sklearn.metrics
import
accuracy_score
,
precision_recall_fscore_support
,
roc_auc_score
from
sklearn.metrics
import
accuracy_score
,
precision_recall_fscore_support
,
precision_score
,
roc_auc_score
,
roc_curve
import
ANN_Model
import
ANN_Model
from
Plotting
import
plot_classification_accuracy
,
plot_boxplot
from
Plotting
import
plot_classification_accuracy
,
plot_boxplot
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment