Method Record
- Namespace
- IntentSharp.Trials
- Assembly
- IntentSharp.dll
Record(IntentTrial, TrialSample)
For a runner: records how a sampled call compared. trial is the one TryBeginSample(DocumentId, out IntentTrial?)
returned; a sample of a trial that has stopped since, or was started again, is dropped. With a document store, the
sample is added to the counts in its state after this returns.
public void Record(IntentTrial trial, TrialSample sample)
Parameters
trialIntentTrialThe trial TryBeginSample(DocumentId, out IntentTrial?) returned for the call.
sampleTrialSampleThe outcome, and the tokens the candidate used.
Exceptions
- ArgumentNullException
trialorsampleis null.