GainsChartBlox

The GainsChartBlox draws a gains chart of a classification model or of a regression model. You must specify the type of model, for example, classification or regression, the model name, and the data source by nesting a <iminer:classificationModel> tag or a <iminer:regressionModel> tag.

The gains chart displays correct predictions, a random curve, and an optimum curve.

Syntax

<iminer:gainsChart [attribute="value"] >

   ...

</iminer:gainsChart>       

where:

attribute
is one of the attributes that are listed in the attribute table
value
is a valid value for the attribute

Tag description

The following table shows the attributes of the <iminer:gainsChart> tag:

Table 1. Attributes of the <iminer:gainsChart> tag
Tag attribute Required Default value Header
ID Yes - The unique identifier for this instance of GainsChartBlox.
targetFieldValue N0 - The target field value for a classification model. This attribute is mandatory if a classification model tag is nested. If a regression model is used, this attribute is not required.
height No 400® The height of the gains chart.
width No 600 The width of the gains chart.

Example

The following coding example shows how to use the GainsChartBlox tag:

<iminer:gainsChart id="myGainsChart" height="300" width="500"

targetFieldValue="NO">

   <iminer:classificationModel name="BANK.BANKCARD_PRED"

dataSourceName="QCCDB2" />

</iminer:gainsChart>      

The following figure shows a gains chart with correct predictions, a random curve, and an optimum curve.

Figure 1. The Gains chart including correct predictions, the random curve, and the optimum curveThe figure above shows a gains chart with correct predictions, a random curve, and an optimum curve.


Feedback | Information roadmap