Bug fix.
Is now required choosing a parameter to optimize for a model .
<div class="row">
<div id="modelForm" class="col-lg-12">
</div>
+ <input class="invisibleRadioBtn" type="checkbox" id="addedParameter" name="choosedparam" required>
<div id="modelParameters" class="col-lg-12">
-
</div>
</div>
</div>
}
}
+ var numOfParams = 0;
+
function gestoreContenutiExtra(nomi, id) {
if (nomi == "model") {
fat.appendChild(document.createTextNode("Optimize parameter"))
if (this.checked == true) {
+ numOfParams = numOfParams + 1;
switch (param["type"]) {
case "Categorical":
newInput = document.createElement("select")
}.bind(this, idd)
});
} else {
+ numOfParams = numOfParams - 1;
switch (param["type"]) {
case "Categorical":
newInput = document.createElement("select")
}.bind(this, idd)
});
}
+ if (numOfParams > 0) {
+ document.getElementById("addedParameter").checked = true
+ }
+ else {
+ document.getElementById("addedParameter").checked = false
+ }
});
divInput.appendChild(document.createTextNode("Optimize parameter"));
parametersDiv.appendChild(divInput);
