You have find out the reason.
Do you do your home work regularly?
You always behave well in class?
Whenever teacher asks any question you reply correctly?
If none of the above reason is there, then you pray 5 times & read Quran daily with translation and pray for her. Inshallah she will be kind to you very soon.