Просмотр исходного кода

feat:优化了数据库自动插入

DingXiaoYu 3 лет назад
Родитель
Сommit
333dbda0d6

+ 12 - 2
java_compile/src/main/resources/data.sql

@@ -1,6 +1,16 @@
 
 delete from `model_type` where id > 0;
 
-INSERT INTO `model_type` VALUES (1,'{\"MaxIter\":10,\"RegParam\":0.5,\"ElasticNetParam\":0.8}','des','detail_des','LogisticRegression','LogisticRegression');
+-- INSERT INTO `model_type` VALUES (1,'{\"MaxIter\":10,\"RegParam\":0.5,\"ElasticNetParam\":0.8}','des','detail_des','LogisticRegression','LogisticRegression');
+--
+-- INSERT INTO `model_type` VALUES (3,'{\"Category\":2,\"TrainingDataSetOccupy\":0.6}','des','detail_des','RandomForest','RandomForest');
 
-INSERT INTO `model_type` VALUES (3,'{\"Category\":2,\"TrainingDataSetOccupy\":0.6}','des','detail_des','RandomForest','RandomForest');
+INSERT INTO `model_type` VALUES
+(1,NULL,NULL,NULL,'LogisticRegression','逻辑回归'),
+(2,NULL,NULL,NULL,'DecisionTree','决策树'),
+(3,NULL,NULL,NULL,'RandomForest','随机森林'),
+(4,NULL,NULL,NULL,'GBDT','梯度提升决策树'),
+(5,NULL,NULL,NULL,'K-Means','K-均值'),
+(6,NULL,NULL,NULL,'MultilayerPerceptronClassifier','多层感知器分类器'),
+(7,NULL,NULL,NULL,'NaiveBayes','朴素贝叶斯'),
+(8,NULL,NULL,NULL,'RandomForestRegression','随机森林回归');

+ 0 - 1
java_compile/src/main/resources/script.sql

@@ -96,7 +96,6 @@ create table model_type
     model_detail_name varchar(255) null,
     model_type_name   varchar(255) null
 );
-INSERT INTO `model_type` VALUES (1,NULL,NULL,NULL,'LogisticRegression','逻辑回归'),(2,NULL,NULL,NULL,'DecisionTree','决策树'),(3,NULL,NULL,NULL,'RandomForest','随机森林'),(4,NULL,NULL,NULL,'GBDT','梯度提升决策树'),(5,NULL,NULL,NULL,'K-Means','K-均值'),(6,NULL,NULL,NULL,'MultilayerPerceptronClassifier','多层感知器分类器'),(7,NULL,NULL,NULL,'NaiveBayes','朴素贝叶斯'),(8,NULL,NULL,NULL,'RandomForestRegression','随机森林回归');
 
 create table model_type_argument
 (