NaiveBayesTextClassifier#computeOdds

Parsed documentation:
View on GitHub
/**
* Computes the log base-2 of odds of every label for the input; and returns
* the array of `[ label, odds ]` in descending order of odds.
*
* @method NaiveBayesTextClassifier#computeOdds
* @param {String|String[]} input is either text or tokens determined by the
* choice of [`preparatory tasks`](#definePrepTasks).
* @return {array[]} Array of `[ label, odds ]` in descending order of odds.
* @example
* myClassifier.computeOdds( 'I want to pay my car loan early' );
* // -> [
*         [ 'prepay', 6.169686751688911 ],
*         [ 'autoloan', -6.169686751688911 ]
*       ]
*/
No suggestions.
Please help! Open an issue on GitHub if this assessment is incorrect.