Exemple #1
0
        public override Dictionary <string, double> PredictProbability(Instance.Instance instance)
        {
            var distribution = new DiscreteDistribution();

            foreach (var tree in _forest)
            {
                distribution.AddItem(tree.Predict(instance));
            }
            return(distribution.GetProbabilityDistribution());
        }
 public override Dictionary <string, double> PredictProbability(Instance.Instance instance)
 {
     return(_distribution.GetProbabilityDistribution());
 }