CountVectorizerModel.SetBinary(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the binary toggle to control the output vector values. If True, all nonzero counts (after minTF filter applied) are set to 1. This is useful for discrete probabilistic models that model binary events rather than integer counts. Default: false
public Microsoft.Spark.ML.Feature.CountVectorizerModel SetBinary (bool value);
member this.SetBinary : bool -> Microsoft.Spark.ML.Feature.CountVectorizerModel
Public Function SetBinary (value As Boolean) As CountVectorizerModel
Parameters
- value
- Boolean
Turn the binary toggle on or off
Returns
CountVectorizerModel with the new binary toggle value set
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for