|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--shared.BaseInducer
|
+--shared.Inducer
|
+--nb.NaiveBayesInd
| Field Summary | |
java.lang.String |
endl
|
java.lang.String |
EVIDENCE_FACTOR_HELP
|
java.lang.String |
KL_THREHSOLD_HELP
|
java.lang.String |
LAPLACE_HELP
|
java.lang.String |
M_FACTOR_HELP
|
java.lang.String |
UNKNOWN_IS_VALUE_HELP
|
static int |
unknownAuto
|
static int |
unknownNo
|
static int |
unknownYes
|
java.lang.String |
USE_EVIDENCE_PROJECTION_HELP
|
| Constructor Summary | |
NaiveBayesInd(NaiveBayesInd source)
Description : Copy constructor. |
|
NaiveBayesInd(java.lang.String description)
Constructor with description String. |
|
| Method Summary | |
int |
class_id()
returns the Id of this inducer |
Inducer |
copy()
Description : Returns the pointer to the copy of this. |
void |
display(java.io.BufferedWriter stream,
DisplayPref dp)
Description : Prints a readable representation of the Cat to the given stream. |
Categorizer |
get_categorizer()
Description : Returns the categorizer that the inducer has generated. |
double |
get_m_estimate_factor()
|
boolean |
get_use_evidence_projection()
|
boolean |
get_use_laplace()
|
int |
num_nontrivial_leaves()
This method returns 0 because NaiveBayes is not a tree inducer. |
int |
num_nontrivial_nodes()
This method returns 0 because NaiveBayes is not a tree inducer. |
Categorizer |
release_categorizer()
Description : Gives ownership of the generated categorizer to the caller, reverting the Inducer to untrained state. |
void |
set_m_estimate_factor(double m)
Description : set m value for L'aplace correction. |
void |
set_use_evidence_projection(boolean projection)
|
void |
set_use_laplace(boolean laplace)
Description : set whether to use L'aplace correction. |
void |
set_user_options(java.lang.String preFix)
Description : Sets the options from environment variables. |
void |
train()
Description : Trains Naive Bayes Categorizer. |
boolean |
was_trained(boolean fatal_on_false)
Description : Return TRUE iff the class has a valid categorizer. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public java.lang.String endl
public final java.lang.String LAPLACE_HELP
public final java.lang.String M_FACTOR_HELP
public final java.lang.String UNKNOWN_IS_VALUE_HELP
public final java.lang.String KL_THREHSOLD_HELP
public final java.lang.String USE_EVIDENCE_PROJECTION_HELP
public final java.lang.String EVIDENCE_FACTOR_HELP
public static final int unknownNo
public static final int unknownYes
public static final int unknownAuto
| Constructor Detail |
public NaiveBayesInd(java.lang.String description)
public NaiveBayesInd(NaiveBayesInd source)
| Method Detail |
public int class_id()
public boolean was_trained(boolean fatal_on_false)
public Categorizer get_categorizer()
public Categorizer release_categorizer()
public void set_user_options(java.lang.String preFix)
public void train()
public void display(java.io.BufferedWriter stream,
DisplayPref dp)
throws java.io.IOException
public Inducer copy()
public void set_use_laplace(boolean laplace)
public void set_m_estimate_factor(double m)
public boolean get_use_laplace()
public double get_m_estimate_factor()
public boolean get_use_evidence_projection()
public void set_use_evidence_projection(boolean projection)
public int num_nontrivial_nodes()
public int num_nontrivial_leaves()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||