sklearn.feature_extraction#
Feature extraction from raw data.
User guide. See the Feature extraction section for further details.
Transforms lists of feature-value mappings to vectors. |
|
Implements feature hashing, aka the hashing trick. |
From images#
Utilities to extract features from images.
Extracts patches from a collection of images. |
|
Reshape a 2D image into a collection of patches. |
|
Graph of the pixel-to-pixel connections. |
|
Graph of the pixel-to-pixel gradient connections. |
|
Reconstruct the image from all of its patches. |
From text#
Utilities to build feature vectors from text documents.
Convert a collection of text documents to a matrix of token counts. |
|
Convert a collection of text documents to a matrix of token occurrences. |
|
Transform a count matrix to a normalized tf or tf-idf representation. |
|
Convert a collection of raw documents to a matrix of TF-IDF features. |