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

feature_vector UDF #373

Open
myui opened this issue Oct 12, 2016 · 0 comments
Open

feature_vector UDF #373

myui opened this issue Oct 12, 2016 · 0 comments

Comments

@myui
Copy link
Owner

myui commented Oct 12, 2016

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;
@myui myui added this to the v0.4 milestone Oct 12, 2016
@myui myui self-assigned this Oct 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant