Skip to content

Commit

Permalink
Fix tricky bug in SVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Darius Morawiec committed May 23, 2017
1 parent 831edb6 commit 303eef1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sklearn_porter/classifier/NuSVC/templates/c/classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int amounts[{1}];
for (i = 0, l = {1}; i < l; i++) {{
amounts[i] = 0;
}}
for (i = 0, l = {1}; i < l; i++) {{
for (i = 0, l = {0}; i < l; i++) {{
amounts[votes[i]] += 1;
}}

Expand Down
2 changes: 1 addition & 1 deletion sklearn_porter/classifier/NuSVC/templates/js/classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for (i = 0, d = 0, l = {1}; i < l; i++) {{
}}

var amounts = new Array({1}).fill(0);
for (i = 0, l = {1}; i < l; i++) {{
for (i = 0, l = {0}; i < l; i++) {{
amounts[votes[i]] += 1;
}}

Expand Down
2 changes: 1 addition & 1 deletion sklearn_porter/classifier/NuSVC/templates/php/classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for ($i = 0, $d = 0, $l = {1}; $i < $l; $i++) {{
}}

$amounts = array_fill(0, {0}, 0);
for ($i = 0, $l = {1}; $i < $l; $i++) {{
for ($i = 0, $l = {0}; $i < $l; $i++) {{
$amounts[$votes[$i]]++;
}}

Expand Down
2 changes: 1 addition & 1 deletion sklearn_porter/classifier/SVC/templates/c/classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int amounts[{1}];
for (i = 0, l = {1}; i < l; i++) {{
amounts[i] = 0;
}}
for (i = 0, l = {1}; i < l; i++) {{
for (i = 0, l = {0}; i < l; i++) {{
amounts[votes[i]] += 1;
}}

Expand Down
2 changes: 1 addition & 1 deletion sklearn_porter/classifier/SVC/templates/js/classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for (i = 0, d = 0, l = {1}; i < l; i++) {{
}}

var amounts = new Array({1}).fill(0);
for (i = 0, l = {1}; i < l; i++) {{
for (i = 0, l = {0}; i < l; i++) {{
amounts[votes[i]] += 1;
}}

Expand Down
2 changes: 1 addition & 1 deletion sklearn_porter/classifier/SVC/templates/php/classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for ($i = 0, $d = 0, $l = {1}; $i < $l; $i++) {{
}}

$amounts = array_fill(0, {0}, 0);
for ($i = 0, $l = {1}; $i < $l; $i++) {{
for ($i = 0, $l = {0}; $i < $l; $i++) {{
$amounts[$votes[$i]]++;
}}

Expand Down

0 comments on commit 303eef1

Please sign in to comment.