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

FindAnchor's settings. The defaults are the reference implementation's, except a beam of 2 and epsilon_stop. More...

#include <anchors.hpp>

Public Attributes

double precision_threshold = 0.95
 The precision an anchor must reach (the paper's τ).
 
double delta = 0.1
 The confidence bounds hold with probability 1 - delta.
 
double epsilon = 0.15
 KL-LUCB stops when the best candidates are separated from the rest to within this.
 
double epsilon_stop = 0.0
 An anchor is accepted when its precision is at least the threshold and its lower bound above threshold - epsilon_stop.
 
int64_t beam_size = 2
 Candidates kept at each anchor size.
 
int64_t batch_size = 100
 Samples drawn at a time for a candidate.
 
int64_t max_samples_per_candidate = 10000
 The most samples drawn for one candidate.
 
int64_t max_anchor_size = 0
 The most predicates in an anchor, counting both sides of an interval; 0 for no limit.
 
std::vector< double > percentiles = {25.0, 50.0, 75.0}
 Where the features are cut, in percent of the background.
 
uint64_t seed = 0
 

Detailed Description

FindAnchor's settings. The defaults are the reference implementation's, except a beam of 2 and epsilon_stop.

Member Data Documentation

◆ batch_size

int64_t pulsatrix::AnchorOptions::batch_size = 100

Samples drawn at a time for a candidate.

◆ beam_size

int64_t pulsatrix::AnchorOptions::beam_size = 2

Candidates kept at each anchor size.

◆ delta

double pulsatrix::AnchorOptions::delta = 0.1

The confidence bounds hold with probability 1 - delta.

◆ epsilon

double pulsatrix::AnchorOptions::epsilon = 0.15

KL-LUCB stops when the best candidates are separated from the rest to within this.

◆ epsilon_stop

double pulsatrix::AnchorOptions::epsilon_stop = 0.0

An anchor is accepted when its precision is at least the threshold and its lower bound above threshold - epsilon_stop.

Note
The reference implementation uses 0.05, which accepts anchors whose true precision is below the threshold: on a model where one predicate has true precision 0.925, 22 of 50 seeds returned an anchor below 0.95 (that predicate plus an irrelevant one, lifted over the threshold by sampling noise). With 0, none did, for about 2.5 times the model calls.

◆ max_anchor_size

int64_t pulsatrix::AnchorOptions::max_anchor_size = 0

The most predicates in an anchor, counting both sides of an interval; 0 for no limit.

◆ max_samples_per_candidate

int64_t pulsatrix::AnchorOptions::max_samples_per_candidate = 10000

The most samples drawn for one candidate.

◆ percentiles

std::vector<double> pulsatrix::AnchorOptions::percentiles = {25.0, 50.0, 75.0}

Where the features are cut, in percent of the background.

◆ precision_threshold

double pulsatrix::AnchorOptions::precision_threshold = 0.95

The precision an anchor must reach (the paper's τ).

◆ seed

uint64_t pulsatrix::AnchorOptions::seed = 0

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