Skater icon indicating copy to clipboard operation
Skater copied to clipboard

Add partial dependency subclass for text

Open aikramer2 opened this issue 7 years ago • 1 comments

aikramer2 avatar Mar 20 '17 21:03 aikramer2

we should enable this pattern:

docs = ['this is a sentence','so is this']
processor = FunctionTransformer(func = func)
pipeline = make_pipeline(processor, model)
i = TextInterpretation()
i.load_data(docs, type = 'text', bag_of_words = True, tokenizer = None)
[generate count vectorizer]
i.partial_dependence(word, pipeline.predict_proba)

aikramer2 avatar Mar 20 '17 21:03 aikramer2