tf.math.sigmoid
| Просмотреть исходный код на GitHub |
Вычисляет сигмоиду x поэлементно.
tf.math.sigmoid(
x, name=None
)
В частности, y = 1 / (1 + exp(-x)).
| Аргументы | |
|---|---|
x | Tensor с типом float16, float32, float64, complex64, или complex128. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
Tensor с тем же типом, что и x. |
Совместимость с Scipy
Эквивалентно scipy.special.expit
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/math/sigmoid