Spec-Zone.ru › TensorFlow

tf.raw_ops.KMC2ChainInitialization

Returns the index of a data point that should be added to the seed set.

View aliases

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.raw_ops.KMC2ChainInitialization

tf.raw_ops.KMC2ChainInitialization(
    distances, seed, name=None
)

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.

Args
distances A Tensor of type float32. Vector with squared distances to the closest previously sampled cluster center for each candidate point.
seed A Tensor of type int64. Scalar. Seed for initializing the random number generator.
name A name for the operation (optional).
Returns
A Tensor of type int64.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/raw_ops/KMC2ChainInitialization

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API