struct gpr::GaussianProcessRegression::LengthScaleTies

Overview

Tied length scales. More…

#include <gpr/ml/GaussianProcessRegression.h>
 
struct LengthScaleTies {
    // fields
 
    std::vector<Index_t> parent;
    std::vector<Index_t> leader;
    std::vector<bool> released;
    std::vector<double> evidence;
    Index_t base_count = 0;
    bool valid = false;
 
    // methods
 
    Index_t count() const;
    bool operator==(const LengthScaleTies&) const;
};

Detailed Documentation

Tied length scales. Pair types that refine a base type (environment sub-types of the element-and-role types) share the base type’s length scale until likelihood evidence releases them. The quadratic gain screens a trial fit; accumulated realized gains must pay the Occam cost of one parameter, half the log of the row count. Accepted releases retain their independent scale within the pair-type layout.

Fields

std::vector<Index_t> parent

fine pair type -> base pair type

std::vector<Index_t> leader

fine pair type -> leading member

std::vector<bool> released

carries its own length scale

std::vector<double> evidence

Accumulated release evidence per fine type: Page’s cumulative sum of the realized likelihood gains of a trial release less the Occam cost, floored at zero. A type is released when the sum reaches one Occam cost.