public final class KMC2ChainInitialization extends PrimitiveOp implements Operand<Long>
Entries in distances are assumed to be squared distances of candidate points to the already sampled centers in the seed set. The op constructs one Markov chain of the k-MC^2 algorithm and returns the index of one candidate point to be added as an additional cluster center.
operation
Modifier and Type | Method and Description |
---|---|
Output<Long> |
asOutput()
Returns the symbolic handle of a tensor.
|
static KMC2ChainInitialization |
create(Scope scope,
Operand<Float> distances,
Operand<Long> seed)
Factory method to create a class wrapping a new KMC2ChainInitialization operation.
|
Output<Long> |
index()
Scalar with the index of the sampled point.
|
equals, hashCode, op, toString
public static KMC2ChainInitialization create(Scope scope, Operand<Float> distances, Operand<Long> seed)
scope
- current scopedistances
- Vector with squared distances to the closest previously sampled cluster center
for each candidate point.seed
- Scalar. Seed for initializing the random number generator.public Output<Long> asOutput()
Operand
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput
in interface Operand<Long>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.