意思決定表の列
意思決定表の各列は、1 条件または 1 アクションを表します。
意思決定表の列は、表に含まれるルールの条件とアクションを保持します。各列の先頭のセルは、条件のオブジェクトまたはアクションのターゲットを識別します。
| Row | Grade | Amount of loan | Insurance required | Insurance rate | |
|---|---|---|---|---|---|
| Min | Max | ||||
| 1 | A | < 100,000 | false | ||
| 2 | 100,000 | 300,000 | true | 0.001 | |
表内の番号が付いている各行が 1 つのルールを形成します。ルールは、その行の条件が満たされると、同じ行のアクションを実行します。 例えば、例の 2 行目は以下のルールを記述しています。
if
all of the following conditions are true:
- the loan grade is A
- the amount of the loan is between 100000 and 300000
then
set the Insurance required to true
set the Insurance rate to 0.001
ルール・ステートメントに複数の値が含まれる場合、条件を意思決定表の複数の列に分割できます。例えば、次の条件では、<min> と <max> に値を指定する必要があります。
if the age of the customer is between <min> and <max>
次の意思決定表は、<min> と <max> のサブ列を使用して Age 列の条件を表しています。
| Age group | Age | |
|---|---|---|
| Min | Max | |
| 1 | 18 | 25 |
| 2 | 26 | 40 |