类 RobustScaler
- java.lang.Object
-
- org.apache.flink.ml.feature.robustscaler.RobustScaler
-
- 所有已实现的接口:
Serializable,org.apache.flink.ml.api.Estimator<RobustScaler,RobustScalerModel>,org.apache.flink.ml.api.Stage<RobustScaler>,org.apache.flink.ml.common.param.HasInputCol<RobustScaler>,org.apache.flink.ml.common.param.HasOutputCol<RobustScaler>,org.apache.flink.ml.common.param.HasRelativeError<RobustScaler>,RobustScalerModelParams<RobustScaler>,RobustScalerParams<RobustScaler>,org.apache.flink.ml.param.WithParams<RobustScaler>
public class RobustScaler extends Object implements org.apache.flink.ml.api.Estimator<RobustScaler,RobustScalerModel>, RobustScalerParams<RobustScaler>
An Estimator which scales features using statistics that are robust to outliers.This Scaler removes the median and scales the data according to the quantile range (defaults to IQR: Interquartile Range). The IQR is the range between the 1st quartile (25th quantile) and the 3rd quartile (75th quantile) but can be configured.
Centering and scaling happen independently on each feature by computing the relevant statistics on the samples in the training set. Median and quantile range are then stored to be used on later data using the transform method.
Standardization of a dataset is a common requirement for many machine learning estimators. Typically this is done by removing the mean and scaling to unit variance. However, outliers can often influence the sample mean / variance in a negative way. In such cases, the median and the interquartile range often give better results.
Note that NaN values are ignored in the computation of medians and ranges.
- 另请参阅:
- 序列化表格
-
-
字段概要
-
从接口继承的字段 org.apache.flink.ml.feature.robustscaler.RobustScalerModelParams
WITH_CENTERING, WITH_SCALING
-
从接口继承的字段 org.apache.flink.ml.feature.robustscaler.RobustScalerParams
LOWER, UPPER
-
-
构造器概要
构造器 构造器 说明 RobustScaler()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 RobustScalerModelfit(org.apache.flink.table.api.Table... inputs)Map<org.apache.flink.ml.param.Param<?>,Object>getParamMap()static RobustScalerload(org.apache.flink.table.api.bridge.java.StreamTableEnvironment tEnv, String path)voidsave(String path)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.apache.flink.ml.feature.robustscaler.RobustScalerModelParams
getWithCentering, getWithScaling, setWithCentering, setWithScaling
-
从接口继承的方法 org.apache.flink.ml.feature.robustscaler.RobustScalerParams
getLower, getUpper, setLower, setUpper
-
-
-
-
方法详细资料
-
fit
public RobustScalerModel fit(org.apache.flink.table.api.Table... inputs)
- 指定者:
fit在接口中org.apache.flink.ml.api.Estimator<RobustScaler,RobustScalerModel>
-
save
public void save(String path) throws IOException
- 指定者:
save在接口中org.apache.flink.ml.api.Stage<RobustScaler>- 抛出:
IOException
-
load
public static RobustScaler load(org.apache.flink.table.api.bridge.java.StreamTableEnvironment tEnv, String path) throws IOException
- 抛出:
IOException
-
getParamMap
public Map<org.apache.flink.ml.param.Param<?>,Object> getParamMap()
- 指定者:
getParamMap在接口中org.apache.flink.ml.param.WithParams<RobustScaler>
-
-