OCD_modeling.utils

OCD_modeling.utils.cohen_d(x, y)[source]

Calculates effect size as cohen’s d

OCD_modeling.utils.emd(u, v)[source]

computes the Wasserstein distance (i.e. earth mover’s distance) across pathways P between u and v

OCD_modeling.utils.get_working_dir()[source]

get computer name to set working path

OCD_modeling.utils.monitor(args)[source]

Performs the monitoring

OCD_modeling.utils.paired_euclidian(u, v)[source]

Euclidian distance between paired simulations

OCD_modeling.utils.plot_monitoring(args)[source]

display traces of monitored activity

OCD_modeling.utils.rmse(u, v)[source]

compute the root mean squared error of correlation accross pathways P between u and v as \(d = \sqrt{ \sum_{p \in P} (\mu_u^p - \mu_v^p)^2}\)

Parameters:

u,v

pandas DataFrames with only pathway columns

Returns:

d

Root Mean Squared Error