{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/38149699","id":38149699,"diff_hunk":"@@ -0,0 +1,116 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one or more\n+ * contributor license agreements.  See the NOTICE file distributed with\n+ * this work for additional information regarding copyright ownership.\n+ * The ASF licenses this file to You under the Apache License, Version 2.0\n+ * (the \"License\"); you may not use this file except in compliance with\n+ * the License.  You may obtain a copy of the License at\n+ *\n+ *    http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.apache.spark.mllib.regression\n+\n+import org.apache.spark.Logging\n+import org.apache.spark.annotation.Experimental\n+\n+/**\n+ * :: Experimental ::\n+ * Supplies an interface for the discount value in\n+ * the forgetful update rule in StreamingLinearAlgorithm.\n+ * Actual implementation is provided in StreamingDecaySetter[T].","path":"mllib/src/main/scala/org/apache/spark/mllib/regression/StreamingDecay.scala","position":27,"original_position":27,"commit_id":"a4ed2b0b3b40e2220b36dc7acf3b8ef835781032","original_commit_id":"a4ed2b0b3b40e2220b36dc7acf3b8ef835781032","user":{"login":"feynmanliang","id":990069,"avatar_url":"https://avatars.githubusercontent.com/u/990069?v=3","gravatar_id":"","url":"https://api.github.com/users/feynmanliang","html_url":"https://github.com/feynmanliang","followers_url":"https://api.github.com/users/feynmanliang/followers","following_url":"https://api.github.com/users/feynmanliang/following{/other_user}","gists_url":"https://api.github.com/users/feynmanliang/gists{/gist_id}","starred_url":"https://api.github.com/users/feynmanliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feynmanliang/subscriptions","organizations_url":"https://api.github.com/users/feynmanliang/orgs","repos_url":"https://api.github.com/users/feynmanliang/repos","events_url":"https://api.github.com/users/feynmanliang/events{/privacy}","received_events_url":"https://api.github.com/users/feynmanliang/received_events","type":"User","site_admin":false},"body":"\"[[StreamingDecaySetter]]\"","created_at":"2015-08-27T21:41:00Z","updated_at":"2015-08-27T21:41:00Z","html_url":"https://github.com/apache/spark/pull/8022#discussion_r38149699","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/8022","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/38149699"},"html":{"href":"https://github.com/apache/spark/pull/8022#discussion_r38149699"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/8022"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8022","id":41859860,"html_url":"https://github.com/apache/spark/pull/8022","diff_url":"https://github.com/apache/spark/pull/8022.diff","patch_url":"https://github.com/apache/spark/pull/8022.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/8022","number":8022,"state":"open","locked":false,"title":"[SPARK-4980] [MLlib] Add decay factors to streaming linear methods","user":{"login":"rotationsymmetry","id":11525028,"avatar_url":"https://avatars.githubusercontent.com/u/11525028?v=3","gravatar_id":"","url":"https://api.github.com/users/rotationsymmetry","html_url":"https://github.com/rotationsymmetry","followers_url":"https://api.github.com/users/rotationsymmetry/followers","following_url":"https://api.github.com/users/rotationsymmetry/following{/other_user}","gists_url":"https://api.github.com/users/rotationsymmetry/gists{/gist_id}","starred_url":"https://api.github.com/users/rotationsymmetry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rotationsymmetry/subscriptions","organizations_url":"https://api.github.com/users/rotationsymmetry/orgs","repos_url":"https://api.github.com/users/rotationsymmetry/repos","events_url":"https://api.github.com/users/rotationsymmetry/events{/privacy}","received_events_url":"https://api.github.com/users/rotationsymmetry/received_events","type":"User","site_admin":false},"body":"This PR includes an implementation of decay factors in streaming linear and logistic regression. Unit tests are also included. \r\n\r\nThe algorithm and design details are described in the document: https://docs.google.com/document/d/1UfKvuaaJVQCvh-wOLLYT8l7STQFjPxE7fitZyd0tqTo/edit?usp=sharing\r\n\r\nYour comments and suggestions are highly appreciated. I will add more tests and ScalaDoc as suggested.\r\n\r\nThanks!\r\n\r\ncc @freeman-lab @mengxr ","created_at":"2015-08-07T05:03:17Z","updated_at":"2015-08-27T21:41:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c647c782e01dfb5e8abe576cc52637322254f44b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/8022/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/8022/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/8022/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/a4ed2b0b3b40e2220b36dc7acf3b8ef835781032","head":{"label":"rotationsymmetry:SPARK-4980-stream-decay","ref":"SPARK-4980-stream-decay","sha":"a4ed2b0b3b40e2220b36dc7acf3b8ef835781032","user":{"login":"rotationsymmetry","id":11525028,"avatar_url":"https://avatars.githubusercontent.com/u/11525028?v=3","gravatar_id":"","url":"https://api.github.com/users/rotationsymmetry","html_url":"https://github.com/rotationsymmetry","followers_url":"https://api.github.com/users/rotationsymmetry/followers","following_url":"https://api.github.com/users/rotationsymmetry/following{/other_user}","gists_url":"https://api.github.com/users/rotationsymmetry/gists{/gist_id}","starred_url":"https://api.github.com/users/rotationsymmetry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rotationsymmetry/subscriptions","organizations_url":"https://api.github.com/users/rotationsymmetry/orgs","repos_url":"https://api.github.com/users/rotationsymmetry/repos","events_url":"https://api.github.com/users/rotationsymmetry/events{/privacy}","received_events_url":"https://api.github.com/users/rotationsymmetry/received_events","type":"User","site_admin":false},"repo":{"id":39110615,"name":"spark","full_name":"rotationsymmetry/spark","owner":{"login":"rotationsymmetry","id":11525028,"avatar_url":"https://avatars.githubusercontent.com/u/11525028?v=3","gravatar_id":"","url":"https://api.github.com/users/rotationsymmetry","html_url":"https://github.com/rotationsymmetry","followers_url":"https://api.github.com/users/rotationsymmetry/followers","following_url":"https://api.github.com/users/rotationsymmetry/following{/other_user}","gists_url":"https://api.github.com/users/rotationsymmetry/gists{/gist_id}","starred_url":"https://api.github.com/users/rotationsymmetry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rotationsymmetry/subscriptions","organizations_url":"https://api.github.com/users/rotationsymmetry/orgs","repos_url":"https://api.github.com/users/rotationsymmetry/repos","events_url":"https://api.github.com/users/rotationsymmetry/events{/privacy}","received_events_url":"https://api.github.com/users/rotationsymmetry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rotationsymmetry/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/rotationsymmetry/spark","forks_url":"https://api.github.com/repos/rotationsymmetry/spark/forks","keys_url":"https://api.github.com/repos/rotationsymmetry/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rotationsymmetry/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rotationsymmetry/spark/teams","hooks_url":"https://api.github.com/repos/rotationsymmetry/spark/hooks","issue_events_url":"https://api.github.com/repos/rotationsymmetry/spark/issues/events{/number}","events_url":"https://api.github.com/repos/rotationsymmetry/spark/events","assignees_url":"https://api.github.com/repos/rotationsymmetry/spark/assignees{/user}","branches_url":"https://api.github.com/repos/rotationsymmetry/spark/branches{/branch}","tags_url":"https://api.github.com/repos/rotationsymmetry/spark/tags","blobs_url":"https://api.github.com/repos/rotationsymmetry/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rotationsymmetry/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rotationsymmetry/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/rotationsymmetry/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rotationsymmetry/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/rotationsymmetry/spark/languages","stargazers_url":"https://api.github.com/repos/rotationsymmetry/spark/stargazers","contributors_url":"https://api.github.com/repos/rotationsymmetry/spark/contributors","subscribers_url":"https://api.github.com/repos/rotationsymmetry/spark/subscribers","subscription_url":"https://api.github.com/repos/rotationsymmetry/spark/subscription","commits_url":"https://api.github.com/repos/rotationsymmetry/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/rotationsymmetry/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/rotationsymmetry/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/rotationsymmetry/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/rotationsymmetry/spark/contents/{+path}","compare_url":"https://api.github.com/repos/rotationsymmetry/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rotationsymmetry/spark/merges","archive_url":"https://api.github.com/repos/rotationsymmetry/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rotationsymmetry/spark/downloads","issues_url":"https://api.github.com/repos/rotationsymmetry/spark/issues{/number}","pulls_url":"https://api.github.com/repos/rotationsymmetry/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/rotationsymmetry/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/rotationsymmetry/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rotationsymmetry/spark/labels{/name}","releases_url":"https://api.github.com/repos/rotationsymmetry/spark/releases{/id}","created_at":"2015-07-15T01:58:10Z","updated_at":"2015-07-15T01:58:31Z","pushed_at":"2015-08-27T21:09:33Z","git_url":"git://github.com/rotationsymmetry/spark.git","ssh_url":"git@github.com:rotationsymmetry/spark.git","clone_url":"https://github.com/rotationsymmetry/spark.git","svn_url":"https://github.com/rotationsymmetry/spark","homepage":null,"size":121270,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"6185cdd2afcd492b77ff225b477b3624e3bc7bb2","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","created_at":"2014-02-25T08:00:08Z","updated_at":"2015-08-27T20:51:42Z","pushed_at":"2015-08-27T21:35:52Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":1667390,"stargazers_count":5219,"watchers_count":5219,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4787,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":366,"forks":4787,"open_issues":366,"watchers":5219,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/8022"},"html":{"href":"https://github.com/apache/spark/pull/8022"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/8022"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/8022/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/8022/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/8022/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/a4ed2b0b3b40e2220b36dc7acf3b8ef835781032"}}}}