public LiverAttributesModel Post([FromBody] LiverAttributesModel model) { LiverDecisionTree ldt = new LiverDecisionTree(model); LiverAttributesModel result = new LiverAttributesModel(); result.decisionResult = ldt.treeDeciding(); result.logisticProbability = ldt.regressionProbability(); return(result); }
public LiverDecisionTree(LiverAttributesModel obj) { this.lam = obj; }