{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/29816039","id":29816039,"diff_hunk":"@@ -477,3 +477,76 @@ sc.stop();\n </div>\n </div>\n \n+## ElementwiseProduct\n+\n+ElementwiseProduct multiplies individual vector samples by a provided weighting vector component-wise.  This represents the [Hadamard product](https://en.wikipedia.org/wiki/Hadamard_product_%28matrices%29) between the input vector, `v` and transforming vector, `w`, to yield a result vector.","path":"docs/mllib-feature-extraction.md","position":6,"original_position":6,"commit_id":"74b03b6e761d0a63b3b4a6a85f9aac46b93ec5b7","original_commit_id":"74b03b6e761d0a63b3b4a6a85f9aac46b93ec5b7","user":{"login":"jkbradley","id":5084283,"avatar_url":"https://avatars.githubusercontent.com/u/5084283?v=3","gravatar_id":"","url":"https://api.github.com/users/jkbradley","html_url":"https://github.com/jkbradley","followers_url":"https://api.github.com/users/jkbradley/followers","following_url":"https://api.github.com/users/jkbradley/following{/other_user}","gists_url":"https://api.github.com/users/jkbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/jkbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkbradley/subscriptions","organizations_url":"https://api.github.com/users/jkbradley/orgs","repos_url":"https://api.github.com/users/jkbradley/repos","events_url":"https://api.github.com/users/jkbradley/events{/privacy}","received_events_url":"https://api.github.com/users/jkbradley/received_events","type":"User","site_admin":false},"body":"```multiplies individual vector samples by a provided weighting vector component-wise```\r\n--> ```multiplies each input vector by a provided \"weight\" vector, using element-wise multiplication.  In other words, it scales each column of the dataset by a scalar multiplier.```","created_at":"2015-05-07T00:29:50Z","updated_at":"2015-05-07T00:29:50Z","html_url":"https://github.com/apache/spark/pull/4580#discussion_r29816039","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/4580","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/29816039"},"html":{"href":"https://github.com/apache/spark/pull/4580#discussion_r29816039"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/4580"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/4580","id":29235735,"html_url":"https://github.com/apache/spark/pull/4580","diff_url":"https://github.com/apache/spark/pull/4580.diff","patch_url":"https://github.com/apache/spark/pull/4580.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/4580","number":4580,"state":"open","locked":false,"title":" [SPARK-5726] [MLLIB] Elementwise (Hadamard) Vector Product Transformer","user":{"login":"ogeagla","id":1176012,"avatar_url":"https://avatars.githubusercontent.com/u/1176012?v=3","gravatar_id":"","url":"https://api.github.com/users/ogeagla","html_url":"https://github.com/ogeagla","followers_url":"https://api.github.com/users/ogeagla/followers","following_url":"https://api.github.com/users/ogeagla/following{/other_user}","gists_url":"https://api.github.com/users/ogeagla/gists{/gist_id}","starred_url":"https://api.github.com/users/ogeagla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogeagla/subscriptions","organizations_url":"https://api.github.com/users/ogeagla/orgs","repos_url":"https://api.github.com/users/ogeagla/repos","events_url":"https://api.github.com/users/ogeagla/events{/privacy}","received_events_url":"https://api.github.com/users/ogeagla/received_events","type":"User","site_admin":false},"body":"See https://issues.apache.org/jira/browse/SPARK-5726","created_at":"2015-02-13T02:26:08Z","updated_at":"2015-05-07T00:29:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"63878c6fdf5b6496ea7d8009a738b56becb8787b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/4580/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/4580/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/4580/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/74b03b6e761d0a63b3b4a6a85f9aac46b93ec5b7","head":{"label":"ogeagla:spark-mllib-weighting","ref":"spark-mllib-weighting","sha":"74b03b6e761d0a63b3b4a6a85f9aac46b93ec5b7","user":{"login":"ogeagla","id":1176012,"avatar_url":"https://avatars.githubusercontent.com/u/1176012?v=3","gravatar_id":"","url":"https://api.github.com/users/ogeagla","html_url":"https://github.com/ogeagla","followers_url":"https://api.github.com/users/ogeagla/followers","following_url":"https://api.github.com/users/ogeagla/following{/other_user}","gists_url":"https://api.github.com/users/ogeagla/gists{/gist_id}","starred_url":"https://api.github.com/users/ogeagla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogeagla/subscriptions","organizations_url":"https://api.github.com/users/ogeagla/orgs","repos_url":"https://api.github.com/users/ogeagla/repos","events_url":"https://api.github.com/users/ogeagla/events{/privacy}","received_events_url":"https://api.github.com/users/ogeagla/received_events","type":"User","site_admin":false},"repo":{"id":29560070,"name":"spark","full_name":"ogeagla/spark","owner":{"login":"ogeagla","id":1176012,"avatar_url":"https://avatars.githubusercontent.com/u/1176012?v=3","gravatar_id":"","url":"https://api.github.com/users/ogeagla","html_url":"https://github.com/ogeagla","followers_url":"https://api.github.com/users/ogeagla/followers","following_url":"https://api.github.com/users/ogeagla/following{/other_user}","gists_url":"https://api.github.com/users/ogeagla/gists{/gist_id}","starred_url":"https://api.github.com/users/ogeagla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogeagla/subscriptions","organizations_url":"https://api.github.com/users/ogeagla/orgs","repos_url":"https://api.github.com/users/ogeagla/repos","events_url":"https://api.github.com/users/ogeagla/events{/privacy}","received_events_url":"https://api.github.com/users/ogeagla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ogeagla/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/ogeagla/spark","forks_url":"https://api.github.com/repos/ogeagla/spark/forks","keys_url":"https://api.github.com/repos/ogeagla/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ogeagla/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ogeagla/spark/teams","hooks_url":"https://api.github.com/repos/ogeagla/spark/hooks","issue_events_url":"https://api.github.com/repos/ogeagla/spark/issues/events{/number}","events_url":"https://api.github.com/repos/ogeagla/spark/events","assignees_url":"https://api.github.com/repos/ogeagla/spark/assignees{/user}","branches_url":"https://api.github.com/repos/ogeagla/spark/branches{/branch}","tags_url":"https://api.github.com/repos/ogeagla/spark/tags","blobs_url":"https://api.github.com/repos/ogeagla/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ogeagla/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ogeagla/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/ogeagla/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ogeagla/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/ogeagla/spark/languages","stargazers_url":"https://api.github.com/repos/ogeagla/spark/stargazers","contributors_url":"https://api.github.com/repos/ogeagla/spark/contributors","subscribers_url":"https://api.github.com/repos/ogeagla/spark/subscribers","subscription_url":"https://api.github.com/repos/ogeagla/spark/subscription","commits_url":"https://api.github.com/repos/ogeagla/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/ogeagla/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/ogeagla/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/ogeagla/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/ogeagla/spark/contents/{+path}","compare_url":"https://api.github.com/repos/ogeagla/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ogeagla/spark/merges","archive_url":"https://api.github.com/repos/ogeagla/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ogeagla/spark/downloads","issues_url":"https://api.github.com/repos/ogeagla/spark/issues{/number}","pulls_url":"https://api.github.com/repos/ogeagla/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/ogeagla/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/ogeagla/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ogeagla/spark/labels{/name}","releases_url":"https://api.github.com/repos/ogeagla/spark/releases{/id}","created_at":"2015-01-20T23:10:22Z","updated_at":"2015-02-15T21:31:09Z","pushed_at":"2015-04-28T19:17:03Z","git_url":"git://github.com/ogeagla/spark.git","ssh_url":"git@github.com:ogeagla/spark.git","clone_url":"https://github.com/ogeagla/spark.git","svn_url":"https://github.com/ogeagla/spark","homepage":null,"size":100322,"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":"6e57d57b32ba2aa0514692074897b5edd34e0dd6","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-05-07T00:09:22Z","pushed_at":"2015-05-07T00:10:21Z","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":1621667,"stargazers_count":3876,"watchers_count":3876,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3381,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":314,"forks":3381,"open_issues":314,"watchers":3876,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/4580"},"html":{"href":"https://github.com/apache/spark/pull/4580"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/4580"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/4580/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/4580/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/4580/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/74b03b6e761d0a63b3b4a6a85f9aac46b93ec5b7"}}}}