Ejemplo n.º 1
0
 public NaiveBayesClassifier(List <Tuple <double[], double> > data, BayesKernel kernel)
 {
     this.data   = data;
     this.kernel = kernel;
 }
Ejemplo n.º 2
0
        //private Dictionary<double, double> probability =
        //    new Dictionary<double,double>();
        //    // P(male), P(female)
        //private Dictionary<double, Dictionary<double, double>> conditionalProbability =
        //    new Dictionary<double,Dictionary<double,double>>();
        //    // P(height|male), P(weight|male)

        public NaiveBayesClassifier(List <Tuple <double[], double> > data)
        {
            this.data = data;
            kernel    = new LinearBayesKernel(data);
        }