A Package to use pandas DataFrame in sklearn pipeline. And others useful works to use sklearn pipeline in non usual way.
Project description
The main use of this package is to use Sklearn Pipeline with transformer / estimator that doesn't comply with the basic Pipeline:
1 - Use sklearn Pipeline with transformation on Y:
spliter = SplitXY("a")
pipe = Pipeline([
("imputer", SklearnPandasWrapper(KNNImputer())),
("spliter", spliter), ("scaler", StandardScaler()),
("rf",
EstimatorWithoutYWrapper(RandomForestRegressor(random_state=45),
spliter))
])
pipe.fit(self.input_df)
res = pipe.predict(self.input_df)
2 - Use sklearn Transformer (returning numpy array) to return pandas DataFrame (with unchanged columns names):
SklearnPandasWrapper(StandardScaler()))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sklearn-pandas-transformers-0.0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47cb73c911fbab79dcc8dd13a7a0d342d49f203a5e8952185592fdbb800f6676 |
|
MD5 | c5e8070a1544d26d4e8a4f9721013158 |
|
BLAKE2b-256 | 43206a2cad22363f170662837fb1820b5f83f92eed50fe075e83f179694c480b |
Close
Hashes for sklearn_pandas_transformers-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d822b3383af4bf5be3472cffd60c40959ececdd84c91dfe4296ee928d91cb571 |
|
MD5 | 943dc977fe2d71075eea7c64cdcae2b6 |
|
BLAKE2b-256 | 95c191aecfaef05e32db7104dd163920a4d1c5a051347ad8ef9ece2555fc9123 |