Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Commits
f96d07ca
Commit
f96d07ca
authored
2 years ago
by
David Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
changed docs usages of transferFlags to concatFlags
parent
91570a04
No related branches found
No related tags found
1 merge request
!606
Release2.3
Pipeline
#143721
failed with stages
in 1 minute and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/cookbooks/MultivariateFlagging.rst
+6
-6
6 additions, 6 deletions
docs/cookbooks/MultivariateFlagging.rst
docs/resources/data/hydro_config.csv
+3
-3
3 additions, 3 deletions
docs/resources/data/hydro_config.csv
with
9 additions
and
9 deletions
docs/cookbooks/MultivariateFlagging.rst
+
6
−
6
View file @
f96d07ca
.. SPDX-FileCopyrightText: 2021 Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
.. SPDX-FileCopyrightText
Text
: 2021 Helmholtz-Zentrum
rum
für Umweltforschung GmbH - UFZ
..
.. SPDX-License-Identifier: GPL-3.0-or-later
...
...
@@ -347,7 +347,7 @@ correlated with relatively high *kNNscores*, we could try to calculate a thresho
`STRAY <https://arxiv.org/pdf/1908.04000.pdf>`_ algorithm, which is available as the method:
:py:meth:`~saqc.SaQC.flagByStray`. This method will mark some samples of the `kNNscore` variable as anomaly.
Subsequently we project this marks (or *flags*) on to the *sac* variable with a call to
:py:meth:`~saqc.SaQC.
transfer
Flags`. For the sake of demonstration, we also project the flags
:py:meth:`~saqc.SaQC.
concat
Flags`. For the sake of demonstration, we also project the flags
on the normalized *sac* and plot the flagged values in the *sac254_norm* - *level_norm* feature space.
...
...
@@ -355,8 +355,8 @@ on the normalized *sac* and plot the flagged values in the *sac254_norm* - *leve
.. doctest:: exampleMV
>>> qc = qc.flagByStray(field='kNNscores', freq='30D', alpha=.3)
>>> qc = qc.
transfer
Flags(field='kNNscores', target='sac254_corrected', label='STRAY')
>>> qc = qc.
transfer
Flags(field='kNNscores', target='sac254_norm', label='STRAY')
>>> qc = qc.
concat
Flags(field='kNNscores', target='sac254_corrected', label='STRAY')
>>> qc = qc.
concat
Flags(field='kNNscores', target='sac254_norm', label='STRAY')
>>> qc.plot('sac254_corrected', xscope='2016-11') # doctest:+SKIP
>>> qc.plot('sac254_norm', phaseplot='level_norm', xscope='2016-11') # doctest:+SKIP
...
...
@@ -365,8 +365,8 @@ on the normalized *sac* and plot the flagged values in the *sac254_norm* - *leve
:include-source: False
qc = qc.flagByStray(field='kNNscores', freq='30D', alpha=.3)
qc = qc.
transfer
Flags(field='kNNscores', target='sac254_corrected', label='STRAY')
qc = qc.
transfer
Flags(field='kNNscores', target='sac254_norm', label='STRAY')
qc = qc.
concat
Flags(field='kNNscores', target='sac254_corrected', label='STRAY')
qc = qc.
concat
Flags(field='kNNscores', target='sac254_norm', label='STRAY')
.. plot::
:context: close-figs
...
...
This diff is collapsed.
Click to expand it.
docs/resources/data/hydro_config.csv
+
3
−
3
View file @
f96d07ca
...
...
@@ -16,6 +16,6 @@ water_z ; transform(field=['water_temp_raw'], func=zScore(x), fr
sac_z ; transform(field=['sac254_raw'], func=zScore(x), freq='20D')
kNN_scores ; assignKNNScore(field=['level_z', 'water_z', 'sac_z'], freq='20D')
kNN_scores ; flagByStray(freq='20D')
level_raw ; transferFlags(field=['kNN_scores'], label='STRAY')
sac254_corr ; transferFlags(field=['kNN_scores'], label='STRAY')
water_temp_raw ; transferFlags(field=['kNN_scores'], label='STRAY')
\ No newline at end of file
level_raw ; concatFlags(field=['kNN_scores'], label='STRAY')
sac254_corr ; concatFlags(field=['kNN_scores'], label='STRAY')
water_temp_raw ; concatFlags(field=['kNN_scores'], label='STRAY')
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