Skip to main content

default_splitter_kwargs

Generate default keyword arguments for the specified splitter type. Parameters: Raises: Returns:

CustomSplitter

Custom splitter.

Ancestors

  • vectorbtpro.generic.splitting.base.Splitter
  • vectorbtpro.generic.analyzable.Analyzable
  • vectorbtpro.base.wrapping.Wrapping
  • vectorbtpro.utils.config.Configured
  • vectorbtpro.utils.config.HasSettings
  • vectorbtpro.utils.caching.Cacheable
  • vectorbtpro.utils.checks.Comparable
  • vectorbtpro.utils.pickling.Pickleable
  • vectorbtpro.utils.formatting.Prettified
  • vectorbtpro.utils.chaining.Chainable
  • vectorbtpro.base.wrapping.HasWrapper
  • vectorbtpro.base.indexing.ExtPandasIndexer
  • vectorbtpro.base.indexing.PandasIndexer
  • vectorbtpro.base.indexing.IndexingBase
  • vectorbtpro.utils.params.ItemParamable
  • vectorbtpro.utils.params.Itemable
  • vectorbtpro.utils.params.Paramable
  • vectorbtpro.base.indexes.IndexApplier
  • vectorbtpro.utils.attr_.AttrResolverMixin
  • vectorbtpro.generic.stats_builder.StatsBuilderMixin
  • vectorbtpro.generic.plots_builder.PlotsBuilderMixin
  • vectorbtpro.utils.base.Base

Static methods

from_custom_rolling

Create a custom Splitter instance from a rolling range of fixed length. Superset Splitter.from_rolling by adding the first (if backwards is sorted) or last remaining split. Creates a rolling sequence of slices based on the provided index. The first slice uses a length defined by length, and each subsequent slice begins after an offset from the previous slice’s right boundary. Uses Splitter.from_splits to generate an array of splits and corresponding labels, and then construct the Splitter instance. See Splitter.from_rolling for further informations. Parameters: Raises: Returns:

from_custom_expanding

Create a Splitter instance from an expanding range. Creates an expanding sequence of slices based on the provided index. The first slice uses a minimum length defined by min_length, and each subsequent slice begins after an offset from the previous slice’s right boundary. Uses Splitter.from_expanding by adding the last remaining split. See Splitter.from_expanding for further informations. Parameters: Raises: Returns: