def __subclasshook__(cls, C): if cls is PredictorInterface: return check_methods(C, "predict", "update") return NotImplemented
def __subclasshook__(cls, C): if cls is MapperInterface: return check_methods(C, "map") return NotImplemented
def __subclasshook__(cls, C): if cls is ArrayInterface: return check_methods(C, "array") return NotImplemented
def __subclasshook__(cls, C): if cls is EncoderInterface: return check_methods(C, "encode", "decode") return NotImplemented
def __subclasshook__(cls, C): if cls is SubtractorInterface: return check_methods(C, "subtract") return NotImplemented
def __subclasshook__(cls, C): if cls is SequencerInterface: return check_methods(C, "flatten") return NotImplemented