From 0170d3181982566be939b524df0ca7d84a93ccd5 Mon Sep 17 00:00:00 2001 From: c-mmoonn <252940017@qq.com> Date: Wed, 1 Nov 2023 18:10:47 +0800 Subject: [PATCH] Updated the code --- .../c/classification/decision_tree.c | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/generated_code_examples/c/classification/decision_tree.c b/generated_code_examples/c/classification/decision_tree.c index b444fd2c..041d069d 100644 --- a/generated_code_examples/c/classification/decision_tree.c +++ b/generated_code_examples/c/classification/decision_tree.c @@ -19,4 +19,28 @@ void score(double * input, double * output) { } } memcpy(output, var0, 3 * sizeof(double)); + + + public class YourModel { + public double score(double[] input) { + + double result = 0.0; + result += processInput(input); + result += processLogic(input); + + return result; + } + + private double processInput(double[] input) { + double result = 0.0; + return result; + } + + private double processLogic(double[] input) { + double result = 0.0; + return result; + } + + } + }