{"action":"created","issue":{"url":"https://api.github.com/repos/PredictionIO/template-scala-parallel-ecommercerecommendation/issues/1","labels_url":"https://api.github.com/repos/PredictionIO/template-scala-parallel-ecommercerecommendation/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/PredictionIO/template-scala-parallel-ecommercerecommendation/issues/1/comments","events_url":"https://api.github.com/repos/PredictionIO/template-scala-parallel-ecommercerecommendation/issues/1/events","html_url":"https://github.com/PredictionIO/template-scala-parallel-ecommercerecommendation/issues/1","id":59604907,"number":1,"title":"Did u handle buy event on this template?","user":{"login":"kithokit","id":920483,"avatar_url":"https://avatars.githubusercontent.com/u/920483?v=3","gravatar_id":"","url":"https://api.github.com/users/kithokit","html_url":"https://github.com/kithokit","followers_url":"https://api.github.com/users/kithokit/followers","following_url":"https://api.github.com/users/kithokit/following{/other_user}","gists_url":"https://api.github.com/users/kithokit/gists{/gist_id}","starred_url":"https://api.github.com/users/kithokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kithokit/subscriptions","organizations_url":"https://api.github.com/users/kithokit/orgs","repos_url":"https://api.github.com/users/kithokit/repos","events_url":"https://api.github.com/users/kithokit/events{/privacy}","received_events_url":"https://api.github.com/users/kithokit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-03T07:24:23Z","updated_at":"2015-03-05T09:13:14Z","closed_at":null,"body":"I didn't find anything to handle buy events in DataSource.scala.\r\n\r\nTo handle this, should we need to use Two algorithm to handle buy and view events separately and combine it at the end?"},"comment":{"url":"https://api.github.com/repos/PredictionIO/template-scala-parallel-ecommercerecommendation/issues/comments/77330284","html_url":"https://github.com/PredictionIO/template-scala-parallel-ecommercerecommendation/issues/1#issuecomment-77330284","issue_url":"https://api.github.com/repos/PredictionIO/template-scala-parallel-ecommercerecommendation/issues/1","id":77330284,"user":{"login":"k4hoo","id":2480948,"avatar_url":"https://avatars.githubusercontent.com/u/2480948?v=3","gravatar_id":"","url":"https://api.github.com/users/k4hoo","html_url":"https://github.com/k4hoo","followers_url":"https://api.github.com/users/k4hoo/followers","following_url":"https://api.github.com/users/k4hoo/following{/other_user}","gists_url":"https://api.github.com/users/k4hoo/gists{/gist_id}","starred_url":"https://api.github.com/users/k4hoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k4hoo/subscriptions","organizations_url":"https://api.github.com/users/k4hoo/orgs","repos_url":"https://api.github.com/users/k4hoo/repos","events_url":"https://api.github.com/users/k4hoo/events{/privacy}","received_events_url":"https://api.github.com/users/k4hoo/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T09:13:14Z","updated_at":"2015-03-05T09:13:14Z","body":"By the default, the buy event is used for unseen filtering during serving only (see algorithm's predict()).\r\nYes. To use buy event in training data, you can\r\n1) use two algorithms and combine like you said.\r\n2) another easier way is to aggregate buy with view event (say +1 for view, +5 for buy) but it may or may not give you good result, depending on your application and nature of data.\r\nsee https://groups.google.com/d/msg/predictionio-user/6kcAIoDXgF4/SVVDWImCDQEJ\r\n"}}