#NEWLINE# @ classmethod #NEWLINE# def from_serialized( cls , serialized ) : #NEWLINE# #INDENT# loaders = OrderedDict ( ) #NEWLINE# for ( m , ( dataset , conf ) ) in zip ( serialized [ 'modalities' ] , serialized [ 'loaders' ] ) : #NEWLINE# #INDENT# loaders [ m ] = cls . get_loader ( dataset , conf ) #NEWLINE# #UNINDENT# return cls ( loaders , serialized [ 'k' ] , serialized [ 'iter_train' ] , serialized [ 'iter_test' ] , coefs = serialized [ 'coefs' ] , shuffle_labels = serialized [ 'shuffle_labels' ] , run_mode = serialized [ 'run_mode' ] , debug = loaders [ 'debug' ] )