ocssw
V2022
|
__init__.py
Go to the documentation of this file.
36 # We only want bagging to be applied to the columns if there are a large number of extra features (e.g. ancillary features included)
37 many_features = column_bagging and any(x is not None and (x.shape[1]-len(wavelengths)) > 15 for x in [x_train, x_test])
39 # Add bagging to the columns (use a random subset of columns, excluding the first <n_wavelengths> columns from the process)
40 if column_bagging and using_feature(args, 'bagging') and (using_feature(args, 'ratio') or many_features):
41 n_extra = 0 if not using_feature(args, 'ratio') else RatioTransformer(wavelengths, args.sensor).get_n_features() # Number of ratio features added
59 serialize(decomposition.TruncatedSVD, [], {'n_components' : 15}),#0.999, 'whiten': False}),#, 'svd_solver': 'randomized'}),
list(APPEND LIBS ${PGSTK_LIBRARIES}) add_executable(atteph_info_modis atteph_info_modis.c) target_link_libraries(atteph_info_modis $
Definition: CMakeLists.txt:7
def fit_transform(self, X, *args, **kwargs)
Definition: __init__.py:93
def __init__(self, scalers=[])
Definition: __init__.py:75
def generate_scalers(args, x_train=None, x_test=None, column_bagging=False)
Definition: __init__.py:20