The gains chart displays correct predictions, a random curve, and an optimum curve.
<iminer:gainsChart [attribute="value"] > ... </iminer:gainsChart>
where:
The following table shows the 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. |
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.
