Title: Objective function in SMO SVM · Issue #1 · jonchar/ml-python · GitHub
Open Graph Title: Objective function in SMO SVM · Issue #1 · jonchar/ml-python
X Title: Objective function in SMO SVM · Issue #1 · jonchar/ml-python
Description: Hello jonchar, I was reading your notebook on solving SVM with SMO algorithm. Unfortunately there is a part that I might misunderstand and looks as an error to me. When you define your objective function, you return : ``return np.sum(alp...
Open Graph Description: Hello jonchar, I was reading your notebook on solving SVM with SMO algorithm. Unfortunately there is a part that I might misunderstand and looks as an error to me. When you define your objective fu...
X Description: Hello jonchar, I was reading your notebook on solving SVM with SMO algorithm. Unfortunately there is a part that I might misunderstand and looks as an error to me. When you define your objective fu...
Opengraph URL: https://github.com/jonchar/ml-python/issues/1
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Objective function in SMO SVM","articleBody":"Hello jonchar,\r\n\r\nI was reading your notebook on solving SVM with SMO algorithm. Unfortunately there is a part that I might misunderstand and looks as an error to me. When you define your objective function, you return : \r\n``return np.sum(alphas) - 0.5 * np.sum(target * target * kernel(X_train, X_train) * alphas * alphas)\r\n\r\nHowever, I think the term (target * target) is target^2 (element wise multiplication) instead of a matrix composed of target_i * target_j. To agree with the theory, I would have coded target[:,None] * target[None,:] to get such matrix. \r\n\r\nOne more time, I might be wrong, and I would really appreciate your feedback on it.\r\n\r\nBest,\r\n\r\nKilian","author":{"url":"https://github.com/kilianFatras","@type":"Person","name":"kilianFatras"},"datePublished":"2019-02-13T10:20:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1/ml-python/issues/1"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1701930d-b941-d67f-80e0-0bc5a0df7ba8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A3D0:390ECE:47EFF06:656F6C6:6A56D0F4 |
| html-safe-nonce | 39aab807ec84f44ff8797ddb9c1ae80e2f05a03f4afa487948cb2c01dd3d4dd1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBM0QwOjM5MEVDRTo0N0VGRjA2OjY1NkY2QzY6NkE1NkQwRjQiLCJ2aXNpdG9yX2lkIjoiMjI3MzMyMDA5Njk5ODI4MTQ2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 79845defc4af595de4ae9e6ae434176420700b6cdb53bbd2f61c0b159675fb38 |
| hovercard-subject-tag | issue:409729075 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/jonchar/ml-python/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64c3365d47d5ac85a9fe13bf1e251acd15b7d7af97ca5e6e813a2d177173e2be/jonchar/ml-python/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64c3365d47d5ac85a9fe13bf1e251acd15b7d7af97ca5e6e813a2d177173e2be/jonchar/ml-python/issues/1 |
| og:image:alt | Hello jonchar, I was reading your notebook on solving SVM with SMO algorithm. Unfortunately there is a part that I might misunderstand and looks as an error to me. When you define your objective fu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kilianFatras |
| hostname | github.com |
| expected-hostname | github.com |
| None | df99b7164e1d961b639cf5d3cbd6b5ba673edc67bd7e47cdc4746b96099e11ae |
| turbo-cache-control | no-preview |
| go-import | github.com/jonchar/ml-python git https://github.com/jonchar/ml-python.git |
| octolytics-dimension-user_id | 10509931 |
| octolytics-dimension-user_login | jonchar |
| octolytics-dimension-repository_id | 40105291 |
| octolytics-dimension-repository_nwo | jonchar/ml-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40105291 |
| octolytics-dimension-repository_network_root_nwo | jonchar/ml-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3146ab55fc8763ab0e1d2a875e600b3a545bc751 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width