Add NaiveBayes Model
Change-Id: Ia8f0a96943a66b5e16e19ad666e4c0ee169ad71d
This commit is contained in:
parent
98870cc4e8
commit
b69b3c36e2
@ -62,6 +62,7 @@
|
|||||||
|
|
||||||
model.newParamsSpec = {
|
model.newParamsSpec = {
|
||||||
numIterations: null,
|
numIterations: null,
|
||||||
|
lambda: null,
|
||||||
numClasses: null,
|
numClasses: null,
|
||||||
runs: null,
|
runs: null,
|
||||||
mode: null,
|
mode: null,
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12"
|
<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">
|
<div class="form-group">
|
||||||
<label class="control-label" for="model-model-numIterations">
|
<label class="control-label" for="model-model-numIterations">
|
||||||
<translate>NumIterations</translate>
|
<translate>NumIterations</translate>
|
||||||
@ -24,6 +24,18 @@
|
|||||||
placeholder="{$ 'Parameters when creating model.'|translate $}">
|
placeholder="{$ 'Parameters when creating model.'|translate $}">
|
||||||
</div>
|
</div>
|
||||||
</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"
|
<div class="col-xs-12"
|
||||||
ng-if="model.newModelSpec.model_type == 'KMeans'">
|
ng-if="model.newModelSpec.model_type == 'KMeans'">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
ctrl.modelTypeOptions = [
|
ctrl.modelTypeOptions = [
|
||||||
'LogisticRegression',
|
'LogisticRegression',
|
||||||
|
'NaiveBayes',
|
||||||
'DecisionTreeRegression',
|
'DecisionTreeRegression',
|
||||||
'LinearRegression',
|
'LinearRegression',
|
||||||
'KMeans',
|
'KMeans',
|
||||||
|
Loading…
Reference in New Issue
Block a user