OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
Inheritance diagram for BaggingColumnTransformer:
[legend]
Collaboration diagram for BaggingColumnTransformer:
[legend]

Public Member Functions

def __init__ (self, n_bands, *args, n_extra=0, percent=0.75, seed=None, **kwargs)
 
- Public Member Functions inherited from _CustomTransformer
def fit (self, X, *args, **kwargs)
 
def transform (self, X, *args, **kwargs)
 
def inverse_transform (self, X, *args, **kwargs)
 
def fit_transform (self, X, *args, **kwargs)
 

Public Attributes

 n_bands
 
 n_extra
 
 percent
 
 random
 
 cols
 

Additional Inherited Members

- Static Public Member Functions inherited from _CustomTransformer
def config_info (*args, **kwargs)
 

Detailed Description

Randomly select a percentage of columns to drop, always keeping the
band features (first n_bands columns). Optionally, the last n_extra 
columns will also be always kept as additional features.


Definition at line 6 of file BaggingColumnTransformer.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  n_bands,
args,
  n_extra = 0,
  percent = 0.75,
  seed = None,
**  kwargs 
)

Definition at line 13 of file BaggingColumnTransformer.py.

Member Data Documentation

◆ cols

cols

Definition at line 26 of file BaggingColumnTransformer.py.

◆ n_bands

n_bands

Definition at line 14 of file BaggingColumnTransformer.py.

◆ n_extra

n_extra

Definition at line 15 of file BaggingColumnTransformer.py.

◆ percent

percent

Definition at line 16 of file BaggingColumnTransformer.py.

◆ random

random

Definition at line 17 of file BaggingColumnTransformer.py.


The documentation for this class was generated from the following file: