pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::DiverseCounterfactualOptions Struct Reference

Settings for FindDiverseCounterfactuals. More...

#include <counterfactual.hpp>

Public Attributes

int count = 4
 How many counterfactuals to find together, >= 1.
 
float proximity_weight = 0.5f
 Weight of the mean scaled L1 distance to the input (DiCE's proximity_weight).
 
float diversity_weight = 1.0f
 Weight of the diversity term (DiCE's diversity_weight).
 
float learning_rate = 0.05f
 
int max_steps = 2000
 
float initial_spread = 0.5f
 The counterfactuals start at the input plus uniform noise of this size, in scale units, so they can separate.
 
uint64_t seed = 0
 
float change_tolerance = 1e-3f
 

Detailed Description

Settings for FindDiverseCounterfactuals.

Member Data Documentation

◆ change_tolerance

float pulsatrix::DiverseCounterfactualOptions::change_tolerance = 1e-3f

◆ count

int pulsatrix::DiverseCounterfactualOptions::count = 4

How many counterfactuals to find together, >= 1.

◆ diversity_weight

float pulsatrix::DiverseCounterfactualOptions::diversity_weight = 1.0f

Weight of the diversity term (DiCE's diversity_weight).

◆ initial_spread

float pulsatrix::DiverseCounterfactualOptions::initial_spread = 0.5f

The counterfactuals start at the input plus uniform noise of this size, in scale units, so they can separate.

◆ learning_rate

float pulsatrix::DiverseCounterfactualOptions::learning_rate = 0.05f

◆ max_steps

int pulsatrix::DiverseCounterfactualOptions::max_steps = 2000

◆ proximity_weight

float pulsatrix::DiverseCounterfactualOptions::proximity_weight = 0.5f

Weight of the mean scaled L1 distance to the input (DiCE's proximity_weight).

◆ seed

uint64_t pulsatrix::DiverseCounterfactualOptions::seed = 0

The documentation for this struct was generated from the following file: