Skip to content
This repository was archived by the owner on Oct 8, 2019. It is now read-only.
This repository was archived by the owner on Oct 8, 2019. It is now read-only.

feature_vector UDF #373

@myui

Description

@myui
WITH fv as (
  select
    itemid,
    collect_list(other) as features, -- array<primitive>
    collect_list(cnt) as weight -- array<number>
  from
    cooccurrence
  group by
    itemid
)
select
  itemid,
  feature_vector(features, weight) as fv -- array<string>
from 
  fv;

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions