All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.alink.params.statistics.HasRoundMode Maven / Gradle / Ivy

package com.alibaba.alink.params.statistics;

import org.apache.flink.ml.api.misc.param.ParamInfo;
import org.apache.flink.ml.api.misc.param.ParamInfoFactory;
import org.apache.flink.ml.api.misc.param.WithParams;

import com.alibaba.alink.operator.batch.feature.QuantileDiscretizerTrainBatchOp;

/**
 * round mode.
 */
public interface HasRoundMode extends WithParams {
    ParamInfo ROUND_MODE = ParamInfoFactory.createParamInfo("roundMode", String.class)
        .setDescription("when q is the group size, k is the k-th group, total is the sample size, " +
            "then the index of k-th q-quantile is (1.0 / q) * (total - 1) * k. " +
            "if convert index from double to long, it use round mode." +
            "
    " + "
  • round: [index]
  • " + "
  • ceil: ⌈index⌉
  • " + "
  • floor: ⌊index⌋
  • " + "
" + "

") .setHasDefaultValue(QuantileDiscretizerTrainBatchOp.RoundModeEnum.ROUND.toString()) .build(); default String getRoundMode() { return get(ROUND_MODE); } default T setRoundMode(String value) { return set(ROUND_MODE, value); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy