The TD_FIT_METRICS function performs several calculations, using as its input: the original series; the series predicted from the model; the original series mean; and, the residuals left over from a modeling fit exercise. The purpose of the generated metrics is to enable the data scientist to judge the 'Goodness of Fit' afforded by the modeling fit exercise.
- Type: DB SessionTeradata ConnectionConnection to a Teradata Database Instance
- Type: TableInputThis section outlines the syntax associated with invoking the TD_FIT_METRICS function. This function can accept either a single multivariate series as an input, or alternatively can accept an ART table containing the residual results from a previously run regression operation. For the case in which the input is a single multivariate series, the fields in the SERIES_SPEC(PAYLOAD(FIELDS(). CONTENT(MULTIVAR_REAL)) must consists of: First field referenced is the original series value; Second field referenced is the calculated series value produced by the model; Third field is the calculated residual: original_value minus calculated_valueFor the scenario in which the residuals reside within the tertiary result set associated with an ART table, then the caller merely needs to pass in the TABLE_NAME identify the ART containing the residuals - the DBS software will perform the extraction of the original series, calculated series, and residuals as part of the execution of this function.