OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
ColumnSelectionTransformer.py
Go to the documentation of this file.
1 from ._CustomTransformer import _CustomTransformer
2 
3 
5  ''' Reduce columns to specified selections (feature selection) '''
6  def __init__(self, columns, *args, **kwargs): self._c = columns
7  def _transform(self, X, *args, **kwargs): return X[:, self._c]