Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Turning on FeatureReducer
Browse files Browse the repository at this point in the history
  • Loading branch information
cchoquette committed Aug 7, 2019
1 parent f39736d commit 6c799cd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions foreshadow/preparer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from foreshadow.steps import (
CleanerMapper,
FeatureEngineererMapper,
FeatureReducerMapper,
IntentMapper,
Preprocessor,
)
Expand Down Expand Up @@ -68,9 +69,9 @@ def __init__(
preprocessor_kwargs_ = _none_to_dict(
"preprocessor_kwargs", preprocessor_kwargs, column_sharer
)
# reducer_kwargs_ = _none_to_dict(
# "reducer_kwargs", reducer_kwargs, column_sharer
# )
reducer_kwargs_ = _none_to_dict(
"reducer_kwargs", reducer_kwargs, column_sharer
)
# modeler_kwargs_ = _none_to_dict(
# "modeler_kwargs", modeler_kwargs, column_sharer
# )
Expand All @@ -84,7 +85,7 @@ def __init__(
FeatureEngineererMapper(**engineerer_kwargs_),
),
("feature_preprocessor", Preprocessor(**preprocessor_kwargs_)),
# ('feature_reducer', reducer_kwargs_,),
("feature_reducer", FeatureReducerMapper(**reducer_kwargs_)),
# ('model_selector', modeler_kwargs_)
] # TODO add each of these components
)

0 comments on commit 6c799cd

Please sign in to comment.