cascade.core.DiscoverScheduler
- class cascade.core.DiscoverScheduler(monitor, constraint, patience, tolerance=None, lam=None, alpha=None, gamma=None, **kwargs)[source]
Bases:
EarlyStoppingHyperparameter scheduler for causal discovery
- Parameters:
monitor (
str) – Loss to be monitoredconstraint (
str) – Loss that specifies the constraintpatience (
int) – Number of checks with no improvement after which training will be stoppedtolerance (
float) – Maximal tolerance of constraint violation to end the schedulerlam (
float) – Sparse penalty rate (\(\eta_\lambda\) in paper)alpha (
float) – Acyclic penalty rate (\(\eta_\alpha\) in paper)gamma (
float) – Kernel gradient rate (\(\eta_\gamma\))**kwargs – Additional keyword arguments are passed to
EarlyStopping
Methods
Main logic of the scheduler
Attributes
infstate_key