Skip to main content

Preprocessing

分类名称说明
BinningKBinsDiscretizer特征分箱:等频、等宽、Kmeans
ScalingMaxAbsScaler特征缩放:绝对值最大为1
MinMaxScaler特征缩放:数值范围 [-1, 1]
StandardScaler特征缩放:均值为0、方差为1
RobustScaler特征缩放:数值范围 [Q2, Q3](分位数)
Normalizer样本缩放:范数等于1
EncodingLabelBinarizer标签编码:one-hot
LabelEncoder标签编码:序数
MultiLabelBinarizer标签编码:multi-hot
OneHotEncoder特征编码:one-hot
OrdinalEncoder特征编码:序数
TargetEncoder特征编码:基于targets
TransformationQuantileTransformer特征变换:均匀分布、高斯分布
SplineTransformer特征变换:基于B-spline
ImputationSimpleImputer缺失值填充:平均数、中位数、众数、常数

如果是通过docker方式部署:先执行 docker exec -it primihub-node0 bash 进入到 primihub-node0 容器中:再执行CLI命令启动。

横向联邦

KBinsDiscretizer

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_kbinsdiscretizer.json"

MaxAbsScaler

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_maxabsscaler.json"

MinMaxScaler

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_minmaxscaler.json"

StandardScaler

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_standardscaler.json"

RobustScaler

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_robustscaler.json"

LabelBinarizer

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_labelbinarizer.json"

LabelEncoder

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_labelencoder.json"

MultiLabelBinarizer

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_multilabelbinarizer.json"

OneHotEncoder

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_onehotencoder.json"

OrdinalEncoder

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_ordinalencoder.json"

TargetEncoder

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_targetencoder.json"

QuantileTransformer

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_quantiletransformer.json"

SplineTransformer

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_splinetransformer.json"

SimpleImputer

  • 数字型数据

    ./primihub-cli --task_config_file="example/FL/preprocessing/hfl_simpleimputer_numeric.json"
  • 字符型数据

    ./primihub-cli --task_config_file="example/FL/preprocessing/hfl_simpleimputer_string.json"

Pipeline Demo

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_pipeline.json"

transform

./primihub-cli --task_config_file="example/FL/preprocessing/hfl_transform.json"

纵向联邦

Normalizer

./primihub-cli --task_config_file="example/FL/preprocessing/vfl_normalizer.json"

Pipeline Demo

./primihub-cli --task_config_file="example/FL/preprocessing/vfl_pipeline.json"

transform

./primihub-cli --task_config_file="example/FL/preprocessing/vfl_transform.json"

Was this page helpful?

Happy React is loading...