我创建了fromData并添加了变量“act”。
我如何提醒“行为”价值?
C
在上面的示例中,它应提醒“编辑”
答案 0 :(得分:1)
import tensorflow as tf
def logit(x):
""" Computes the logit function, i.e. the logistic sigmoid inverse. """
return - tf.log(1. / x - 1.)
x = tf.constant([-1000, -100, -10, -1, 0, 1, 10, 100, 1000], dtype=tf.float64)
# sigmoid(x):
x_sig = tf.sigmoid(x)
# logit(sigmoid(x)) = x:
x_id = logit(x_sig)
with tf.Session() as sess:
a, a_id = sess.run([x, x_id])
print(a)
# [-1000. -100. -10. -1. 0. 1. 10. 100. 1000.]
print(a_id)
# [ -inf -100. -10. -1. 0. 1. 10. inf inf ]
提取值。所以:
form_data.get('fielDname')
Cautoion: alert(form_data.get('act'))
无法在IE,Safari和Android webView上运行