Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probability based sampling #4699

Open
YolandaLyj opened this issue Oct 9, 2022 · 0 comments
Open

Probability based sampling #4699

YolandaLyj opened this issue Oct 9, 2022 · 0 comments
Labels
type/feature req Type: feature request

Comments

@YolandaLyj
Copy link

Nebula does not yet have the ability to sample based on probability.

I am often faced with the need that in classical graph neural networks, the acquisition of samples is usually based on probabilistic sampling. For example, in the graphsage model, the positive sample of a node is a probability sampling of the neighbor node based on the weight value of the neighbor node.

I want to add a query phrase (e.g. SAMPLING) to sample the output based on probability. The syntax is ...| SAMPLING <expression> <sample_number>

For example, go from 1 yield id($$) as id, properties($$).weight as weight | sampling weight 5

Probability sampling is based on the value of the weight column, and the larger the weight value, the greater the probability of being sampled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

1 participant