iscan.utils.DataGenerator._sample_from_same_structs

iscan.utils.DataGenerator._sample_from_same_structs(adj: numpy.ndarray, shifted_nodes: numpy.ndarray, use_gp: bool = False) tuple[numpy.ndarray, numpy.ndarray]

Sample data where both DAGs have the same structure

Parameters:
adj : np.ndarray

Adjacency matrix

shifted_nodes : np.ndarray

Set of shited nodes

use_gp : bool, optional

Whether to sample functions from Gaussian Processes, by default False

Returns:

Datasets X and Y

Return type:

Tuple[np.ndarray, np.ndarray]


Last update: Jan 14, 2024