August 2018
Beginner
334 pages
10h 19m
English
We need to make some adjustments prior to implementing the hierarchical N-Gram predictor.
Add the following member function to the NGramPredictor class:
public int GetActionsNum(ref T[] actions)
{
string key = ArrToStrKey(ref actions);
if (!data.ContainsKey(key))
return 0;
return data[key].total;
}
Read now
Unlock full access