ertk.train.get_pipeline_params
- ertk.train.get_pipeline_params(params: Dict[str, Any], pipeline: Pipeline)
Modifies parameter names to pass to a Pipeline instance’s
fit()method.- Parameters:
- params: dict
Parameters to pass to Pipeline.fit(). All parameters are passed to all estimators in the pipeline so long as they are valid.
- pipeline: Pipeline
The pipeline instance.
- Returns:
- new_params: dict
Parameters filtered and prepended with pipeline step names and double underscore (e.g. groups -> clf__groups).