2
$\begingroup$

I'm building a Sentiment Prediction model for Tweets that runs on Text, Numerical and Categorical data. I have already two classifiers, one text and one non-text (for numerical and categorical). Now the problem is when I want to combine both classifiers into one. Since my training features aren't the same for both classifiers (Raw tweets for the Text Classifier, and other data like number of followers, presence of hashtag, presence of tags etc for the other classifier).

Basically was wondering if there would be any function in Scikit Learn that would allow to make it work?

$\endgroup$
2
  • 1
    $\begingroup$ What is the range of your predicted variable? Is it continuous or ordinal? $\endgroup$ Apr 6, 2017 at 21:50
  • $\begingroup$ Are you considering using keras? $\endgroup$ Jun 4, 2022 at 0:17

1 Answer 1

0
$\begingroup$

Instead of combining different classifiers trained on disjoint subsets of features you could use vowpal wabbit which supports numerical, categorical and text features (via hashing trick).

If I understand correctly, training on disjoint subsets of features means you couldn’t capture some interactions, which might be important.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.