Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

年龄值和对应的概率值相乘再求和是什么意思 #25

Open
wangce888 opened this issue Sep 3, 2018 · 1 comment
Open

年龄值和对应的概率值相乘再求和是什么意思 #25

wangce888 opened this issue Sep 3, 2018 · 1 comment

Comments

@wangce888
Copy link

年龄值和对应的概率值相乘再求和是什么意思
age_ = tf.cast(tf.constant([i for i in range(0, 101)]), tf.float32)
age = tf.reduce_sum(tf.multiply(tf.nn.softmax(age_logits), age_), axis=1)
为什么不能用argmax求最大可能性的年龄

@BoyuanJiang
Copy link
Owner

因为当时参考了一篇论文,它把对年龄的分类通过这种方式转换成了一个回归的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants