When I use the eli5 show prediction function I only see the feature weights and not the color highlighted example.
I have the following sklearn pipeline
pipeline = Pipeline([
('tfidf', TfidfVectorizer(analyzer='word', use_idf=True, ngram_range=(1,3), sublinear_tf=True)),
('clf', LogisticRegression())
])
pipeline.fit(X_train, y_train)
predicted = pipeline.predict(X_test)
And I'm using eli5 as follows
eli5.show_prediction(pipeline[1], X[0], vec=pipeline[0])
But I only see the feature weights like this:
What I would like to see is the highlighted text like this:
How can I achieve this?