@@ -140,11 +140,11 @@ or ``chi2`` feature selectors that expect non-negative inputs.
140
140
depending on the constructor parameter ``input_type ``.
141
141
Mapping are treated as lists of ``(feature, value) `` pairs,
142
142
while single strings have an implicit value of 1,
143
- so ``[feat1, feat2, feat3] `` is interpreted as
144
- ``[(feat1, 1), (feat2, 1), (feat3, 1)] ``.
143
+ so ``[' feat1', ' feat2', ' feat3' ] `` is interpreted as
144
+ ``[(' feat1' , 1), (' feat2' , 1), (' feat3' , 1)] ``.
145
145
If a single feature occurs multiple times in a sample,
146
146
the associated values will be summed
147
- (so ``(feat, 2) `` and ``(feat, 3.5) `` become ``(feat, 5.5) ``).
147
+ (so ``(' feat' , 2) `` and ``(' feat' , 3.5) `` become ``(' feat' , 5.5) ``).
148
148
The output from :class: `FeatureHasher ` is always a ``scipy.sparse `` matrix
149
149
in the CSR format.
150
150
@@ -200,8 +200,8 @@ The present implementation works under the assumption
200
200
that the sign bit of MurmurHash3 is independent of its other bits.
201
201
202
202
Since a simple modulo is used to transform the hash function to a column index,
203
- it is advisable to use a power of two as the ``n_features `` parameter,
204
- since otherwise the features will not be mapped evenly to the columns.
203
+ it is advisable to use a power of two as the ``n_features `` parameter;
204
+ otherwise the features will not be mapped evenly to the columns.
205
205
206
206
207
207
.. topic :: References:
0 commit comments