Skip to content

Commit f21f64a

Browse files
committed
DOC: document attributes fitted by DictVectorizer.
1 parent 9cf9e9f commit f21f64a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sklearn/feature_extraction/dict_vectorizer.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ class DictVectorizer(BaseEstimator, TransformerMixin):
5050
Whether transform should produce scipy.sparse matrices.
5151
True by default.
5252
53+
Attributes
54+
----------
55+
`feature_names_` : list
56+
A list of length n_features containing the feature names (e.g., "f=ham"
57+
and "f=spam").
58+
59+
`vocabulary_` : dict
60+
A dictionary mapping feature names to feature indices.
61+
5362
Examples
5463
--------
5564
>>> from sklearn.feature_extraction import DictVectorizer

0 commit comments

Comments
 (0)