(impl: Any)
return cp
This is a deprecated method for backward compatibility and will be removed soon.
    call lale.operators.clone (or scikit-learn clone) instead
This is a deprecated method for backward compatibility and will be removed soon.
    call lale.operators.clone (or scikit-learn clone) instead
This is a deprecated method for backward compatibility and will be removed soon . call lale . operators . clone ( or scikit - learn clone ) instead
def sklearn_compat_clone(impl: Any) -> Any:
    """This is a deprecated method for backward compatibility and will be removed soon.
    call lale.operators.clone (or scikit-learn clone) instead"""
    warnings.warn(
        "sklearn_compat.sklearn_compat_clone exists for backwards compatibility and will be removed soon",
        DeprecationWarning,
    )
    if impl is None:
        return None

    from sklearn.base import clone

    cp = clone(impl, safe=False)
    return cp
def sklearn_compat_clone ( impl : Any ) -> Any : warnings . warn ( "sklearn_compat.sklearn_compat_clone exists for backwards compatibility and will be removed soon" , DeprecationWarning , ) if impl is None : return None from sklearn . base import clone cp = clone ( impl , safe = False ) return cp