@@ -58,6 +58,19 @@ const AITask = {
58
58
GM : 'Game' ,
59
59
}
60
60
61
+ const AIPreprocess = {
62
+ function : {
63
+ title : 'Basis function' ,
64
+ tasks : [ 'CF' , 'RG' , 'RL' ] ,
65
+ } ,
66
+ }
67
+ for ( const ap of Object . keys ( AIPreprocess ) ) {
68
+ for ( const t of AIPreprocess [ ap ] . tasks ) {
69
+ if ( ! AIPreprocess [ t ] ) AIPreprocess [ t ] = [ ]
70
+ AIPreprocess [ t ] . push ( ap )
71
+ }
72
+ }
73
+
61
74
const AIMethods = [
62
75
{
63
76
group : 'CT' ,
@@ -588,6 +601,7 @@ app.component('model-selector', {
588
601
return {
589
602
aiData : AIData ,
590
603
aiTask : AITask ,
604
+ aiPreprocess : AIPreprocess ,
591
605
modelFilter : '' ,
592
606
terminateFunction : [ ] ,
593
607
state : { } ,
@@ -755,7 +769,7 @@ app.component('model-selector', {
755
769
} ,
756
770
pushHistory ( ) {
757
771
return _this . pushHistory ( )
758
- }
772
+ } ,
759
773
} ) ) ( this ) ,
760
774
initScripts : { } ,
761
775
get availTask ( ) {
@@ -800,12 +814,12 @@ app.component('model-selector', {
800
814
<div id="rl_menu" class="sub-menu"></div>
801
815
</div>
802
816
</dd>
803
- <template v-if="mlTask === 'CF' || mlTask === 'RG' || mlTask === 'RL' ">
817
+ <template v-if="aiPreprocess[ mlTask] ">
804
818
<dt>Preprocess</dt>
805
819
<dd>
806
820
<select v-model="mlPreprocess">
807
821
<option value=""></option>
808
- <option value="function">Basis function </option>
822
+ <option v-for="itm in aiPreprocess[mlTask]" :key="itm" : value="itm">{{ aiPreprocess[itm].title }} </option>
809
823
</select>
810
824
</dd>
811
825
<dd>
@@ -935,6 +949,7 @@ app.component('model-selector', {
935
949
mlTask ( ) {
936
950
if ( this . isLoadParam ) return
937
951
this . mlModel = ''
952
+ this . mlPreprocess = ''
938
953
this . pushHistory ( )
939
954
this . ready ( )
940
955
} ,
0 commit comments