deepsnap icon indicating copy to clipboard operation
deepsnap copied to clipboard

what is deepsnap.dataset.EnsembleGenerator?

Open lihuiliullh opened this issue 4 years ago • 1 comments

I couldn't find the detailed tutorial of EnsembleGenerator in your document. Could you give an example of how EnsembleGenerator works? What is the meaning of each parameter?

lihuiliullh avatar Jan 15 '21 18:01 lihuiliullh

Hi, sorry about the late reply. Basically, EnsembleGenerator is a generator composed of a list of generators. Those generators will have gen_prob probabilities to be sampled or used to generate the graph (if not specified each generator will have the same probabilities to be sampled). The probability of each generator is specified at the corresponding position in the gen_prob array.

We have a simple example in the test case https://github.com/snap-stanford/deepsnap/blob/c9f3e3f212c556cf9b231bcf140c50d9d5ee0d51/tests/test_dataset.py#L2185In the future, we might add more examples.

zechengz avatar Mar 08 '21 07:03 zechengz