【发布时间】:2019-05-16 14:43:36
【问题描述】:
我正在尝试使用 Oracle SQL 开发人员创建数据挖掘模型。但是,它不起作用。我在此处发布之前检查了 Oracle 文档,但我无法解决此问题。
我正在尝试下面的代码:
-- Create the settings table for DT
CREATE TABLE decision_tree_model_settings (
setting_name VARCHAR2(30),
setting_value VARCHAR2(30));
BEGIN
INSERT INTO decision_tree_model_settings (setting_name, setting_value)
VALUES (dbms_data_mining.algo_name,dbms_data_mining.algo_decision_tree);
INSERT INTO decision_tree_model_settings (setting_name, setting_value)
VALUES (dbms_data_mining.prep_auto,dbms_data_mining.prep_auto_on);
COMMIT;
END;
/
-- CREATE MODEL
-- Create the model using the specified settings
BEGIN
DBMS_DATA_MINING.CREATE_MODEL(
model_name => 'Decision_Tree_Model',
mining_function => dbms_data_mining.classification,
data_table_name => 'TRAIN_SET',
target_column_name => 'Y',
settings_table_name => 'decision_tree_model_settings');
END;
/
创建模型的代码返回以下错误:
PLS-00306: wrong number or types of arguments in call to 'CREATE_MODEL'
ORA-06550: line 2, column 3:
PL/SQL: Statement ignored
谢谢,
爱德华多
【问题讨论】:
标签: oracle stored-procedures machine-learning plsql oracle-sqldeveloper