Skip to content

shapeworks::EarlyStopping

Public Types

Name
typedef ParticleSystem::PointType PointType

Public Functions

Name
EarlyStopping()
void SetConfigParams(int frequency, int window_size, double threshold, EarlyStoppingStrategy strategy =EarlyStoppingStrategy::RelativeDifference, double ema_alpha =0.2, bool enable_logging =false, const std::string & logger_name ="", int warmup_iters =1000)
void reset()
void update(int iteration, const ParticleSystem * p)
bool ShouldStop() const
bool SetControlShapes(const ParticleSystem * p)
Eigen::MatrixXd GetTestShapes(const ParticleSystem * p)

Public Attributes

Name
constexpr static int VDimension

Public Types Documentation

typedef PointType

typedef ParticleSystem::PointType shapeworks::EarlyStopping::PointType;

Public Functions Documentation

function EarlyStopping

EarlyStopping()

function SetConfigParams

void SetConfigParams(
    int frequency,
    int window_size,
    double threshold,
    EarlyStoppingStrategy strategy =EarlyStoppingStrategy::RelativeDifference,
    double ema_alpha =0.2,
    bool enable_logging =false,
    const std::string & logger_name ="",
    int warmup_iters =1000
)

function reset

void reset()

function update

void update(
    int iteration,
    const ParticleSystem * p
)

function ShouldStop

bool ShouldStop() const

function SetControlShapes

bool SetControlShapes(
    const ParticleSystem * p
)

function GetTestShapes

Eigen::MatrixXd GetTestShapes(
    const ParticleSystem * p
)

Public Attributes Documentation

variable VDimension

static constexpr static int VDimension = 3;

Updated on 2025-10-13 at 18:47:49 +0000