repair enComponent for BayesianNetwork and KMeansClassifier