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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laura Christine Kühle
Troubled Cell Detection
Commits
522688a3
Commit
522688a3
authored
2 years ago
by
Laura Christine Kühle
Browse files
Options
Downloads
Patches
Plain Diff
Replaced 'num_coarse_grid_cells' with Mesh.
parent
74901fe3
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
+4
-5
4 additions, 5 deletions
Troubled_Cell_Detector.py
with
4 additions
and
5 deletions
Troubled_Cell_Detector.py
+
4
−
5
View file @
522688a3
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
TODO: Adjust TCs for wavelet detectors (sliding window over all cells instead
TODO: Adjust TCs for wavelet detectors (sliding window over all cells instead
of every second) -> Done
of every second) -> Done
TODO: Replace num_coarse_grid_cells with mesh
TODO: Replace num_coarse_grid_cells with mesh
-> Done
TODO: Introduce Adjusted Outer Fence method in Boxplot using global_mean
TODO: Introduce Adjusted Outer Fence method in Boxplot using global_mean
TODO: Introduce overlapping cell for adjacent folds in Boxplot
TODO: Introduce overlapping cell for adjacent folds in Boxplot
TODO: Introduce lower/upper extreme outliers in Boxplot
TODO: Introduce lower/upper extreme outliers in Boxplot
...
@@ -226,8 +226,7 @@ class WaveletDetector(TroubledCellDetector):
...
@@ -226,8 +226,7 @@ class WaveletDetector(TroubledCellDetector):
"""
"""
super
().
_reset
(
config
)
super
().
_reset
(
config
)
# Set additional necessary parameter
# Set wavelet projections
self
.
_num_coarse_grid_cells
=
self
.
_mesh
.
num_grid_cells
//
2
self
.
_wavelet_projection_left
,
self
.
_wavelet_projection_right
\
self
.
_wavelet_projection_left
,
self
.
_wavelet_projection_right
\
=
self
.
_basis
.
multiwavelet_projection
=
self
.
_basis
.
multiwavelet_projection
...
@@ -311,7 +310,7 @@ class WaveletDetector(TroubledCellDetector):
...
@@ -311,7 +310,7 @@ class WaveletDetector(TroubledCellDetector):
# Calculate projection on coarse mesh
# Calculate projection on coarse mesh
output_matrix
=
[]
output_matrix
=
[]
for
i
in
range
(
self
.
_
num_coarse
_grid_cells
):
for
i
in
range
(
self
.
_
mesh
.
num
_grid_cells
//
2
):
new_entry
=
0.5
*
(
new_entry
=
0.5
*
(
projection
[:,
2
*
i
]
@
basis_projection_left
projection
[:,
2
*
i
]
@
basis_projection_left
+
projection
[:,
2
*
i
+
1
]
@
basis_projection_right
)
+
projection
[:,
2
*
i
+
1
]
@
basis_projection_right
)
...
@@ -496,6 +495,6 @@ class Theoretical(WaveletDetector):
...
@@ -496,6 +495,6 @@ class Theoretical(WaveletDetector):
for
degree
in
range
(
for
degree
in
range
(
self
.
_basis
.
polynomial_degree
+
1
))
/
max_avg
self
.
_basis
.
polynomial_degree
+
1
))
/
max_avg
eps
=
self
.
_cutoff_factor
\
eps
=
self
.
_cutoff_factor
\
/
(
self
.
_mesh
.
cell_len
*
self
.
_
num_coarse
_grid_cells
*
2
)
/
(
self
.
_mesh
.
cell_len
*
self
.
_
mesh
.
num
_grid_cells
)
return
max_value
>
eps
return
max_value
>
eps
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