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
fd22e0ca
Commit
fd22e0ca
authored
3 years ago
by
Laura Christine Kühle
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug in ouput evaluation for ANN model.
parent
bc1150e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Troubled_Cell_Detector.py
+3
-2
3 additions, 2 deletions
Troubled_Cell_Detector.py
with
3 additions
and
2 deletions
Troubled_Cell_Detector.py
+
3
−
2
View file @
fd22e0ca
...
@@ -6,6 +6,7 @@ TODO: Adjust TCs for wavelet detectors (sliding window over all cells instead of
...
@@ -6,6 +6,7 @@ TODO: Adjust TCs for wavelet detectors (sliding window over all cells instead of
TODO: Adjust Boxplot approach (adjacent cells, outer fence, etc.)
TODO: Adjust Boxplot approach (adjacent cells, outer fence, etc.)
TODO: Give detailed description of wavelet detection
TODO: Give detailed description of wavelet detection
TODO: Load ANN state and config in reset -> Done
TODO: Load ANN state and config in reset -> Done
TODO: Fix bug in output calculation -> Done
"""
"""
import
numpy
as
np
import
numpy
as
np
...
@@ -303,9 +304,9 @@ class ArtificialNeuralNetwork(TroubledCellDetector):
...
@@ -303,9 +304,9 @@ class ArtificialNeuralNetwork(TroubledCellDetector):
for
cell
in
range
(
num_ghost_cells
,
len
(
projection
[
0
])
-
num_ghost_cells
)]))
for
cell
in
range
(
num_ghost_cells
,
len
(
projection
[
0
])
-
num_ghost_cells
)]))
# Determine troubled cells
# Determine troubled cells
model_output
=
torch
.
round
(
self
.
_model
(
input_data
.
float
()))
model_output
=
torch
.
argmax
(
self
.
_model
(
input_data
.
float
())
,
dim
=
1
)
return
[
cell
for
cell
in
range
(
len
(
model_output
))
return
[
cell
for
cell
in
range
(
len
(
model_output
))
if
model_output
[
cell
,
0
]
==
torch
.
tensor
([
1
])]
if
model_output
[
cell
]
==
torch
.
tensor
([
0
])]
class
WaveletDetector
(
TroubledCellDetector
):
class
WaveletDetector
(
TroubledCellDetector
):
...
...
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