IDAX.RAE - 計算迴歸預測的相對絕對誤差
使用此儲存程序,可計算迴歸預測的相對絕對誤差。 在計算方面,對資料套用迴歸模型時所做之預測,會與此資料的實際值相比較。
授權
陳述式的授權 ID 所持有的專用權必須包括 IDAX_USER 角色。
語法
IDAX.RAE(in parameter_string varchar(32672))
參數說明
- parameter_string
- 必要的單一字串參數,其中包含以逗點區隔的 <parameter>=<value> 項目配對。
傳回的資訊
DOUBLE 作為結果集的相對絕對誤差。
範例
CALL IDAX.SPLIT_DATA('intable=samples.customer_churn,traintable=cust_train,testtable=cust_test,id=cust_id,fraction=0.30');
CALL IDAX.GROW_REGTREE('model=cust_rt, intable=cust_train, id=cust_id, target=duration, minsplit=2');
CALL IDAX.PREDICT_REGTREE('model=cust_rt, intable=cust_test, outtable=cust_rt_out');
CALL IDAX.RAE('intable=cust_test,id=cust_id,target=duration,resulttable=cust_rt_out');