toraniko-traits

Crates.iotoraniko-traits
lib.rstoraniko-traits
version0.2.0
created_at2025-12-22 15:22:44.499875+00
updated_at2025-12-25 15:46:36.273458+00
descriptionTrait abstractions for the toraniko factor model
homepagehttps://github.com/factordynamics/toraniko-rs
repositoryhttps://github.com/factordynamics/toraniko-rs
max_upload_size
id1999868
size58,581
refcell (refcell)

documentation

README

toraniko-traits

Trait abstractions for the toraniko factor model.

Traits

Re-exported from factors crate

The following core types are re-exported from the factors crate for convenience:

  • Factor - Core factor trait for computing factor scores
  • FactorCategory - Enum categorizing factors (Style, Sector, Market, etc.)
  • ConfigurableFactor - Trait for factors with configurable parameters
  • FactorError - Error types for factor operations
  • DataFrequency - Enum for data frequency (Daily, Weekly, Monthly)

Toraniko-specific Traits

  • Factor Traits: FactorKind, StyleFactor, SectorFactor
  • Transform Traits: CrossSectionTransform, TimeSeriesTransform
  • Estimator Traits: FactorEstimator, ReturnsEstimator

Design

This crate defines the core abstractions that allow pluggable implementations of factors, transformations, and estimators. Core factor types like Factor, FactorCategory, and ConfigurableFactor are re-exported from the factors crate, which provides the canonical factor registry and implementations.

The toraniko-specific traits (FactorKind, StyleFactor, SectorFactor) extend the base Factor trait with additional functionality specific to the toraniko factor model architecture.

Usage

// Re-exported from factors crate
use toraniko_traits::{Factor, FactorCategory, ConfigurableFactor};

// Toraniko-specific types
use toraniko_traits::{FactorKind, StyleFactor, SectorFactor};
Commit count: 0

cargo fmt