Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated Dart lang code examples (#173)
- Loading branch information
1 parent
d5a9cd5
commit d85dc30
Showing
13 changed files
with
435 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
generated_code_examples/dart/classification/decision_tree.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
List<double> score(List<double> input) { | ||
List<double> var0; | ||
if ((input[2]) <= (2.45)) { | ||
var0 = [1.0, 0.0, 0.0]; | ||
} else { | ||
if ((input[3]) <= (1.75)) { | ||
if ((input[2]) <= (4.95)) { | ||
if ((input[3]) <= (1.6500001)) { | ||
var0 = [0.0, 1.0, 0.0]; | ||
} else { | ||
var0 = [0.0, 0.0, 1.0]; | ||
} | ||
} else { | ||
var0 = [0.0, 0.3333333333333333, 0.6666666666666666]; | ||
} | ||
} else { | ||
var0 = [0.0, 0.021739130434782608, 0.9782608695652174]; | ||
} | ||
} | ||
return var0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import 'dart:math'; | ||
List<double> score(List<double> input) { | ||
double var0; | ||
if ((input[2]) > (3.1500000000000004)) { | ||
var0 = -1.1736122903444903; | ||
} else { | ||
if ((input[1]) > (3.35)) { | ||
var0 = -0.9486122853153485; | ||
} else { | ||
var0 = -0.9598622855668056; | ||
} | ||
} | ||
double var1; | ||
if ((input[2]) > (3.1500000000000004)) { | ||
if ((input[2]) > (4.450000000000001)) { | ||
var1 = -0.07218200074594171; | ||
} else { | ||
var1 = -0.0725391787456957; | ||
} | ||
} else { | ||
if ((input[1]) > (3.35)) { | ||
var1 = 0.130416969124648; | ||
} else { | ||
var1 = 0.12058330491181404; | ||
} | ||
} | ||
double var2; | ||
var2 = exp(((0) + (var0)) + (var1)); | ||
double var3; | ||
if ((input[2]) > (1.8)) { | ||
if ((input[3]) > (1.6500000000000001)) { | ||
var3 = -1.1840003561812273; | ||
} else { | ||
var3 = -0.99234128317334; | ||
} | ||
} else { | ||
var3 = -1.1934739985732523; | ||
} | ||
double var4; | ||
if ((input[3]) > (0.45000000000000007)) { | ||
if ((input[3]) > (1.6500000000000001)) { | ||
var4 = -0.06203313079859976; | ||
} else { | ||
var4 = 0.11141505233015861; | ||
} | ||
} else { | ||
if ((input[2]) > (1.4500000000000002)) { | ||
var4 = -0.0720353255122301; | ||
} else { | ||
var4 = -0.07164473223425313; | ||
} | ||
} | ||
double var5; | ||
var5 = exp(((0) + (var3)) + (var4)); | ||
double var6; | ||
if ((input[3]) > (1.6500000000000001)) { | ||
if ((input[2]) > (5.3500000000000005)) { | ||
var6 = -0.9314095846701695; | ||
} else { | ||
var6 = -0.9536869036452162; | ||
} | ||
} else { | ||
if ((input[2]) > (4.450000000000001)) { | ||
var6 = -1.115439610985773; | ||
} else { | ||
var6 = -1.1541827744206368; | ||
} | ||
} | ||
double var7; | ||
if ((input[2]) > (4.750000000000001)) { | ||
if ((input[2]) > (5.150000000000001)) { | ||
var7 = 0.12968922424213622; | ||
} else { | ||
var7 = 0.07468384042736965; | ||
} | ||
} else { | ||
if ((input[1]) > (2.7500000000000004)) { | ||
var7 = -0.07311533184609437; | ||
} else { | ||
var7 = -0.06204412771870974; | ||
} | ||
} | ||
double var8; | ||
var8 = exp(((0) + (var6)) + (var7)); | ||
double var9; | ||
var9 = ((var2) + (var5)) + (var8); | ||
return [(var2) / (var9), (var5) / (var9), (var8) / (var9)]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
List<double> score(List<double> input) { | ||
return [((((0.26211368729005147) + ((input[0]) * (0.41401099818882875))) + ((input[1]) * (1.4528075883131546))) + ((input[2]) * (-2.2466353889254984))) + ((input[3]) * (-1.0191976648723275)), ((((1.086138633246757) + ((input[0]) * (0.3771972701134921))) + ((input[1]) * (-1.549942443009429))) + ((input[2]) * (0.5880570713483371))) + ((input[3]) * (-1.37876431432621)), ((((-1.2117820645059012) + ((input[0]) * (-1.6873884533604786))) + ((input[1]) * (-1.526682216470397))) + ((input[2]) * (2.4467961178924296))) + ((input[3]) * (2.542368665459889))]; | ||
} |
53 changes: 53 additions & 0 deletions
53
generated_code_examples/dart/classification/random_forest.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
List<double> score(List<double> input) { | ||
List<double> var0; | ||
if ((input[3]) <= (0.8)) { | ||
var0 = [1.0, 0.0, 0.0]; | ||
} else { | ||
if ((input[2]) <= (4.8500004)) { | ||
var0 = [0.0, 0.9622641509433962, 0.03773584905660377]; | ||
} else { | ||
if ((input[3]) <= (1.75)) { | ||
if ((input[3]) <= (1.6500001)) { | ||
var0 = [0.0, 0.25, 0.75]; | ||
} else { | ||
var0 = [0.0, 1.0, 0.0]; | ||
} | ||
} else { | ||
var0 = [0.0, 0.0, 1.0]; | ||
} | ||
} | ||
} | ||
List<double> var1; | ||
if ((input[3]) <= (0.8)) { | ||
var1 = [1.0, 0.0, 0.0]; | ||
} else { | ||
if ((input[0]) <= (6.1499996)) { | ||
if ((input[2]) <= (4.8500004)) { | ||
var1 = [0.0, 0.9090909090909091, 0.09090909090909091]; | ||
} else { | ||
var1 = [0.0, 0.0, 1.0]; | ||
} | ||
} else { | ||
if ((input[3]) <= (1.75)) { | ||
var1 = [0.0, 0.8666666666666667, 0.13333333333333333]; | ||
} else { | ||
var1 = [0.0, 0.0, 1.0]; | ||
} | ||
} | ||
} | ||
return mulVectorNumber(addVectors(var0, var1), 0.5); | ||
} | ||
List<double> addVectors(List<double> v1, List<double> v2) { | ||
List<double> result = new List<double>(v1.length); | ||
for (int i = 0; i < v1.length; i++) { | ||
result[i] = v1[i] + v2[i]; | ||
} | ||
return result; | ||
} | ||
List<double> mulVectorNumber(List<double> v1, double num) { | ||
List<double> result = new List<double>(v1.length); | ||
for (int i = 0; i < v1.length; i++) { | ||
result[i] = v1[i] * num; | ||
} | ||
return result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import 'dart:math'; | ||
List<double> score(List<double> input) { | ||
double var0; | ||
var0 = (0) - (0.25); | ||
double var1; | ||
var1 = exp((var0) * ((((pow((5.4) - (input[0]), 2)) + (pow((3.0) - (input[1]), 2))) + (pow((4.5) - (input[2]), 2))) + (pow((1.5) - (input[3]), 2)))); | ||
double var2; | ||
var2 = exp((var0) * ((((pow((6.2) - (input[0]), 2)) + (pow((2.2) - (input[1]), 2))) + (pow((4.5) - (input[2]), 2))) + (pow((1.5) - (input[3]), 2)))); | ||
double var3; | ||
var3 = exp((var0) * ((((pow((5.0) - (input[0]), 2)) + (pow((2.3) - (input[1]), 2))) + (pow((3.3) - (input[2]), 2))) + (pow((1.0) - (input[3]), 2)))); | ||
double var4; | ||
var4 = exp((var0) * ((((pow((5.9) - (input[0]), 2)) + (pow((3.2) - (input[1]), 2))) + (pow((4.8) - (input[2]), 2))) + (pow((1.8) - (input[3]), 2)))); | ||
double var5; | ||
var5 = exp((var0) * ((((pow((6.7) - (input[0]), 2)) + (pow((3.0) - (input[1]), 2))) + (pow((5.0) - (input[2]), 2))) + (pow((1.7) - (input[3]), 2)))); | ||
double var6; | ||
var6 = exp((var0) * ((((pow((7.0) - (input[0]), 2)) + (pow((3.2) - (input[1]), 2))) + (pow((4.7) - (input[2]), 2))) + (pow((1.4) - (input[3]), 2)))); | ||
double var7; | ||
var7 = exp((var0) * ((((pow((4.9) - (input[0]), 2)) + (pow((2.4) - (input[1]), 2))) + (pow((3.3) - (input[2]), 2))) + (pow((1.0) - (input[3]), 2)))); | ||
double var8; | ||
var8 = exp((var0) * ((((pow((6.3) - (input[0]), 2)) + (pow((2.5) - (input[1]), 2))) + (pow((4.9) - (input[2]), 2))) + (pow((1.5) - (input[3]), 2)))); | ||
double var9; | ||
var9 = exp((var0) * ((((pow((6.0) - (input[0]), 2)) + (pow((2.7) - (input[1]), 2))) + (pow((5.1) - (input[2]), 2))) + (pow((1.6) - (input[3]), 2)))); | ||
double var10; | ||
var10 = exp((var0) * ((((pow((5.7) - (input[0]), 2)) + (pow((2.6) - (input[1]), 2))) + (pow((3.5) - (input[2]), 2))) + (pow((1.0) - (input[3]), 2)))); | ||
double var11; | ||
var11 = exp((var0) * ((((pow((6.9) - (input[0]), 2)) + (pow((3.1) - (input[1]), 2))) + (pow((4.9) - (input[2]), 2))) + (pow((1.5) - (input[3]), 2)))); | ||
double var12; | ||
var12 = exp((var0) * ((((pow((5.1) - (input[0]), 2)) + (pow((2.5) - (input[1]), 2))) + (pow((3.0) - (input[2]), 2))) + (pow((1.1) - (input[3]), 2)))); | ||
double var13; | ||
var13 = exp((var0) * ((((pow((5.1) - (input[0]), 2)) + (pow((3.8) - (input[1]), 2))) + (pow((1.9) - (input[2]), 2))) + (pow((0.4) - (input[3]), 2)))); | ||
double var14; | ||
var14 = exp((var0) * ((((pow((4.4) - (input[0]), 2)) + (pow((2.9) - (input[1]), 2))) + (pow((1.4) - (input[2]), 2))) + (pow((0.2) - (input[3]), 2)))); | ||
double var15; | ||
var15 = exp((var0) * ((((pow((5.7) - (input[0]), 2)) + (pow((4.4) - (input[1]), 2))) + (pow((1.5) - (input[2]), 2))) + (pow((0.4) - (input[3]), 2)))); | ||
double var16; | ||
var16 = exp((var0) * ((((pow((5.8) - (input[0]), 2)) + (pow((4.0) - (input[1]), 2))) + (pow((1.2) - (input[2]), 2))) + (pow((0.2) - (input[3]), 2)))); | ||
double var17; | ||
var17 = exp((var0) * ((((pow((5.1) - (input[0]), 2)) + (pow((3.3) - (input[1]), 2))) + (pow((1.7) - (input[2]), 2))) + (pow((0.5) - (input[3]), 2)))); | ||
double var18; | ||
var18 = exp((var0) * ((((pow((5.7) - (input[0]), 2)) + (pow((3.8) - (input[1]), 2))) + (pow((1.7) - (input[2]), 2))) + (pow((0.3) - (input[3]), 2)))); | ||
double var19; | ||
var19 = exp((var0) * ((((pow((4.3) - (input[0]), 2)) + (pow((3.0) - (input[1]), 2))) + (pow((1.1) - (input[2]), 2))) + (pow((0.1) - (input[3]), 2)))); | ||
double var20; | ||
var20 = exp((var0) * ((((pow((4.5) - (input[0]), 2)) + (pow((2.3) - (input[1]), 2))) + (pow((1.3) - (input[2]), 2))) + (pow((0.3) - (input[3]), 2)))); | ||
double var21; | ||
var21 = exp((var0) * ((((pow((4.8) - (input[0]), 2)) + (pow((3.4) - (input[1]), 2))) + (pow((1.9) - (input[2]), 2))) + (pow((0.2) - (input[3]), 2)))); | ||
double var22; | ||
var22 = exp((var0) * ((((pow((6.0) - (input[0]), 2)) + (pow((3.0) - (input[1]), 2))) + (pow((4.8) - (input[2]), 2))) + (pow((1.8) - (input[3]), 2)))); | ||
double var23; | ||
var23 = exp((var0) * ((((pow((6.3) - (input[0]), 2)) + (pow((2.8) - (input[1]), 2))) + (pow((5.1) - (input[2]), 2))) + (pow((1.5) - (input[3]), 2)))); | ||
double var24; | ||
var24 = exp((var0) * ((((pow((5.8) - (input[0]), 2)) + (pow((2.8) - (input[1]), 2))) + (pow((5.1) - (input[2]), 2))) + (pow((2.4) - (input[3]), 2)))); | ||
double var25; | ||
var25 = exp((var0) * ((((pow((6.1) - (input[0]), 2)) + (pow((3.0) - (input[1]), 2))) + (pow((4.9) - (input[2]), 2))) + (pow((1.8) - (input[3]), 2)))); | ||
double var26; | ||
var26 = exp((var0) * ((((pow((7.7) - (input[0]), 2)) + (pow((2.6) - (input[1]), 2))) + (pow((6.9) - (input[2]), 2))) + (pow((2.3) - (input[3]), 2)))); | ||
double var27; | ||
var27 = exp((var0) * ((((pow((6.9) - (input[0]), 2)) + (pow((3.1) - (input[1]), 2))) + (pow((5.1) - (input[2]), 2))) + (pow((2.3) - (input[3]), 2)))); | ||
double var28; | ||
var28 = exp((var0) * ((((pow((6.3) - (input[0]), 2)) + (pow((3.3) - (input[1]), 2))) + (pow((6.0) - (input[2]), 2))) + (pow((2.5) - (input[3]), 2)))); | ||
double var29; | ||
var29 = exp((var0) * ((((pow((4.9) - (input[0]), 2)) + (pow((2.5) - (input[1]), 2))) + (pow((4.5) - (input[2]), 2))) + (pow((1.7) - (input[3]), 2)))); | ||
double var30; | ||
var30 = exp((var0) * ((((pow((6.0) - (input[0]), 2)) + (pow((2.2) - (input[1]), 2))) + (pow((5.0) - (input[2]), 2))) + (pow((1.5) - (input[3]), 2)))); | ||
double var31; | ||
var31 = exp((var0) * ((((pow((7.9) - (input[0]), 2)) + (pow((3.8) - (input[1]), 2))) + (pow((6.4) - (input[2]), 2))) + (pow((2.0) - (input[3]), 2)))); | ||
double var32; | ||
var32 = exp((var0) * ((((pow((7.2) - (input[0]), 2)) + (pow((3.0) - (input[1]), 2))) + (pow((5.8) - (input[2]), 2))) + (pow((1.6) - (input[3]), 2)))); | ||
double var33; | ||
var33 = exp((var0) * ((((pow((7.7) - (input[0]), 2)) + (pow((3.8) - (input[1]), 2))) + (pow((6.7) - (input[2]), 2))) + (pow((2.2) - (input[3]), 2)))); | ||
double var34; | ||
var34 = exp((var0) * ((((pow((6.2) - (input[0]), 2)) + (pow((2.8) - (input[1]), 2))) + (pow((4.8) - (input[2]), 2))) + (pow((1.8) - (input[3]), 2)))); | ||
return [(((((((((((((((((((((-0.10040896360166912) + ((var1) * (-0.0))) + ((var2) * (-0.0))) + ((var3) * (-0.41839590533727394))) + ((var4) * (-0.0))) + ((var5) * (-0.04143676373258231))) + ((var6) * (-0.41839590533727394))) + ((var7) * (-0.41839590533727394))) + ((var8) * (-0.0))) + ((var9) * (-0.09370933375375942))) + ((var10) * (-0.021427693031370827))) + ((var11) * (-0.19906272901896646))) + ((var12) * (-0.41839590533727394))) + ((var13) * (0.01790941942476885))) + ((var14) * (0.19838472644676905))) + ((var15) * (0.41839590533727394))) + ((var16) * (0.0))) + ((var17) * (0.41839590533727394))) + ((var18) * (0.13934237366514107))) + ((var19) * (0.0))) + ((var20) * (0.41839590533727394))) + ((var21) * (0.41839590533727394)), ((((((((((((((((((((((-0.18554309515982967) + ((var22) * (-0.06950455855790763))) + ((var23) * (-0.0))) + ((var24) * (-0.04843045931251089))) + ((var25) * (-0.0))) + ((var26) * (-0.3538789357824905))) + ((var27) * (-0.0609756100198299))) + ((var28) * (-0.11288644645628641))) + ((var29) * (-0.3538789357824905))) + ((var30) * (-0.30936738135098624))) + ((var31) * (-0.3538789357824905))) + ((var32) * (-0.0))) + ((var33) * (-0.08889946907833211))) + ((var34) * (-0.0))) + ((var13) * (0.14642472878044094))) + ((var14) * (0.11750372941413528))) + ((var15) * (0.3538789357824905))) + ((var16) * (0.3538789357824905))) + ((var17) * (0.0))) + ((var18) * (0.0722565307987864))) + ((var19) * (0.3538789357824905))) + ((var20) * (0.3538789357824905))) + ((var21) * (0.0)), (((((((((((((((((((((((((0.5039648533253523) + ((var22) * (-29.893441720221567))) + ((var23) * (-29.893441720221567))) + ((var24) * (-0.0))) + ((var25) * (-23.66820011477251))) + ((var26) * (-0.0))) + ((var27) * (-0.0))) + ((var28) * (-0.0))) + ((var29) * (-7.128872495868185))) + ((var30) * (-19.888600728398526))) + ((var31) * (-0.4282859091720985))) + ((var32) * (-5.683580020209366))) + ((var33) * (-0.0))) + ((var34) * (-29.893441720221567))) + ((var1) * (15.40619227503478))) + ((var2) * (11.497905273164342))) + ((var3) * (0.0))) + ((var4) * (29.893441720221567))) + ((var5) * (29.893441720221567))) + ((var6) * (0.0))) + ((var7) * (0.0))) + ((var8) * (29.893441720221567))) + ((var9) * (29.893441720221567))) + ((var10) * (0.0))) + ((var11) * (0.0))) + ((var12) * (0.0))]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import 'dart:math'; | ||
List<double> score(List<double> input) { | ||
double var0; | ||
if ((input[2]) >= (2.45000005)) { | ||
var0 = -0.0733167157; | ||
} else { | ||
var0 = 0.143414631; | ||
} | ||
double var1; | ||
if ((input[2]) >= (2.45000005)) { | ||
var1 = -0.0706516728; | ||
} else { | ||
var1 = 0.125176534; | ||
} | ||
double var2; | ||
var2 = exp(((0.5) + (var0)) + (var1)); | ||
double var3; | ||
if ((input[2]) >= (2.45000005)) { | ||
if ((input[3]) >= (1.75)) { | ||
var3 = -0.0668393895; | ||
} else { | ||
var3 = 0.123041473; | ||
} | ||
} else { | ||
var3 = -0.0717073306; | ||
} | ||
double var4; | ||
if ((input[2]) >= (2.45000005)) { | ||
if ((input[3]) >= (1.75)) { | ||
var4 = -0.0642274022; | ||
} else { | ||
var4 = 0.10819874; | ||
} | ||
} else { | ||
var4 = -0.069036141; | ||
} | ||
double var5; | ||
var5 = exp(((0.5) + (var3)) + (var4)); | ||
double var6; | ||
if ((input[3]) >= (1.6500001)) { | ||
var6 = 0.13432835; | ||
} else { | ||
if ((input[2]) >= (4.94999981)) { | ||
var6 = 0.0724137947; | ||
} else { | ||
var6 = -0.0732467622; | ||
} | ||
} | ||
double var7; | ||
if ((input[3]) >= (1.6500001)) { | ||
var7 = 0.117797568; | ||
} else { | ||
if ((input[2]) >= (4.94999981)) { | ||
var7 = 0.0702544972; | ||
} else { | ||
var7 = -0.0706570372; | ||
} | ||
} | ||
double var8; | ||
var8 = exp(((0.5) + (var6)) + (var7)); | ||
double var9; | ||
var9 = ((var2) + (var5)) + (var8); | ||
return [(var2) / (var9), (var5) / (var9), (var8) / (var9)]; | ||
} |
21 changes: 21 additions & 0 deletions
21
generated_code_examples/dart/regression/decision_tree.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
double score(List<double> input) { | ||
double var0; | ||
if ((input[5]) <= (6.941)) { | ||
if ((input[12]) <= (14.4)) { | ||
if ((input[7]) <= (1.38485)) { | ||
var0 = 45.58; | ||
} else { | ||
var0 = 22.939004149377574; | ||
} | ||
} else { | ||
var0 = 14.910404624277467; | ||
} | ||
} else { | ||
if ((input[5]) <= (7.4370003)) { | ||
var0 = 32.11304347826088; | ||
} else { | ||
var0 = 45.096666666666664; | ||
} | ||
} | ||
return var0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
double score(List<double> input) { | ||
double var0; | ||
if ((input[5]) > (6.918000000000001)) { | ||
if ((input[5]) > (7.437)) { | ||
var0 = 24.81112131071211; | ||
} else { | ||
var0 = 23.5010290754961; | ||
} | ||
} else { | ||
if ((input[12]) > (14.365)) { | ||
var0 = 21.796569516771488; | ||
} else { | ||
var0 = 22.640634908349323; | ||
} | ||
} | ||
double var1; | ||
if ((input[12]) > (9.63)) { | ||
if ((input[12]) > (19.23)) { | ||
var1 = -0.9218520876020193; | ||
} else { | ||
var1 = -0.30490175606373926; | ||
} | ||
} else { | ||
if ((input[5]) > (7.437)) { | ||
var1 = 2.028554553190867; | ||
} else { | ||
var1 = 0.45970642160364367; | ||
} | ||
} | ||
return ((0) + (var0)) + (var1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
double score(List<double> input) { | ||
return (((((((((((((37.13534685269069) + ((input[0]) * (-0.1085910249905398))) + ((input[1]) * (0.044198898725993474))) + ((input[2]) * (0.017466905407304723))) + ((input[3]) * (2.8323210870045896))) + ((input[4]) * (-18.48374869795796))) + ((input[5]) * (3.8354955484365396))) + ((input[6]) * (0.00014091650900379532))) + ((input[7]) * (-1.5040340046693206))) + ((input[8]) * (0.3106174852433965))) + ((input[9]) * (-0.012306650033752283))) + ((input[10]) * (-0.9736183984588227))) + ((input[11]) * (0.009403964809694338))) + ((input[12]) * (-0.5203427347180765)); | ||
} |
Oops, something went wrong.