Search code examples
pythontensorflowpytorchhierarchicalsoftmax

Tensorflow: Hierarchical Softmax Implementation


I'm currently having text inputs represented by vector, and I want to classify their categories. Because they are multi-level categories, I meant to use Hierarchical Softmax.

Example:

 - Computer Science
     - Machine Learning
     - NLP
 - Economics
 - Maths
     - Algebra
     - Geometry

I don't know how to implement it in Tensorflow. All examples I've met is using other frameworks.

Thanks


Solution

  • Finally, I have changed to use Pytorch. It's easier and more straight-forward than Tensorflow.