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

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

Public Functions Documentation

function EarlyStopping

cpp EarlyStopping()

function SetConfigParams

cpp 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

cpp void reset()

function update

cpp void update( int iteration, const ParticleSystem * p )

function ShouldStop

cpp bool ShouldStop() const

function SetControlShapes

cpp bool SetControlShapes( const ParticleSystem * p )

function GetTestShapes

cpp Eigen::MatrixXd GetTestShapes( const ParticleSystem * p )

Public Attributes Documentation

variable VDimension

cpp static constexpr static int VDimension = 3;


Updated on 2026-03-31 at 16:02:10 +0000