class ConditionalProbDistI(dict): (source)
Known subclasses: nltk.probability.ConditionalProbDist
, nltk.probability.DictionaryConditionalProbDist
Constructor: ConditionalProbDistI()
A collection of probability distributions for a single experiment run under different conditions. Conditional probability distributions are used to estimate the likelihood of each sample, given the condition under which the experiment was run. For example, a conditional probability distribution could be used to estimate the probability of each word type in a document, given the length of the word type. Formally, a conditional probability distribution can be defined as a function that maps from each condition to the ProbDist for the experiment under that condition.
Method | __init__ |
Classes inheriting from ConditionalProbDistI should implement __init__. |
Method | __repr__ |
Return a string representation of this ConditionalProbDist. |
Method | conditions |
Return a list of the conditions that are represented by this ConditionalProbDist. Use the indexing operator to access the probability distribution for a given condition. |