Class cookies (Pmf) :
"" "A map from the string to use ID to probablity. "" "
Def __init__ (self, hypos) :
"" "the Initialize self.
Hypos: the sequence of the string to use IDs
"" "
Pmf. __init__ (self)
For hypo in hypos:
The self. The Set (hypo, 1)
The self. The Normalize ()
Here the Pmf. __init__ (self) is what mean? In thinlbayes. Py class Pmf (_DictWrapper) didn't __init__ (self), and the self. The Set (hypo, 1) self should
Is _DictWrapper object, instead of referring to the Cookie, so def __init__ (self, hypos) : what is the self? Around that I'm a little confusion,
CodePudding user response:
Multiple inheritance, to see the mother didn't know how to return a responsibility