Flow
sklearn.preprocessing._data.Normalizer

sklearn.preprocessing._data.Normalizer

Visibility: public Uploaded 18-05-2020 by Marc Zöller sklearn==0.22.1 numpy>=1.6.1 scipy>=0.9 0 runs
0 likes downloaded by 0 people 0 issues 0 downvotes , 0 total downloads
  • openml-python python scikit-learn sklearn sklearn_0.22.1
Issue #Downvotes for this reason By


Loading wiki
Help us complete this description Edit
Normalize samples individually to unit norm. Each sample (i.e. each row of the data matrix) with at least one non zero component is rescaled independently of other samples so that its norm (l1 or l2) equals one. This transformer is able to work both with dense numpy arrays and scipy.sparse matrix (use CSR format if you want to avoid the burden of a copy / conversion). Scaling inputs to unit norms is a common operation for text classification or clustering for instance. For instance the dot product of two l2-normalized TF-IDF vectors is the cosine similarity of the vectors and is the base similarity metric for the Vector Space Model commonly used by the Information Retrieval community.

Parameters

0
Runs

List all runs
Parameter:
Rendering chart
Rendering table