# Multi-Task Learning to perform two separate classifaction tasks on the same training data

**URL:** <https://discuss.huggingface.co/t/multi-task-learning-to-perform-two-separate-classifaction-tasks-on-the-same-training-data/6039>\
**Category:** Beginners\
**Created:** [May 6, 2021, 8:36pm UTC](https://discuss.huggingface.co/t/multi-task-learning-to-perform-two-separate-classifaction-tasks-on-the-same-training-data/6039 "2021-05-06T20:36:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gianluca](https://avatars.discourse-cdn.com/v4/letter/g/82dd89/32.png) [@Gianluca](https://discuss.huggingface.co/u/Gianluca)\
**Post date:** [May 6, 2021, 8:36pm UTC](https://discuss.huggingface.co/t/multi-task-learning-to-perform-two-separate-classifaction-tasks-on-the-same-training-data/6039/1 "2021-05-06T20:36:10Z")

</div>

I am looking to train a model that is capable of performing text classification for two different types of classes for the same training data.

I.e. my training data has two labels ‘Class1’ and ‘Class2’. I would like a model that is able to optimize error classification on both simultaneously.

Any leads as to how this can be done?
