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
95ce990d
Commit
95ce990d
authored
3 years ago
by
Peter Lünenschloß
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into driftModelKW
parents
4f113c72
ac7a697e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
8 merge requests
!685
Release 2.4
,
!684
Release 2.4
,
!567
Release 2.2.1
,
!566
Release 2.2
,
!501
Release 2.1
,
!372
fix doctest snippets
,
!369
Current documentation
,
!349
made driftmodel Key Word String or Callable
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
saqc/core/register.py
+8
-6
8 additions, 6 deletions
saqc/core/register.py
with
8 additions
and
6 deletions
saqc/core/register.py
+
8
−
6
View file @
95ce990d
...
...
@@ -103,7 +103,9 @@ class FunctionWrapper:
self
.
args
=
args
self
.
kwargs
=
self
.
_checkKwargs
(
kwargs
)
self
.
targets
=
toSequence
(
kwargs
.
get
(
"
target
"
,
None
)
or
[])
self
.
targets
=
(
toSequence
(
kwargs
[
"
target
"
])
if
kwargs
.
get
(
"
target
"
,
None
)
else
self
.
fields
)
self
.
mask_thresh
=
self
.
_getMaskingThresh
()
if
self
.
data_masking
:
...
...
@@ -145,7 +147,7 @@ class FunctionWrapper:
kwargs
=
self
.
kwargs
.
copy
()
kwargs
[
"
to_mask
"
]
=
self
.
mask_thresh
# always pass a list to multivariat functions and
# always pass a list to multivariat
e
functions and
# unpack single element lists for univariate functions
if
self
.
_multivariate
:
field
=
self
.
fields
...
...
@@ -175,7 +177,7 @@ class FunctionWrapper:
return
self
.
data
.
columns
# datamask == "field"
return
pd
.
Index
(
self
.
targets
or
self
.
fields
)
return
pd
.
Index
(
self
.
fields
)
def
_getMaskingThresh
(
self
)
->
float
:
"""
...
...
@@ -234,12 +236,12 @@ class FunctionWrapper:
meta
=
self
.
_createMeta
()
new_columns
=
flags
.
columns
.
difference
(
self
.
flags
.
columns
)
# N
ote
: do not call _getMaskingColumns because it takes columns
from data,
# instead of from the new flags
# N
OTE
: do not call _getMaskingColumns because it takes columns
#
from data,
instead of from the new flags
if
self
.
datamask
in
(
None
,
"
all
"
):
columns
=
flags
.
columns
else
:
# datamask == field
columns
=
pd
.
Index
(
self
.
targets
or
self
.
fields
)
columns
=
pd
.
Index
(
self
.
targets
)
for
col
in
columns
.
union
(
new_columns
):
...
...
This diff is collapsed.
Click to expand it.
David Schäfer
@schaefed
mentioned in commit
63b55c6d
·
2 years ago
mentioned in commit
63b55c6d
mentioned in commit 63b55c6d7dadb0e612b23a897f292d5ffc14cb52
Toggle commit list
David Schäfer
@schaefed
mentioned in commit
684dc8a0
·
2 years ago
mentioned in commit
684dc8a0
mentioned in commit 684dc8a0515470d644fc85fee95d07661c8dd572
Toggle commit list
David Schäfer
@schaefed
mentioned in commit
8f7a90e4
·
1 year ago
mentioned in commit
8f7a90e4
mentioned in commit 8f7a90e4aed61c79a9dc8d67541a46beba0907e8
Toggle commit list
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