I need to T-Test to check whether the Sentiment feature has a significant role in identifying gender from text. I have computed the TF-IDF feature and got author_post_new
. I have applied the Sentiment feature on the dataset and got X_pac
from the dataset. Now I want to determine whether the Sentiment feature has a significant role in identifying gender.
X_pac = feature_computed_on_sentiment_feature
author_post_new = feature_computed_on_TF_IDF
I need to perform T-test for the SVM model on these two features. How can I do that in Python?