Skip to content

Fix Issue #592: fix Pegasos Kernel SVM implementation#593

Open
Rishi-Jain-27 wants to merge 1 commit into
Open-Deep-ML:mainfrom
Rishi-Jain-27:fix-issue-592
Open

Fix Issue #592: fix Pegasos Kernel SVM implementation#593
Rishi-Jain-27 wants to merge 1 commit into
Open-Deep-ML:mainfrom
Rishi-Jain-27:fix-issue-592

Conversation

@Rishi-Jain-27

Copy link
Copy Markdown

This fixes the issue with the solution and the test cases for the Pegasos Kernel SVM implementation.

The first issue was that alphas[i] was being calculated using two different methods at the same time.
The first method multiplies index[j] in the decision_value calculation.
The second method multiplies eta by index[i] in the alphas[i] update if the margin is violated.

Both were implemented. I removed the second method.

The second issue is that the problem description indicates an else to the margin violation condition that says that alphas[i] should be updated regardless, but without adding eta. This was not implemented. I implemented this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant