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
74082f94
Commit
74082f94
authored
4 years ago
by
Peter Lünenschloß
Browse files
Options
Downloads
Patches
Plain Diff
made normscale project constant series onto 0.5 (to avoid all_nan series return)
parent
158f0e6e
No related branches found
No related tags found
2 merge requests
!193
Release 1.4
,
!188
Release 1.4
Pipeline
#5456
passed with stage
in 6 minutes and 55 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dios
+1
-1
1 addition, 1 deletion
dios
saqc/lib/ts_operators.py
+6
-1
6 additions, 1 deletion
saqc/lib/ts_operators.py
with
7 additions
and
2 deletions
dios
@
e9a80225
Compare
8264b254
...
e9a80225
Subproject commit
8264b2540025709465b2db0c23a074d97e31182c
Subproject commit
e9a80225b02799fa668882149a39f4a734b4f280
This diff is collapsed.
Click to expand it.
saqc/lib/ts_operators.py
+
6
−
1
View file @
74082f94
...
...
@@ -87,8 +87,13 @@ def scale(ts, target_range=1, projection_point=None):
def
normScale
(
ts
):
# func scales series to [0,1] interval and projects constant series onto 0.5
ts_min
=
ts
.
min
()
return
(
ts
-
ts_min
)
/
(
ts
.
max
()
-
ts_min
)
ts_max
=
ts
.
max
()
if
ts_min
==
ts_max
:
return
pd
.
Series
(
data
=
0.5
,
index
=
ts
.
index
)
else
:
return
(
ts
-
ts_min
)
/
(
ts
.
max
()
-
ts_min
)
def
standardizeByMean
(
ts
):
...
...
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