thaihungle / UW-DNC

Uniform Writing & Cached Uniform Writing
MIT License
16 stars 3 forks source link

How can I apply this model to "document classification" or "image recognition task from MNIST" problem? #1

Closed jx-zhong-for-academic-purpose closed 5 years ago

jx-zhong-for-academic-purpose commented 5 years ago

Your marvellous work greatly inspires me, and I would like to establish a similar model for "document classification" or "image recognition task from MNIST" problem as your paper mentions. For this purpose, how should I modify the source codes?

thaihungle commented 5 years ago

Thank you for your interest in my work. You can find an example of running synthetic tasks in synthetic_task.py and running the nlp tasks is similar. You should prepare the nlp data input in the same format as in the synthetic tasks (i.e, tensor of shape [batch_size, sequence_length, input_dimension]). You can find the loss function and output for the nlp tasks in uw_dnc.py: build_loss_function_multi_label. Other details are mentioned in the paper.

jx-zhong-for-academic-purpose commented 5 years ago

OK. Thanks.