Local Standard Scaler
Introduction
Local standard scaler is a module that standardize each column of features by subtracting the mean then and then scaling to unit variance.
Parameter List
identity: str The role of each participant in federated learning, should be label_trainer or trainer.
- model_info:
name:
strModel name, should be local_standard_scaler.
- input:
- trainset:
type:
strTrain dataset type, currently supported is csv.path:
strThe folder path of train dataset.name:
strThe file name of train dataset.has_id:
boolWhether the dataset has id column.has_label:
boolWhether the dataset has label column.
- valset:
type:
strValidation dataset type, currently supported is csv.path:
strThe folder path of validation dataset.name:
strThe file name of validation dataset.has_id:
boolWhether the dataset has id column.has_label:
boolWhether the dataset has label column.
- output:
path:
strOutput folder path.- model:
name:
strFile name of output model.
- trainset:
name:
strFile name of output train dataset.
- valset:
name:
strFile name of output validation dataset.
- train_info:
- train_params:
with_mean:
boolIf True, center the data before scaling.with_std:
boolIf True, scale the data to unit standard deviation.feature_standard:
mapFine-grained configuration for standardization. The format is defined as:{column_1: {"with_mean": True/False, "with_std": True/False}, ..., column_N: {"with_mean": True/False, "with_std": True/False}}.