Calculation of prob_response and predict_confidence - Teradata® Database

Database Analytic Functions

Product
Teradata® Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
Teradata_Vantage™___Advanced_SQL_Engine_Analytic_Functions.withLogo_upload_July2021/wnd1589838592459.ditamap
dita:ditavalPath
Teradata_Vantage™___Advanced_SQL_Engine_Analytic_Functions.withLogo_upload_July2021/ayr1485454803741.ditaval
dita:id
B035-1206
lifecycle
previous
Product Category
Teradata Vantage™

The function calculates the values of prob_response and predict_confidence with the following formulas.

This is the formula for the value of class r:

valuer = Wr·X
where:
  • X is the vector of predictor values corresponding to an observation.
  • W r is the vector of predictor weights calculated by the model for class r, where r is a class specified by the Responses syntax element.

prob_response

For binary classification, the formula for the probability that a response belongs to class r is:

prob_response = sigmoid (valuer)

For multiple-class classification, the formula for the probability that a response belongs to class r is:

prob_response = softmaxr (values)

predict_confidence

The column predict_confidence, which appears only if you omit the Responses syntax element, displays the probability that the observation belongs to the class in the column predict_value. This value is the maximum value of prob_response over all responses r.