Skater
Skater copied to clipboard
Add partial dependency subclass for text
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)