diff --git a/ravenframework/SupervisedLearning/FeatureSelection/utils.py b/ravenframework/SupervisedLearning/FeatureSelection/utils.py index 714b8d24ef..7abcba65d9 100644 --- a/ravenframework/SupervisedLearning/FeatureSelection/utils.py +++ b/ravenframework/SupervisedLearning/FeatureSelection/utils.py @@ -64,8 +64,8 @@ def screenAndTrainEstimator(Xreduced, yreduced, estimator, support, params, incl @ In, addOnKeys, list, optional, list of additional keys to remove @ Out, None """ - assert (not issubclass(estimator.__class__, SupervisedLearning.SupervisedLearning), - f"estimator class str(estimator.__class__) is not a SupervisedLearning derived class") + assert issubclass(estimator.__class__, SupervisedLearning.SupervisedLearning), \ + f"estimator class str(estimator.__class__) is not a SupervisedLearning derived class" vals = screenInputParams(support, params, includedParams, addOnKeys = addOnKeys) if vals: estimator.paramInput.findNodesAndSetValues(vals)