DecisionTreePredictの入力例 - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ - NewSQL Engineの分析関数

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
2019年3月
Language
日本語
Last Update
2019-10-29
dita:mapPath
ja-JP/pqk1526318183991.ditamap
dita:ditavalPath
ja-JP/pqk1526318183991.ditaval
dita:id
B035-1206
Product Category
Software
Teradata Vantage
  • AttributeTable: iris_attribute_test
  • モデル: iris_attribute_output

両方のテーブルは、<Teradata Vantage™機械学習エンジン分析関数リファレンス、B700-4003>の「ML Engine DecisionTree」の例1で作成されます。

入力テーブルの列の説明については、NaiveBayesPredictの例を参照してください。

iris_attribute_test
pid attribute attrvalue
5 petal_length 1.4
5 petal_width 0.2
5 sepal_length 5
5 sepal_width 3.6
10 petal_length 1.5
10 petal_width 0.1
10 sepal_length 4.9
10 sepal_width 3.1
15 petal_length 1.2
15 petal_width 0.2
15 sepal_length 5.8
15 sepal_width 4
..。 ..。 ..。
iris_attribute_output
node_id node_size node_gini(p) node_entropy node_chisq_pv node_label node_majorvotes split_value split_gini(p) split_entropy split_chisq_pv left_id left_size left_label left_majorvotes right_id right_size right_label right_majorvotes left_bucket right_bucket 属性
0 120 0.666666666666667 1.58496250072116 1 1 40 3 0.333333333333333 0.666666666666666 0 1 40 1 40 2 80 2 40     petal_length
2 80 0.5 1 1 2 40 1.70000004768372 0.0719199499687304 0.227979833481065 1.11022302462516e-16 5 39 2 38 6 41 3 39     petal_width
5 39 0.0499671268902038 0.172036949353113 1 2 38 4.90000009536743 0.0384615384615385 0.0832080127650393 0.00272911340977045 11 35 2 35 12 4 2 3     petal_length
6 41 0.0928019036287924 0.281193796432043 1 3 39 4.90000009536743 0.0840474620962426 0.240916755467913 0.0492232443463754 13 4 3 3 14 37 3 36     petal_length
14 37 0.0525931336742148 0.179256066928321 1 3 36 2.90000009536743 0.0518018018018018 0.162085811567472 0.455587679837851 29 13 3 13 30 24 3 23     sepal_width
30 24 0.0798611111111112 0.249882292833186 1 3 23 3.20000004768372 0.0773809523809524 0.216552190540511 0.387955122826146 61 14 3 13 62 10 3 10     sepal_width
61 14 0.13265306122449 0.371232326640875 1 3 13 6.30000019073486 0.131868131868132 0.363297594798595 0.773484680980946 123 1 3 1 124 13 3 12     sepal_length