Skip to content

Commit

Permalink
Fix code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
mloning committed Aug 14, 2021
1 parent 5e08d50 commit 53a3022
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions sktime/transformations/series/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Meta-transformers for building composite transformers."""

"""Series-to-Series Transformers: OptionalPassthrough and Columnwisetransformer."""

__author__ = ["Martin Walter", "Svea Meyer"]
__all__ = ["OptionalPassthrough", "ColumnwiseTransformer"]

import pandas as pd
from sktime.transformations.base import _SeriesToSeriesTransformer
from sktime.utils.validation.series import check_series

from sklearn.base import clone
from sklearn.utils.metaestimators import if_delegate_has_method

__author__ = ["Martin Walter", "Svea Meyer"]
__all__ = ["OptionalPassthrough", "ColumnwiseTransformer"]


class OptionalPassthrough(_SeriesToSeriesTransformer):
"""Wrap an existing transformer to tune whether to include it in a pipeline.
Expand All @@ -32,7 +30,6 @@ class OptionalPassthrough(_SeriesToSeriesTransformer):
This arg decides whether to apply the given transformer or to just
passthrough the data (identity transformation)
Examples
--------
>>> from sktime.datasets import load_airline
Expand Down Expand Up @@ -83,7 +80,7 @@ def __init__(self, transformer, passthrough=False):
super(OptionalPassthrough, self).__init__()

def fit(self, Z, X=None):
"""Fit the model."""
"""Fit the model.
Parameters
----------
Expand All @@ -103,7 +100,7 @@ def fit(self, Z, X=None):
return self

def transform(self, Z, X=None):
"""Apply transformation."""
"""Apply transformation.
Parameters
----------
Expand Down

0 comments on commit 53a3022

Please sign in to comment.