Table of Contents

Method GetTokenCandidateProbabilityByRank

Namespace
LMKit.TextGeneration.Events
Assembly
LM-Kit.NET.dll

GetTokenCandidateProbabilityByRank(int)

Retrieves the probability value of a token based on its rank in terms of likelihood of occurrence.

public float GetTokenCandidateProbabilityByRank(int rankIndex)

Parameters

rankIndex int

The rank position of the token for which the identifier is sought.
This must be an integer within the inclusive range of 0 and the upper limit of (Model.VocabCount - 1).

Returns

float

The identifier of the token at the specified rank.

Exceptions

ArgumentOutOfRangeException