if (self.model_name[:16] == "GradientBoosting" or self.model_name[:12] == "DeepLearning" or self.model_name in ["BayesianRidge", "LassoLars", "OrthogonalMatchingPursuit", "ARDRegression"]) and scipy.sparse.issparse(X):
X_predict = X.todense()
elif self.model_name[:8] == "CatBoost" and scipy.sparse.issparse(X):
X_predict = X.toarray()
else:
X_predict = X