Skip to content

sam::PeekingOutliersRemoval

Module: Hacking Strategies

More...

#include <HackingStrategy.h>

Inherits from sam::HackingStrategy

Public Classes

Name
struct Parameters

Public Functions

Name
PeekingOutliersRemoval() =default
PeekingOutliersRemoval(const Parameters & p)
virtual void perform(Experiment * experiment) override
Applies the hacking method on the Experiment.

Public Attributes

Name
Parameters params
PolicyChain stopping_condition
PolicyChain whether_to_save_condition

Additional inherited members

Public Functions inherited from sam::HackingStrategy

Name
virtual ~HackingStrategy() =0
Pure destructor of the Base class. This is important for proper deconstruction of Derived classes.
HackingStrategy()
void operator()(Experiment * experiment)
float defensibility() const
float prevalence() const
HackingStage stage() const
HackingTarget target() const
std::unique_ptr< HackingStrategy > build(json & hacking_strategy_config)
Factory method for building a HackingStrategy.

Public Attributes inherited from sam::HackingStrategy

Name
sol::state lua
std::optional< float > defensibility_
std::optional< float > prevalence_
HackingStage stage_
HackingTarget target_

Detailed Description

class sam::PeekingOutliersRemoval;

PeekingOutliersRemoval Hacking Strategy

Public Functions Documentation

function PeekingOutliersRemoval

PeekingOutliersRemoval() =default

function PeekingOutliersRemoval

inline explicit PeekingOutliersRemoval(
    const Parameters & p
)

function perform

virtual void perform(
    Experiment * experiment
) override

Applies the hacking method on the Experiment.

Parameters:

Reimplements: sam::HackingStrategy::perform

Removing outliers n at a time, for the total of n_attempts It'll stop either when n_attempts are exhausted, or there is no more observations left to be removed

Public Attributes Documentation

variable params

Parameters params;

variable stopping_condition

PolicyChain stopping_condition;

variable whether_to_save_condition

PolicyChain whether_to_save_condition;

Updated on 29 June 2021 at 16:13:47 CEST


Last update: 2021-09-18