scanvi_explainer.scanvi_bootstrapper.SCANVIBoostrapper

scanvi_explainer.scanvi_bootstrapper.SCANVIBoostrapper#

class scanvi_explainer.scanvi_bootstrapper.SCANVIBoostrapper(model: SCANVI, n_bootstraps: int = 25)#
__init__(model: SCANVI, n_bootstraps: int = 25)#

Bootrap wrapper

Parameters:
  • model – Trained SCANVI model

  • n_bootstraps (int) – Number of bootstraps, by default 25

Methods

__init__(model[, n_bootstraps])

Bootrap wrapper

estimate(func_fn, shap_values)

Calculate measurement for each boostrap run.

feature_plot(shap_values[, n_features, ...])

Feature plot for bootstrapping

run([train_size, batch_size])

Runner

save(shap_values, filename)

Save results to feather format.