|
@@ -91,6 +91,11 @@ func (c *ByClassifier) IsGOOD(key string) {
|
|
|
//Posterior calculates the posterior probabilities in pseudo-bayes.
|
|
|
func (c *ByClassifier) Posterior(hdr string) map[string]float64 {
|
|
|
|
|
|
+ for c.bayez == nil {
|
|
|
+ time.Sleep(1 * time.Millisecond)
|
|
|
+ log.Println("Waiting the bayesian to exist")
|
|
|
+ }
|
|
|
+
|
|
|
return c.bayez.Posterior(hdr)
|
|
|
|
|
|
}
|