Testing Utilities¶
- pyroed.testing.generate_fake_data(schema: Dict[str, List[Optional[str]]], feature_blocks: List[List[str]], sequences_per_batch: int, num_batches: int = 1) Tuple[Dict[str, torch.Tensor], Dict[str, torch.Tensor]] [source]¶
Generates a fake dataset for testing.
- Parameters
- Returns
A pair
(truth, experiment)
, wheretruth
is a dict of true values of latent variables (regression coefficients, etc.), andexperiment
is a standard experiment dict.- Return type