PineForge HPO 1.11.0
Native hyperparameter optimization for PineForge strategies
Loading...
Searching...
No Matches
pineforge::hpo::SelectedEvaluation Class Referencefinal

Dedicated one-shot OOS execution on a fresh handle using full report mode. More...

#include <pineforge/hpo/selected_evaluation.hpp>

Static Public Member Functions

static SelectedEvaluationResult evaluate (const StrategyPlugin &plugin, const pf_bar_t *bars, std::size_t count, std::int64_t start_ms, std::int64_t end_ms, const SelectedExpectedCounts &expected, const ParameterValues &inputs, const ParameterValues &strategy_overrides={}, const BacktestConfiguration &configuration={}, const std::optional< std::string > &expected_manifest_version=std::nullopt)
 Runs exactly once using already-planned bounds, retained rows and expected counts.
 

Detailed Description

Dedicated one-shot OOS execution on a fresh handle using full report mode.

The worker must have at most one selected evaluation in flight. The input pointer is borrowed immutable retained OHLCV; its owner must outlive evaluate(). The returned report uses O(window bars + trades) memory. Stream its window row, trades and equity to the caller's sink, then release it before the next evaluation. This helper retains nothing between calls.

Definition at line 49 of file selected_evaluation.hpp.

Member Function Documentation

◆ evaluate()

static SelectedEvaluationResult pineforge::hpo::SelectedEvaluation::evaluate ( const StrategyPlugin &  plugin,
const pf_bar_t *  bars,
std::size_t  count,
std::int64_t  start_ms,
std::int64_t  end_ms,
const SelectedExpectedCounts &  expected,
const ParameterValues &  inputs,
const ParameterValues &  strategy_overrides = {},
const BacktestConfiguration &  configuration = {},
const std::optional< std::string > &  expected_manifest_version = std::nullopt 
)
static

Runs exactly once using already-planned bounds, retained rows and expected counts.

Settings use the ordinary trial setter sequence. The optional manifest version is checked against embedded metadata before handle creation. Capture flags are forced on; optional return-statistics reductions are supported with the same identity checks as ordinary trials. No objective is scored here; only a successfully checked snapshot is returned.

Exceptions
HpoErrorfor unavailable capabilities, engine failures or contract violations.

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