lm_polygraph.stat_calculators.sample_visual module
- class lm_polygraph.stat_calculators.sample_visual.SamplingGenerationVisualCalculator(samples_n: int = 10)[source]
Bases:
StatCalculatorFor Whitebox model (lm_polygraph.VisualWhiteboxModel), at input texts batch calculates: * sampled texts * tokens of the sampled texts * probabilities of the sampled tokens generation