25.10.2016 Views

SAP HANA Predictive Analysis Library (PAL)

sap_hana_predictive_analysis_library_pal_en

sap_hana_predictive_analysis_library_pal_en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PAL</strong>_CHAID_TREEMODEL_TBL:<br />

<strong>PAL</strong>_CHAID_PMML_TBL:<br />

3.2.6 Confusion Matrix<br />

Confusion matrix is a traditional method to evaluate the performance of classification algorithms, including the<br />

multiple-class condition.<br />

The following is an example confusion matrix of a 3-class classification problem. The rows show the original<br />

labels and the columns show the predicted labels. For example, the number of class 0 samples classified as<br />

class 0 is a; the number of class 0 samples classified as class 2 is c.<br />

Table 110:<br />

Class 0 Class 1 Class 2<br />

Class 0 a b c<br />

Class 1 d e f<br />

Class 2 g h i<br />

From the confusion matrix, you can compute the precision, recall, and F1-score for each class. In the above<br />

example, the precision and recall of class 0 are:<br />

F1-score is a combination of precision and recall as follows:<br />

You can also calculate the Fβ-score:<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong> (<strong>PAL</strong>)<br />

<strong>PAL</strong> Functions P U B L I C 157

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!