Module org.elasticsearch.xcore
Class BoostedTreeParams
java.lang.Object
org.elasticsearch.xpack.core.ml.dataframe.analyses.BoostedTreeParams
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
public class BoostedTreeParams
extends Object
implements org.elasticsearch.xcontent.ToXContentFragment, Writeable
Parameters used by both
Classification and Regression analyses.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionBoostedTreeParams(Double lambda, Double gamma, Double eta, Integer maxTrees, Double featureBagFraction, Integer numTopFeatureImportanceValues, Double alpha, Double etaGrowthRatePerTree, Double softTreeDepthLimit, Double softTreeDepthTolerance, Double downsampleFactor, Integer maxOptimizationRoundsPerHyperparameter) -
Method Summary
Modifier and TypeMethodDescriptionstatic BoostedTreeParams.Builderbuilder()booleangetAlpha()getEta()getGamma()inthashCode()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
LAMBDA
public static final org.elasticsearch.xcontent.ParseField LAMBDA -
GAMMA
public static final org.elasticsearch.xcontent.ParseField GAMMA -
ETA
public static final org.elasticsearch.xcontent.ParseField ETA -
MAX_TREES
public static final org.elasticsearch.xcontent.ParseField MAX_TREES -
FEATURE_BAG_FRACTION
public static final org.elasticsearch.xcontent.ParseField FEATURE_BAG_FRACTION -
NUM_TOP_FEATURE_IMPORTANCE_VALUES
public static final org.elasticsearch.xcontent.ParseField NUM_TOP_FEATURE_IMPORTANCE_VALUES -
ALPHA
public static final org.elasticsearch.xcontent.ParseField ALPHA -
ETA_GROWTH_RATE_PER_TREE
public static final org.elasticsearch.xcontent.ParseField ETA_GROWTH_RATE_PER_TREE -
SOFT_TREE_DEPTH_LIMIT
public static final org.elasticsearch.xcontent.ParseField SOFT_TREE_DEPTH_LIMIT -
SOFT_TREE_DEPTH_TOLERANCE
public static final org.elasticsearch.xcontent.ParseField SOFT_TREE_DEPTH_TOLERANCE -
DOWNSAMPLE_FACTOR
public static final org.elasticsearch.xcontent.ParseField DOWNSAMPLE_FACTOR -
MAX_OPTIMIZATION_ROUNDS_PER_HYPERPARAMETER
public static final org.elasticsearch.xcontent.ParseField MAX_OPTIMIZATION_ROUNDS_PER_HYPERPARAMETER
-
-
Constructor Details
-
BoostedTreeParams
public BoostedTreeParams(@Nullable Double lambda, @Nullable Double gamma, @Nullable Double eta, @Nullable Integer maxTrees, @Nullable Double featureBagFraction, @Nullable Integer numTopFeatureImportanceValues, @Nullable Double alpha, @Nullable Double etaGrowthRatePerTree, @Nullable Double softTreeDepthLimit, @Nullable Double softTreeDepthTolerance, @Nullable Double downsampleFactor, @Nullable Integer maxOptimizationRoundsPerHyperparameter)
-
-
Method Details
-
getLambda
-
getGamma
-
getEta
-
getMaxTrees
-
getFeatureBagFraction
-
getNumTopFeatureImportanceValues
-
getAlpha
-
getEtaGrowthRatePerTree
-
getSoftTreeDepthLimit
-
getSoftTreeDepthTolerance
-
getDownsampleFactor
-
getMaxOptimizationRoundsPerHyperparameter
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
builder
-