|
io-chess
UCI chess engine
|
Functions | |
| int | collapse_top2_if_dominant (float &top1Weight, float &top2Weight, float dominantExpertCutoff=0.8f) |
| Collapses the top 2 experts into a single expert if the top one is highly dominant. | |
| void | route_top2_base_experts (const FactorizedInput &inp, int &e0, int &e1, float &w0, float &w1) |
| Identifies the top 2 base experts for a given factorized input. | |
|
inline |
Collapses the top 2 experts into a single expert if the top one is highly dominant.
| top1Weight | Weight of the highest ranked expert (modified in place). |
| top2Weight | Weight of the second highest ranked expert (modified in place). |
| dominantExpertCutoff | Threshold weight above which the second expert is dropped. |

|
inline |
Identifies the top 2 base experts for a given factorized input.
| inp | The factorized input features. |
| e0 | Output index of the primary expert. |
| e1 | Output index of the secondary expert. |
| w0 | Output normalized weight for the primary expert. |
| w1 | Output normalized weight for the secondary expert. |

