BernoulliNB.fromMap constructor

BernoulliNB.fromMap(
  1. Map<String, dynamic> params
)

Implementation

factory BernoulliNB.fromMap(Map<String, dynamic> params) {
  return BernoulliNB(
      List<double>.from(params["class_log_prior_"]),
      List<List<dynamic>>.from(params["neg_prob_"]),
      List<List<dynamic>>.from(params["delta_probs_"]),
      List<int>.from(params["classes_"]));
}