Skip to content

Commit

Permalink
Improve docstrings for mrmr pipeline functions (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
tracivar authored Jul 8, 2022
1 parent 658b928 commit 5244c2c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions zegami_sdk/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,29 @@ def add_snapshot(self, name, desc, snapshot):
def add_feature_pipeline(self, pipeline_name, steps, source=0, generate_snapshot=False):
"""
Add mRMR, cluster, mapping nodes and update the merge node for the source.
pipeline_name: self defined name used to derive column ids/titles
source: index or name of the collection source to use
generate_snapshot: whether to generate a snapshot for the new clustering results
steps: list of nodes which would feed one into the other in sequence
- example:
[
{
'action': 'mRMR',
'params': {
'target_column': 'weight',
'K': 20,
'option': 'regression' # another option is classification
},
},
{
'action': 'cluster',
'params': {}
}
}
]
The results from get_feature_pipelines() can be used to passed in here to recreate a pipeline.
"""
# get the source
source = self._parse_source(source)
Expand Down

0 comments on commit 5244c2c

Please sign in to comment.