Skip to content

Commit

Permalink
Fix labeling in msvm_ocas_solver
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Aug 13, 2012
1 parent 11c1730 commit 3548686
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/shogun/lib/external/libocas.cpp
Expand Up @@ -1643,7 +1643,7 @@ ocas_return_value_T msvm_ocas_solver(
/* initial cutting plane */
for(i=0; i < nData; i++)
{
y2 = (uint32_t)data_y[i]-1;
y2 = (uint32_t)data_y[i];

if(y2 > 0)
new_cut[i] = 0;
Expand Down Expand Up @@ -1726,7 +1726,7 @@ ocas_return_value_T msvm_ocas_solver(
/* new_cut[i] = argmax_i ( [[y != y_i]] + (w_y- w_y_i)'*x_i ) */
for(i=0; i < nData; i++)
{
y2 = (uint32_t)data_y[i]-1;
y2 = (uint32_t)data_y[i];

for(xi=-LIBOCAS_PLUS_INF, y=0; y < nY; y++)
{
Expand Down Expand Up @@ -1778,7 +1778,7 @@ ocas_return_value_T msvm_ocas_solver(

for(i=0; i < nData; i++)
{
y2 = (uint32_t)data_y[i]-1;
y2 = (uint32_t)data_y[i];

for(y=0; y < nY; y++)
{
Expand Down Expand Up @@ -1876,7 +1876,7 @@ ocas_return_value_T msvm_ocas_solver(
/* new_cut[i] = argmax_i ( [[y != y_i]] + (w_y- w_y_i)'*x_i ) */
for(i=0; i < nData; i++)
{
y2 = (uint32_t)data_y[i]-1;
y2 = (uint32_t)data_y[i];

for(xi=-LIBOCAS_PLUS_INF, y=0; y < nY; y++)
{
Expand Down Expand Up @@ -1904,7 +1904,7 @@ ocas_return_value_T msvm_ocas_solver(
R = 0;
for(i=0; i < nData; i++)
{
y2 = (uint32_t)data_y[i]-1;
y2 = (uint32_t)data_y[i];

for(tmp=-LIBOCAS_PLUS_INF, y=0; y < nY; y++)
{
Expand Down

0 comments on commit 3548686

Please sign in to comment.