Uploaded image for project: 'S2Graph'
  1. S2Graph
  2. S2GRAPH-33

Support weighted sum of multiple query results.

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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)

      {
        "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": []
      }
      

        Attachments

          Activity

            People

            • Assignee:
              steamshon DOYUNG YOON
              Reporter:
              steamshon DOYUNG YOON
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: