GaussianNB.fromMap constructor

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

Implementation

factory GaussianNB.fromMap(Map<String, dynamic> params) {
  return GaussianNB(
      List<double>.from(params['class_prior_']),
      List<List<dynamic>>.from(params['sigma_']),
      List<List<dynamic>>.from(params['theta_']),
      List<int>.from(params["classes_"]));
}