Class KMeansParams
java.lang.Object
org.opensearch.ml.common.input.parameter.clustering.KMeansParams
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.NamedWriteable,org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject,MLAlgoParams
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.opensearch.core.xcontent.NamedXContentRegistry.EntryFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionKMeansParams(Integer centroids, Integer iterations, KMeansParams.DistanceType distanceType) KMeansParams(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanintinthashCode()static MLAlgoParamsparse(org.opensearch.core.xcontent.XContentParser parser) voidsetCentroids(Integer centroids) voidsetDistanceType(KMeansParams.DistanceType distanceType) voidsetIterations(Integer iterations) toString()org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSE_FIELD_NAME
-
XCONTENT_REGISTRY
public static final org.opensearch.core.xcontent.NamedXContentRegistry.Entry XCONTENT_REGISTRY -
CENTROIDS_FIELD
- See Also:
-
ITERATIONS_FIELD
- See Also:
-
DISTANCE_TYPE_FIELD
- See Also:
-
-
Constructor Details
-
KMeansParams
-
KMeansParams
- Throws:
IOException
-
-
Method Details
-
parse
public static MLAlgoParams parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceorg.opensearch.core.common.io.stream.NamedWriteable
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Throws:
IOException
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceMLAlgoParams
-
builder
-
toBuilder
-
getCentroids
-
getIterations
-
getDistanceType
-
setCentroids
-
setIterations
-
setDistanceType
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-