ISubGVQA.sampling.methods.simple
Attributes
Classes
Functions
|
|
|
|
|
|
|
|
|
|
|
Args: |
Module Contents
- ISubGVQA.sampling.methods.simple.DISABLE = False
- ISubGVQA.sampling.methods.simple.MODE = 'default'
- ISubGVQA.sampling.methods.simple.levelwiseSL(levels: List[torch.Tensor], idx2primesub: torch.Tensor, data: torch.Tensor, theta: torch.Tensor)
- ISubGVQA.sampling.methods.simple.levelwiseMars(levels: List[torch.Tensor], idx2primesub: torch.Tensor, data: torch.Tensor, theta: torch.Tensor, parents: torch.Tensor)
- ISubGVQA.sampling.methods.simple.log1mexp(x)
- ISubGVQA.sampling.methods.simple.levelOrder(beta)
- Return type:
List[List[int]]
- ISubGVQA.sampling.methods.simple.gumbel_keys(w, time_sampled)
- ISubGVQA.sampling.methods.simple.sample_subset(w, k, time_sampled)
- Args:
- w (Tensor): Float Tensor of weights for each element. In gumbel mode
these are interpreted as log probabilities
k (int): number of elements in the subset sample