Prediction<T>
Structs · AiDotNet.Finance.Trading.Factors
The model’s four outputs for one cross-section.
Inheritance: ValueType → Prediction<T>
Implements: IEquatable<Prediction<T>>
How It Works
Four, not two. The reference applies BOTH heads to BOTH representations and supervises all four, which is why the loss has four terms.
Constructors
| Constructor | Summary |
|---|---|
Prediction(Vector<T> Returns, Vector<T> LowReturns, Vector<T> DirectionLogits, Vector<T> LowDirectionLogits) |
The model’s four outputs for one cross-section. |
Properties
| Property | Summary |
|---|---|
Vector<T> DirectionLogits { get; set; } |
Direction logits, [stocks * classes], fused. |
Vector<T> LowDirectionLogits { get; set; } |
Direction logits, low-frequency. |
Vector<T> LowReturns { get; set; } |
Predicted return per stock, from the low-frequency representation. |
Vector<T> Returns { get; set; } |
Predicted return per stock, from the fused representation. |
Methods
| Method | Summary |
|---|---|
bool Equals(Prediction<T> other) |
|
bool Equals(object obj) |
|
bool op_Equality(Prediction<T> left, Prediction<T> right) |
|
bool op_Inequality(Prediction<T> left, Prediction<T> right) |
|
int GetHashCode() |
|
string ToString() |
|
void Deconstruct(Vector<T> Returns, Vector<T> LowReturns, Vector<T> DirectionLogits, Vector<T> LowDirectionLogits) |