| Crates.io | toraniko-traits |
| lib.rs | toraniko-traits |
| version | 0.2.0 |
| created_at | 2025-12-22 15:22:44.499875+00 |
| updated_at | 2025-12-25 15:46:36.273458+00 |
| description | Trait abstractions for the toraniko factor model |
| homepage | https://github.com/factordynamics/toraniko-rs |
| repository | https://github.com/factordynamics/toraniko-rs |
| max_upload_size | |
| id | 1999868 |
| size | 58,581 |
Trait abstractions for the toraniko factor model.
factors crateThe following core types are re-exported from the factors crate for convenience:
Factor - Core factor trait for computing factor scoresFactorCategory - Enum categorizing factors (Style, Sector, Market, etc.)ConfigurableFactor - Trait for factors with configurable parametersFactorError - Error types for factor operationsDataFrequency - Enum for data frequency (Daily, Weekly, Monthly)FactorKind, StyleFactor, SectorFactorCrossSectionTransform, TimeSeriesTransformFactorEstimator, ReturnsEstimatorThis 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.
// Re-exported from factors crate
use toraniko_traits::{Factor, FactorCategory, ConfigurableFactor};
// Toraniko-specific types
use toraniko_traits::{FactorKind, StyleFactor, SectorFactor};