public static BaseEstimator Clone(BaseEstimator estimator, bool safe = true)
 {
     return((BaseEstimator)estimator.MemberwiseClone());
 }
 public static bool IsRegressor(BaseEstimator estimator)
 {
     return(estimator._estimator_type == "regressor");
 }
 public static bool IsOutlierDetector(BaseEstimator estimator)
 {
     return(estimator._estimator_type == "outlier_detector");
 }
 public static bool IsClassifier(BaseEstimator estimator)
 {
     return(estimator._estimator_type == "classifier");
 }