Package org.neo4j.gds.similarity.knn
Record Class KnnParameters
java.lang.Object
java.lang.Record
org.neo4j.gds.similarity.knn.KnnParameters
public record KnnParameters(org.neo4j.gds.core.concurrency.Concurrency concurrency, int maxIterations, double similarityCutoff, K kHolder, double perturbationRate, int randomJoins, int minBatchSize, KnnSampler.SamplerType samplerType, Optional<Long> randomSeed, List<KnnNodePropertySpec> nodePropertySpecs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionKnnParameters(org.neo4j.gds.core.concurrency.Concurrency concurrency, int maxIterations, double similarityCutoff, K kHolder, double perturbationRate, int randomJoins, int minBatchSize, KnnSampler.SamplerType samplerType, Optional<Long> randomSeed, List<KnnNodePropertySpec> nodePropertySpecs) Creates an instance of aKnnParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.neo4j.gds.core.concurrency.ConcurrencyReturns the value of theconcurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kHolder()Returns the value of thekHolderrecord component.intReturns the value of themaxIterationsrecord component.intReturns the value of theminBatchSizerecord component.Returns the value of thenodePropertySpecsrecord component.doubleReturns the value of theperturbationRaterecord component.intReturns the value of therandomJoinsrecord component.Returns the value of therandomSeedrecord component.Returns the value of thesamplerTyperecord component.doubleReturns the value of thesimilarityCutoffrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KnnParameters
public KnnParameters(org.neo4j.gds.core.concurrency.Concurrency concurrency, int maxIterations, double similarityCutoff, K kHolder, double perturbationRate, int randomJoins, int minBatchSize, KnnSampler.SamplerType samplerType, Optional<Long> randomSeed, List<KnnNodePropertySpec> nodePropertySpecs) Creates an instance of aKnnParametersrecord class.- Parameters:
concurrency- the value for theconcurrencyrecord componentmaxIterations- the value for themaxIterationsrecord componentsimilarityCutoff- the value for thesimilarityCutoffrecord componentkHolder- the value for thekHolderrecord componentperturbationRate- the value for theperturbationRaterecord componentrandomJoins- the value for therandomJoinsrecord componentminBatchSize- the value for theminBatchSizerecord componentsamplerType- the value for thesamplerTyperecord componentrandomSeed- the value for therandomSeedrecord componentnodePropertySpecs- the value for thenodePropertySpecsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
concurrency
public org.neo4j.gds.core.concurrency.Concurrency concurrency()Returns the value of theconcurrencyrecord component.- Returns:
- the value of the
concurrencyrecord component
-
maxIterations
public int maxIterations()Returns the value of themaxIterationsrecord component.- Returns:
- the value of the
maxIterationsrecord component
-
similarityCutoff
public double similarityCutoff()Returns the value of thesimilarityCutoffrecord component.- Returns:
- the value of the
similarityCutoffrecord component
-
kHolder
Returns the value of thekHolderrecord component.- Returns:
- the value of the
kHolderrecord component
-
perturbationRate
public double perturbationRate()Returns the value of theperturbationRaterecord component.- Returns:
- the value of the
perturbationRaterecord component
-
randomJoins
public int randomJoins()Returns the value of therandomJoinsrecord component.- Returns:
- the value of the
randomJoinsrecord component
-
minBatchSize
public int minBatchSize()Returns the value of theminBatchSizerecord component.- Returns:
- the value of the
minBatchSizerecord component
-
samplerType
Returns the value of thesamplerTyperecord component.- Returns:
- the value of the
samplerTyperecord component
-
randomSeed
Returns the value of therandomSeedrecord component.- Returns:
- the value of the
randomSeedrecord component
-
nodePropertySpecs
Returns the value of thenodePropertySpecsrecord component.- Returns:
- the value of the
nodePropertySpecsrecord component
-