2.4.1. dodiscover.ci.KernelCITest#
- class dodiscover.ci.KernelCITest(kernel_x='rbf', kernel_y='rbf', kernel_z='rbf', null_size=1000, approx_with_gamma=True, kwidth_x=None, kwidth_y=None, kwidth_z=None, threshold=1e-05, n_jobs=None)[source]#
Methods
test
(df, x_vars, y_vars[, z_covariates])Run CI test.
- test(df, x_vars, y_vars, z_covariates=None)[source]#
Run CI test.
- Parameters:
- df
pd.DataFrame
The dataframe containing the dataset.
- x_vars
Set
ofcolumn
A column in
df
.- y_vars
Set
ofcolumn
A column in
df
.- z_covariates
Set
, optional A set of columns in
df
, by default None. If None, then the test should run a standard independence test.
- df
- Returns: