FeatureSemantic
Defines the semantic interpretation of a single feature, including its anchor reference point and optional evaluation range.
Properties of FeatureSemantic
| Name | Type | Description |
| FeatureName | string | Defines the name of the feature used as a decision input. This represents a measurable dimension within the model (e.g., Price, Volume, SentimentScore) and is used for matching, proximity evaluation, and rule execution. |
| Increment | decimal? | Specifies the resolution or step size for the feature. When set, values are treated as discrete increments (e.g., bucketed or stepped). When null, the feature is treated as continuous and evaluated using natural numeric proximity. |
| Anchor | decimal? | Optional reference value used as the semantic anchor for the feature. The anchor establishes the contextual center point used in proximity or directional evaluation. If not specified, the anchor defaults to zero. |
| Weight | decimal | Specifies how much this feature influences the final decision score. Higher values increase its impact, while lower values reduce its contribution. Must be between 0 and 100. |
| Row_Filter | string | Specifies an optional filter expression used to determine which rows are included during processing. Only rows satisfying the filter condition are eligible. |
| GroupName | string | Defines an optional group name used to organize related semantics within the model. Semantics sharing the same group name belong to the same logical group. |
| Description | string | Provides an optional human-readable description of the semantic column, explaining its meaning, purpose, or intended use. |
| Include_In_Input | bool | Specifies whether this column participates in inference and contributes to the decision and confidence calculations. |
| Include_In_Output | bool | Specifies whether the value of this column from the selected decision row is returned as part of the inference result. |
| DistanceBehavior | enumDistanceBehavior | Controls how distance maps to score (closer vs farther). |
| DirectionBehavior | enumDirectionBehavior | Controls which side of the target is preferred. |
| DataType | enumZTDataType | Determines how column values are interpreted during inference. |
| Unit_of_Measure | string | Optional unit of measure associated with the column value. Used for descriptive and display purposes only; does not affect inference, calculations, or unit conversion. |
| Unit_Position | enumUnitPosition | Specifies whether the unit is displayed before (Prefix) or after (Suffix) the column value. Used for display purposes only; does not affect inference or calculations. |
| Min | decimal? | The minimum boundary of the feature range. When a value is assigned, the internal range automatically adjusts to maintain correct lower and upper bounds. |
| Max | decimal? | The maximum boundary of the feature range. When a value is assigned, the internal range automatically adjusts to maintain correct lower and upper bounds. |
Example
{
"InputSource": {
"LastPrice": 102.45,
"Volume": 1500000,
"VolatilityIndex": 22.8,
"MovingAverageSpread": 1.35
},
"ModelSource": {
"resultsets": {
"TradingRules": [
{
"ID": "TR-001",
"VolatilityIndex": ">= 20",
"MovingAverageSpread": ">= 1.0",
"Weight": 0.8,
"IsEnabled": true,
"Action": "Buy"
},
{
"ID": "TR-002",
"VolatilityIndex": "< 20",
"MovingAverageSpread": "< 0",
"Weight": 0.6,
"IsEnabled": true,
"Action": "Sell"
},
{
"ID": "TR-003",
"Weight": 0.2,
"IsEnabled": true,
"Action": "Hold"
}
]
}
},
"Options": {
"DataSettings": {
"ActionColumnName": "Action",
"PriorityColumnName": "VolatilityIndex",
"WeightColumnName": "Weight",
"DecisionIdColumnName": "ID",
"RowFilter": "IsEnabled = true",
"ModelName": "TradingDecisionModel"
},
"ContextOptions": {
"CustomTag": "Trade-Session-Alpha"
},
"ConfidencePolicy": {
"FitWeight": 1,
"SeparationWeight": 0.03
},
"OutputSettings": {
"ExecutionTraceMode": "Compact"
}
}
}