Definition at line 19 of file output_matrix.py.
def learn_lib.output_matrix.OutputMatrix.__init__ |
( |
|
self | ) |
|
def learn_lib.output_matrix.OutputMatrix.get_accuracy |
( |
|
self | ) |
|
def learn_lib.output_matrix.OutputMatrix.get_f1measure |
( |
|
self | ) |
|
def learn_lib.output_matrix.OutputMatrix.get_measures |
( |
|
self | ) |
|
def learn_lib.output_matrix.OutputMatrix.get_precision |
( |
|
self | ) |
|
def learn_lib.output_matrix.OutputMatrix.get_recall |
( |
|
self | ) |
|
def learn_lib.output_matrix.OutputMatrix.output_matrix |
( |
|
self, |
|
|
|
true_y, |
|
|
|
pred_y |
|
) |
| |
Output matrix
Meant to print the output confusion matrix. Specifically
- True Positive
- False Positive
- True Negative
- False Negative
The above gets printed for both the training data and testing data.
Definition at line 139 of file output_matrix.py.
def learn_lib.output_matrix.OutputMatrix.set_accuracy |
( |
|
self | ) |
|
def learn_lib.output_matrix.OutputMatrix.set_confusion_matrix |
( |
|
self, |
|
|
|
tp, |
|
|
|
fp, |
|
|
|
tn, |
|
|
|
fn |
|
) |
| |
First to be called.
Sets the confusion matrix values.
Definition at line 32 of file output_matrix.py.
def learn_lib.output_matrix.OutputMatrix.set_f1measure |
( |
|
self | ) |
|
f1 = (2 * rec * prec) / (rec + prec)
Balanced F1 score that is the harmonic mean of both recall
and precision.
Definition at line 127 of file output_matrix.py.
def learn_lib.output_matrix.OutputMatrix.set_measures |
( |
|
self | ) |
|
Before measuers are set, make sure confusion matrix
exists, or else exit.
Definition at line 44 of file output_matrix.py.
def learn_lib.output_matrix.OutputMatrix.set_precision |
( |
|
self | ) |
|
def learn_lib.output_matrix.OutputMatrix.set_recall |
( |
|
self | ) |
|
learn_lib.output_matrix.OutputMatrix.__acc |
|
private |
learn_lib.output_matrix.OutputMatrix.__f1 |
|
private |
learn_lib.output_matrix.OutputMatrix.__fn |
|
private |
learn_lib.output_matrix.OutputMatrix.__fp |
|
private |
learn_lib.output_matrix.OutputMatrix.__prec |
|
private |
learn_lib.output_matrix.OutputMatrix.__rec |
|
private |
learn_lib.output_matrix.OutputMatrix.__tn |
|
private |
learn_lib.output_matrix.OutputMatrix.__tp |
|
private |
The documentation for this class was generated from the following file: