ytm.tm.config.TMConfig#

class ytm.tm.config.TMConfig#

Bases: BaseTMConfig

Settings for the discrete TM models. Also takes every parameter of BaseTMConfig.

T: float | tuple[float, float]#

Vote threshold. A float T clips class sums to [-T, T]. A tuple gives [T_min, T_max].

q: float = 1.0#

Negative class sampling rate. With more than one class, each non-target class gets feedback with probability q / (n_classes - 1). The target class always gets feedback.

weight_init: int = 1#

Initial clause weight magnitude, a positive int.