Add NaiveBayes Model

Change-Id: Ia8f0a96943a66b5e16e19ad666e4c0ee169ad71d
This commit is contained in:
Hiroyuki Eguchi 2017-02-13 14:39:46 +09:00
parent 98870cc4e8
commit b69b3c36e2
3 changed files with 15 additions and 1 deletions

View File

@ -62,6 +62,7 @@
model.newParamsSpec = {
numIterations: null,
lambda: null,
numClasses: null,
runs: null,
mode: null,

View File

@ -13,7 +13,7 @@
</div>
</div>
<div class="col-xs-12"
ng-if="model.newModelSpec.model_type != 'DecisionTreeRegression'">
ng-if="model.newModelSpec.model_type != 'DecisionTreeRegression' && model.newModelSpec.model_type != 'NaiveBayes'">
<div class="form-group">
<label class="control-label" for="model-model-numIterations">
<translate>NumIterations</translate>
@ -24,6 +24,18 @@
placeholder="{$ 'Parameters when creating model.'|translate $}">
</div>
</div>
<div class="col-xs-12"
ng-if="model.newModelSpec.model_type == 'NaiveBayes'">
<div class="form-group">
<label class="control-label" for="model-model-lambda">
<translate>Lambda</translate>
<span class="hz-icon-required fa fa-asterisk"></span>
</label>
<input name="model-model-lambda" type="text" class="form-control" id="model-model-lambda"
ng-model="model.newParamsSpec.lambda"
placeholder="{$ 'Parameters when creating model.'|translate $}">
</div>
</div>
<div class="col-xs-12"
ng-if="model.newModelSpec.model_type == 'KMeans'">
<div class="form-group">

View File

@ -36,6 +36,7 @@
ctrl.modelTypeOptions = [
'LogisticRegression',
'NaiveBayes',
'DecisionTreeRegression',
'LinearRegression',
'KMeans',