Package com.qtsurfer.api.client.model
Class ExecuteSweepResult
java.lang.Object
com.qtsurfer.api.client.model.ExecuteSweepResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.14.0")
public class ExecuteSweepResult
extends Object
ExecuteSweepResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGets or Sets objectivestatic enumGets or Sets orderstatic enumWhich ordering was actually applied, which is not always the one requested: a sweep with no stored parameter grid cannot be plateau-ranked and falls back to `raw`.static enumThe sweep's own status vocabulary — not the same set `state.status` below uses. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLeaderboardItem(SweepRunRow leaderboardItem) booleanReturn true if this ExecuteSweepResult object is equal to o.failReason(String failReason) Why the sweep produced less than it should have — the cause reported by the **first** shard to fail, not a list.Get leaderboardTotal result rows currently available.Get objectivegetOrder()Get ordergetPbo()Probability of backtest overfitting for the sweep as a whole, by combinatorially symmetric cross-validation: how often the configuration that won in-sample lands below median out-of-sample.How many train/test splits the `pbo` figure was averaged over.Get progressWhich ordering was actually applied, which is not always the one requested: a sweep with no stored parameter grid cannot be plateau-ranked and falls back to `raw`.getState()The same `JobState` shape a single-execute `BacktestJobResult` carries — not a sweep-specific lookalike, the actual type, so field names and timestamp formatting match exactly.The sweep's own status vocabulary — not the same set `state.status` below uses.Get sweepIdTrue only when the ranked view exceeds its display limit.Get walkForwardinthashCode()leaderboard(List<SweepRunRow> leaderboard) leaderboardSize(Integer leaderboardSize) objective(ExecuteSweepResult.ObjectiveEnum objective) progress(SweepProgress progress) ranking(ExecuteSweepResult.RankingEnum ranking) voidsetFailReason(String failReason) voidsetLeaderboard(List<SweepRunRow> leaderboard) voidsetLeaderboardSize(Integer leaderboardSize) voidsetObjective(ExecuteSweepResult.ObjectiveEnum objective) voidvoidvoidsetPboSplits(Integer pboSplits) voidsetProgress(SweepProgress progress) voidsetRanking(ExecuteSweepResult.RankingEnum ranking) voidvoidvoidsetSweepId(String sweepId) voidsetTruncated(Boolean truncated) voidsetWalkForward(WalkForwardResult walkForward) status(ExecuteSweepResult.StatusEnum status) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.walkForward(WalkForwardResult walkForward)
-
Field Details
-
JSON_PROPERTY_SWEEP_ID
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_OBJECTIVE
- See Also:
-
JSON_PROPERTY_ORDER
- See Also:
-
JSON_PROPERTY_RANKING
- See Also:
-
JSON_PROPERTY_PBO
- See Also:
-
JSON_PROPERTY_PBO_SPLITS
- See Also:
-
JSON_PROPERTY_FAIL_REASON
- See Also:
-
JSON_PROPERTY_PROGRESS
- See Also:
-
JSON_PROPERTY_LEADERBOARD_SIZE
- See Also:
-
JSON_PROPERTY_TRUNCATED
- See Also:
-
JSON_PROPERTY_LEADERBOARD
- See Also:
-
JSON_PROPERTY_WALK_FORWARD
- See Also:
-
JSON_PROPERTY_STATE
- See Also:
-
-
Constructor Details
-
ExecuteSweepResult
public ExecuteSweepResult()
-
-
Method Details
-
sweepId
-
getSweepId
Get sweepId- Returns:
- sweepId
-
setSweepId
-
status
-
getStatus
The sweep's own status vocabulary — not the same set `state.status` below uses. See `state` for why.- Returns:
- status
-
setStatus
-
objective
-
getObjective
Get objective- Returns:
- objective
-
setObjective
-
order
-
getOrder
Get order- Returns:
- order
-
setOrder
-
ranking
-
getRanking
Which ordering was actually applied, which is not always the one requested: a sweep with no stored parameter grid cannot be plateau-ranked and falls back to `raw`. Always `raw` when `order=natural`.- Returns:
- ranking
-
setRanking
-
pbo
-
getPbo
Probability of backtest overfitting for the sweep as a whole, by combinatorially symmetric cross-validation: how often the configuration that won in-sample lands below median out-of-sample. Above ~0.5 the sweep is selecting noise, whatever its top row says. Computed once when the last shard finishes, so it is absent while the sweep is still running and on sweeps too small for the statistic to mean anything. minimum: 0 maximum: 1- Returns:
- pbo
-
setPbo
-
pboSplits
-
getPboSplits
How many train/test splits the `pbo` figure was averaged over.- Returns:
- pboSplits
-
setPboSplits
-
failReason
-
getFailReason
Why the sweep produced less than it should have — the cause reported by the **first** shard to fail, not a list. It is what turns an inscrutable empty leaderboard into an answer: a sweep can come back `PARTIAL` with `done: 0` because the strategy could not be loaded at all, and without this the response says only that nothing finished. First failure wins and later ones are not recorded, so on a sweep where several shards failed for different reasons this names one of them rather than all. Absent when no shard reported a cause, which is the normal case for a healthy sweep — read it together with `progress.failedShards` rather than as a count of anything.- Returns:
- failReason
-
setFailReason
-
progress
-
getProgress
Get progress- Returns:
- progress
-
setProgress
-
leaderboardSize
-
getLeaderboardSize
Total result rows currently available.- Returns:
- leaderboardSize
-
setLeaderboardSize
-
truncated
-
getTruncated
True only when the ranked view exceeds its display limit.- Returns:
- truncated
-
setTruncated
-
leaderboard
-
addLeaderboardItem
-
getLeaderboard
Get leaderboard- Returns:
- leaderboard
-
setLeaderboard
-
walkForward
-
getWalkForward
Get walkForward- Returns:
- walkForward
-
setWalkForward
-
state
-
getState
The same `JobState` shape a single-execute `BacktestJobResult` carries — not a sweep-specific lookalike, the actual type, so field names and timestamp formatting match exactly. `state.status` uses `JobState`'s own vocabulary (`New`/`Started`/`Completed`/ `Aborted`/`Failed`), mapped from the sweep's `status` field above rather than copying it: `PARTIAL` and `CANCELLED` both map to `Aborted`, because a sweep's `PARTIAL` is already terminal (some shards finished, some failed, nothing more is coming) unlike a single job's non-terminal `Partial`, which has no equivalent here at all. `state.completed` is real ticks processed on a plain sweep. On a `walkForward` sweep it is currently always `0` — the walk-forward fold runner was not wired to count ticks when this shipped, unlike the plain shard path. `state.size` is an upfront estimate — range x the prepare's target cadence, set before any data is even loaded, not a query against loaded data — on a single execute and a plain sweep alike. A plain sweep's value is the sum of every shard's own `size` (each shard's per-run estimate x its own vector slice), the same additive shape `state.completed` already used above. `0` means the prepare context behind the job predates this field (a job whose prepare ran before the estimate existed) — never a guessed cadence standing in for a real one. On a `walkForward` sweep, `state.size` is still always `0`: fold runs were out of scope for the estimate the same way they are for `state.completed` above — a fold's `size` is simply never set, so the sum stays honest at `0` rather than needing a special case.- Returns:
- state
-
setState
-
equals
Return true if this ExecuteSweepResult object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-