Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions JSAT/src/jsat/classifiers/svm/PlattSMO.java
Original file line number Diff line number Diff line change
Expand Up @@ -333,17 +333,21 @@ private void trainC_warm_and_normal(ClassificationDataSet dataSet, Classifier wa
updateSetsLabeled(i, alphas[i], C*weights.get(i));

if(label[i] == -1)
{
if(I0[i] && (i_low == -1 || fcache[i] > fcache[i_low]) )
{
i_low = i;
b_low = fcache[i];
}
}
else
{
if(I0[i] && (i_low == -1 || fcache[i] > fcache[i_up]) )
{
i_up = i;
b_up = fcache[i];
}
}
}
}

Expand Down