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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76868f23496063f1a05ccc0523c038eedd8f0957b641e216d3d3d91576c91621 |
|
MD5 | 5ad11229958aed040ab93af7260e0f62 |
|
BLAKE2b-256 | e9c309f4984de06b7dea917bf06084b9be1499d9432af47b1c70fd42d805f6d5 |
Close
Hashes for sklearn_pandas_transformers-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4050a145b567f821e89d56e3845040ad61f501379e3262f9ba067778102d8ec0 |
|
MD5 | dbe418100ef9d50482da35c8bebd8ca9 |
|
BLAKE2b-256 | 546b7d1d4b094711b014c21f059f06ec2f953a061e215b68f566d21369e0620e |