eli5 scikit-learn This function creates a randomly chosen machine learning pipeline using CountVectorizer for text vectorization and LogisticRegression or DecisionTreeClassifier as the classifier. Then, it uses the show_weights function from the eli5 library to generate a feature importances table and formats it as an HTML table. Machine learning 2024-12-16 12:16:48 30 views
eli5 matplotlib This function uses the eli5 library and matplotlib library to visualize the feature importance of a decision tree. It first fits the model using scikit-learn's DecisionTreeClassifier, then creates a visualization of feature importance using eli5's show_weights function, and finally displays this visualization using matplotlib. Function 2024-11-30 16:24:45 3 views