| | |
| | | #{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}"> |
| | |
| | | <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}"> |