(op: CloneOpType, name: str = None)
return nop
Clone any operator.
Clone any operator.
Clone any operator .
def clone_op(op: CloneOpType, name: str = None) -> CloneOpType:
    """Clone any operator."""
    from sklearn.base import clone

    nop = clone(op)
    if name:
        nop._set_name(name)
    return nop
def clone_op ( op : CloneOpType , name : str = None ) -> CloneOpType : from sklearn . base import clone nop = clone ( op ) if name : nop . _set_name ( name ) return nop