public enum DiscretePriorMethod extends Enum<DiscretePriorMethod>
Enum Constant and Description |
---|
FREQUENCIES
The prior for each combination is adjusted based on the frequency of that combination in the data.
|
UNIFORM
The prior is uniformly distributed over all discrete combinations.
|
Modifier and Type | Method and Description |
---|---|
static DiscretePriorMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiscretePriorMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscretePriorMethod UNIFORM
This is useful when you still want to be able to make a prediction even when the combinations found in the data are not possible in a query due to other evidence.
A consequence of uniform priors is that combinations that are clearly impossible have a very small chance of occurring, such as Pregnant Males or a country belonging to different continents.
This can be set for all distributions or individually.
public static final DiscretePriorMethod FREQUENCIES
This means that you do not get situations where a small probability is given to a combination such as Pregnant Male. Sometimes a uniform prior is better when the data doesn't reflect all possible combinations.
This can be set for all distributions or individually.
public static DiscretePriorMethod[] values()
for (DiscretePriorMethod c : DiscretePriorMethod.values()) System.out.println(c);
public static DiscretePriorMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021. All rights reserved.