<s> from abc import abstractmethod <EOL> from neupy . core . base import BaseSkeleton <EOL> from neupy . core . config import ConfigurableABC <EOL> __all__ = ( '<STR_LIT>' , ) <EOL> class BaseEnsemble ( BaseSkeleton , ConfigurableABC ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , networks ) : <EOL> self . networks = networks <EOL> if len ( self . networks ) < <NUM_LIT:2> : <EOL> raise ValueError ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> @ abstractmethod <EOL> def train ( self , input_data , target_data , * args , ** kwargs ) : <EOL> pass <EOL> @ abstractmethod <EOL> def predict ( self , input_data ) : <EOL> pass <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" . format ( <EOL> classname = self . __class__ . __name__ , <EOL> networks = '<STR_LIT>' . join ( map ( repr , self . networks ) ) <EOL> ) </s>
