You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/02/23 15:10:18 UTC

[jira] [Commented] (S2GRAPH-33) Support weighted sum of multiple query results.

    [ https://issues.apache.org/jira/browse/S2GRAPH-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158914#comment-15158914 ] 

ASF GitHub Bot commented on S2GRAPH-33:
---------------------------------------

GitHub user SteamShon opened a pull request:

    https://github.com/apache/incubator-s2graph/pull/30

    [S2GRAPH-33] Support weighted sum of multiple query results.

    add multiQuery support and refactor unused codes.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/SteamShon/incubator-s2graph S2GRAPH-33

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-s2graph/pull/30.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #30
    
----
commit 27a18bc5f2635f6df0c2e494914c283ea82c1295
Author: DO YUNG YOON <st...@apache.org>
Date:   2016-02-23T14:08:27Z

    add multiQuery and refactor unused codes.

----


> Support weighted sum of multiple query results.
> -----------------------------------------------
>
>                 Key: S2GRAPH-33
>                 URL: https://issues.apache.org/jira/browse/S2GRAPH-33
>             Project: S2Graph
>          Issue Type: New Feature
>            Reporter: DOYUNG YOON
>            Assignee: DOYUNG YOON
>              Labels: feature
>
> In some cases, It is necessary to aggregate multiple results from multiple queries. 
> Some example cases would be hybrid recommender which composed of combination of (user based collaborative filtering + most popular + content based collaborative filtering..., etc).
> ex)
> {noformat}
> {
>   "queries": [
>     {
>       "srcVertices": [
>         {
>           "columnName": "user_id_test",
>           "id": 0,
>           "serviceName": "s2graph"
>         }
>       ],
>       "steps": [
>         [
>           {
>             "direction": "out",
>             "label": "s2graph_label_test_0",
>             "offset": 0
>           }
>         ]
>       ]
>     },
>     {
>       "srcVertices": [
>         {
>           "columnName": "user_id_test",
>           "id": 0,
>           "serviceName": "s2graph"
>         }
>       ],
>       "steps": [
>         [
>           {
>             "direction": "out",
>             "label": "s2graph_label_test_1",
>             "offset": 0
>           }
>         ]
>       ]
>     }
>   ],
>   "weights": [
>     0.6,
>     0.4
>   ],
>   "gropuBy": ["to"], 
>   "select": []
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)