Class WalkForwardRequest

java.lang.Object
com.qtsurfer.api.client.model.WalkForwardRequest

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.14.0") public class WalkForwardRequest extends Object
Opt in to walk-forward validation. Present, the sweep runs as F sequential folds and the result gains a `walkForward` section; absent, nothing about the sweep changes. Two requests that differ only in this block are two different sweeps and do not deduplicate against each other.
  • Field Details

  • Constructor Details

    • WalkForwardRequest

      public WalkForwardRequest()
  • Method Details

    • folds

      public WalkForwardRequest folds(@Nonnull Integer folds)
    • getFolds

      @Nonnull public Integer getFolds()
      How many sequential optimize-then-score windows to run. Two is the minimum for a reason, and it is structural rather than a tuning choice: parameter drift is measured between consecutive fold winners, and a single fold — one train/test split with no sequence — has no consecutive pair to compare, so it would report the strongest possible stability having measured nothing. The upper bound is a server setting (12 by default) and is deliberately not pinned here, since a spec that hardcodes a tunable limit lies the day it is raised. Exceeding it, or exceeding the sweep budget once multiplied by the grid size, is a 400. minimum: 2
      Returns:
      folds
    • setFolds

      public void setFolds(@Nonnull Integer folds)
    • inSamplePct

      public WalkForwardRequest inSamplePct(@Nullable Integer inSamplePct)
    • getInSamplePct

      @Nullable public Integer getInSamplePct()
      Share of the session each fold spends optimizing; the remainder is where its winner is scored. Lower values leave more data to be scored on and, on short sessions, are also what lets the requested fold count tile the data at all. minimum: 10 maximum: 90
      Returns:
      inSamplePct
    • setInSamplePct

      public void setInSamplePct(@Nullable Integer inSamplePct)
    • equals

      public boolean equals(Object o)
      Return true if this WalkForwardRequest object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string