Ver código fonte

refactor: 将TrainSetOccupy统一名称为TrainingDataSetOccupy

191250028 3 anos atrás
pai
commit
3d1c6da801
2 arquivos alterados com 1 adições e 18 exclusões
  1. 0 15
      src/views/ConfigDetail.vue
  2. 1 3
      参考/机器学习模型参数.md

+ 0 - 15
src/views/ConfigDetail.vue

@@ -110,9 +110,6 @@
               <el-form-item label="Category" v-model="showCategory" v-if="showCategory===true">
               <el-form-item label="Category" v-model="showCategory" v-if="showCategory===true">
                 <el-input v-model="form.Category"></el-input>
                 <el-input v-model="form.Category"></el-input>
               </el-form-item>
               </el-form-item>
-              <el-form-item label="TrainSetOccupy" v-model="showTrainingSetOccupy" v-if="showTrainingSetOccupy===true">
-                <el-input v-model="form.TrainingSetOccupy"></el-input>
-              </el-form-item>
               <el-form-item label="DataSetOccupy" v-model="showTrainingDataSetOccupy" v-if="showTrainingDataSetOccupy===true">
               <el-form-item label="DataSetOccupy" v-model="showTrainingDataSetOccupy" v-if="showTrainingDataSetOccupy===true">
                 <el-input v-model="form.TrainingDataSetOccupy"></el-input>
                 <el-input v-model="form.TrainingDataSetOccupy"></el-input>
               </el-form-item>
               </el-form-item>
@@ -191,7 +188,6 @@ export default {
     const showRegParam=ref(false);
     const showRegParam=ref(false);
     const showElasticNetParam=ref(false);
     const showElasticNetParam=ref(false);
     const showCategory=ref(false);
     const showCategory=ref(false);
-    const showTrainingSetOccupy=ref(false);
     const showTrainingDataSetOccupy=ref(false);
     const showTrainingDataSetOccupy=ref(false);
     const showNumOfCluster=ref(false);
     const showNumOfCluster=ref(false);
     const showSeed=ref(false);
     const showSeed=ref(false);
@@ -205,7 +201,6 @@ export default {
       RegParam:"",
       RegParam:"",
       ElasticNetParam:"",
       ElasticNetParam:"",
       Category:"",
       Category:"",
-      TrainingSetOccupy:"",
       TrainingDataSetOccupy:"",
       TrainingDataSetOccupy:"",
       NumOfCluster:"",
       NumOfCluster:"",
       Seed:"",
       Seed:"",
@@ -232,9 +227,6 @@ export default {
             showMaxIter.value = true;
             showMaxIter.value = true;
             showRegParam.value = true;
             showRegParam.value = true;
             showElasticNetParam.value = true;
             showElasticNetParam.value = true;
-          }else if (form.modelTypeId==='2') {
-            showCategory.value = true;
-            showTrainingSetOccupy.value = true;
           }else if (form.modelTypeId==='5') {
           }else if (form.modelTypeId==='5') {
             showNumOfCluster.value=true;
             showNumOfCluster.value=true;
             showSeed.value=true;
             showSeed.value=true;
@@ -305,10 +297,6 @@ export default {
         RegParam:form.RegParam,
         RegParam:form.RegParam,
         ElasticNetParam:form.ElasticNetParam
         ElasticNetParam:form.ElasticNetParam
       }
       }
-      const arg2={
-        Category:form.Category,
-        TrainingSetOccupy:form.TrainingSetOccupy
-      }
       const arg3={
       const arg3={
         Category:form.Category,
         Category:form.Category,
         TrainingDataSetOccupy:form.TrainingDataSetOccupy
         TrainingDataSetOccupy:form.TrainingDataSetOccupy
@@ -319,8 +307,6 @@ export default {
       }
       }
       if (config.value.modelTypeId==='1'){
       if (config.value.modelTypeId==='1'){
         payload.argument=arg1;
         payload.argument=arg1;
-      }else if (config.value.modelTypeId==='2'){
-        payload.argument=arg2;
       }else if (config.value.modelTypeId==='5'){
       }else if (config.value.modelTypeId==='5'){
         payload.argument=arg4;
         payload.argument=arg4;
       }else{
       }else{
@@ -375,7 +361,6 @@ export default {
       showRegParam,
       showRegParam,
       showElasticNetParam,
       showElasticNetParam,
       showCategory,
       showCategory,
-      showTrainingSetOccupy,
       showNumOfCluster,
       showNumOfCluster,
       showSeed,
       showSeed,
       showTrainingDataSetOccupy,
       showTrainingDataSetOccupy,

+ 1 - 3
参考/机器学习模型参数.md

@@ -8,10 +8,8 @@
 
 
 #### DecisionTree
 #### DecisionTree
 
 
-注意:只有决策树DT的训练集比例是TrainingSetOccupy,其他都是TrainingDataSetOccupy,巨坑!
-
 - Category:具有该数量以上的字段视为连续
 - Category:具有该数量以上的字段视为连续
-- TrainingSetOccupy:训练集比例
+- TrainingDataSetOccupy:训练集比例
 
 
 #### RandomForest
 #### RandomForest