潘志宝
2024-11-28 231897591c909b164defebfdb5936387ec2807d0
iailab-module-model/iailab-module-model-biz/src/main/resources/template/menu.xml.vm
@@ -18,7 +18,9 @@
#{if}($method.methodName=="train")
                    <tab-train class="${model.pkgName}.impl.${model.pyName}Impl" method="train"
                               params="#{foreach} ($column in [1..$method.dataLength])double[][],#{end}#{if}($method.model==1)java.util.HashMap,#{end}java.util.HashMap">
                        <property key="data1" name="数据路径" type="file" valueType="file" min="" max=""/>
#{foreach} ($column in [1..$method.dataLength])
                        <property key="data${column}" name="数据${column}路径" type="file" valueType="file" min="" max=""/>
#{end}
#{foreach} ($setting in $method.methodSettings)
#{if}($setting.type=="select")
                        <property key="${setting.settingKey}" name="${setting.name}" type="select" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}">
@@ -35,7 +37,9 @@
                    <tab-load class="${model.pkgName}.impl.${model.pyName}Impl" method="predict"
                              params="#{foreach} ($column in [1..$method.dataLength])double[][],#{end}#{if}($method.model==1)java.util.HashMap,#{end}java.util.HashMap" resultKey="$!{method.resultKey}"
                              modelRules="${model.pkgName}.impl.${model.pyName}Impl.predict">
                        <property key="data1" name="数据路径" type="file" valueType="file" min="" max=""/>
#{foreach} ($column in [1..$method.dataLength])
                        <property key="data${column}" name="数据${column}路径" type="file" valueType="file" min="" max=""/>
#{end}
#{foreach} ($setting in $method.methodSettings)
#{if}($setting.type=="select")
                        <property key="${setting.settingKey}" name="${setting.name}" type="select" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}">