public static ConsistentClassificationModel Create(RuleSet rules, ILabel defaultPrediction, IRuleConsistencyChecker consistencyChecker)
        {
            if (!consistencyChecker.AreConsistent(rules.AsSpan()))
            {
                throw new ArgumentException(nameof(rules) + " must be consistent.");
            }

            return(new ConsistentClassificationModel(rules, defaultPrediction));
        }