PineForge HPO 1.11.0
Native hyperparameter optimization for PineForge strategies
Loading...
Searching...
No Matches
pineforge_hpo.pbo.MomentTable Class Reference

Public Member Functions

None __post_init__ (self)
 

Static Public Attributes

int S
 
tuple trial_ids [Any, ...]
 
tuple counts [int, ...]
 
tuple sums [tuple[float, ...], ...]
 
tuple m2 [tuple[float, ...], ...]
 
str return_blocks_json
 
str input_sha256 = field(init=False)
 

Detailed Description

A validated N x S table of block moments; rows ascend by trial id.

``counts`` is common to every row and equals ``n_b`` of the declared object. ``sums[i][b]``
and ``m2[i][b]`` belong to trial ``trial_ids[i]`` and block ``b``. ``return_blocks_json`` is
the text of the declared object that every part declared.

The table checks itself whenever it is built, whoever builds it: at least 2 trials, unique
ascending ids of one type, arrays of the right lengths, counts equal to ``n_b``, finite
moments, and the declared object itself (including the half-size rule). ``input_sha256`` is
not an argument: it is computed from the content, so it cannot disagree with it. A refusal is
a ``PboError``.

Definition at line 218 of file pbo.py.

Member Function Documentation

◆ __post_init__()

Member Data Documentation

◆ counts

tuple pineforge_hpo.pbo.MomentTable.counts [int, ...]
static

Definition at line 234 of file pbo.py.

Referenced by pineforge_hpo.pbo.MomentTable.__post_init__().

◆ input_sha256

str pineforge_hpo.pbo.MomentTable.input_sha256 = field(init=False)
static

Definition at line 238 of file pbo.py.

◆ m2

tuple pineforge_hpo.pbo.MomentTable.m2 [tuple[float, ...], ...]
static

Definition at line 236 of file pbo.py.

Referenced by pineforge_hpo.pbo.MomentTable.__post_init__().

◆ return_blocks_json

str pineforge_hpo.pbo.MomentTable.return_blocks_json
static

Definition at line 237 of file pbo.py.

Referenced by pineforge_hpo.pbo.MomentTable.__post_init__().

◆ S

int pineforge_hpo.pbo.MomentTable.S
static

Definition at line 232 of file pbo.py.

Referenced by pineforge_hpo.pbo.MomentTable.__post_init__().

◆ sums

tuple pineforge_hpo.pbo.MomentTable.sums [tuple[float, ...], ...]
static

Definition at line 235 of file pbo.py.

Referenced by pineforge_hpo.pbo.MomentTable.__post_init__().

◆ trial_ids

tuple pineforge_hpo.pbo.MomentTable.trial_ids [Any, ...]
static

Definition at line 233 of file pbo.py.

Referenced by pineforge_hpo.pbo.MomentTable.__post_init__().


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