← CLI reference
Command

vraven counterfactual

Search for a bounded continuous-input counterfactual

Minimal form

vraven counterfactual <model>

Arguments and options

OptionMeaningDefault
modelPyTorch model fileNone
--model-formatModel storage format. VRAVEN instrumentation supports state_dict and trusted pickle models; TorchScript can be loaded but cannot expose PyTorch hooks.state_dict
--model-factory, --factoryImport path such as my_project.models:ClassifierNone
--factory-kwargsJSON object passed to the model factory{}
--state-dict-key—None
--strip-prefix—None
--device—cpu
--non-strict—False
--trusted-modelAllow Python-pickle model loadingFalse
--inputInput tensor fileNone
--sample-index—0
--target-class—None
--steps—100
--learning-rate—0.05
--l2-weight—0.01
--max-linf—None
--clamp-min—None
--clamp-max—None
--top-changes—20
--output—vraven_counterfactual.json
Exact local helpRun vraven counterfactual --help against your installed version before automating a release workflow.