top n values of a tensor to 1 others to 0

后端 未结 0 1226
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 15:10

I am trying to write a custom metric to a keras model for a recommendation model. I need to find a way to convert predictions vector to a vector which top 2 element in the p

相关标签:
回答
  • 消灭零回复
提交回复
热议问题