verdict.py
def split_by_dict( self, d, return_list=False ):
        '''Break the smart dictionary into smaller smart dictionaries according
        to their label provided by a dictionary

        Args:
            d (dict):
                Dictionary to use to split into smaller dictionaries

            return_list (bool) :
                If True, return a list of arrays.
        '''

        results = {}

        for key, item in self.items():

            try:
                result_subkey = d[key]
                try:
                    results[result_subkey][key] = item
                except KeyError:
                    results[result_subkey] = Dict( {} )
                    results[result_subkey][key] = item
            except KeyError:
                try:
                    results['no label'][key] = item
                except KeyError:
                    results['no label'] = Dict( {} )
                    results['no label'][key] = item

        if not return_list:
            return results

        final_results = []
        for key, item in results.items():
            final_results.append( item.array() )

        return final_results
Break the smart dictionary into smaller smart dictionaries according
        to their label provided by a dictionary

        Args:
            d (dict):
                Dictionary to use to split into smaller dictionaries

            return_list (bool) :
                If True, return a list of arrays.
        
Break the smart dictionary into smaller smart dictionaries according
to their label provided by a dictionary
Break the smart dictionary into smaller smart dictionaries according to their label provided by a dictionary
def split_by_dict( self, d, return_list=False ):
        results = {}
        for key, item in self.items():
            try:
                result_subkey = d[key]
                try:
                    results[result_subkey][key] = item
                except KeyError:
                    results[result_subkey] = Dict( {} )
                    results[result_subkey][key] = item
            except KeyError:
                try:
                    results['no label'][key] = item
                except KeyError:
                    results['no label'] = Dict( {} )
                    results['no label'][key] = item
        if not return_list:
            return results
        final_results = []
        for key, item in results.items():
            final_results.append( item.array() )
        return final_results
def split_by_dict ( self , d , return_list = False ) : results = { } for key , item in self . items ( ) : try : result_subkey = d [ key ] try : results [ result_subkey ] [ key ] = item except KeyError : results [ result_subkey ] = Dict ( { } ) results [ result_subkey ] [ key ] = item except KeyError : try : results [ 'no label' ] [ key ] = item except KeyError : results [ 'no label' ] = Dict ( { } ) results [ 'no label' ] [ key ] = item if not return_list : return results final_results = [ ] for key , item in results . items ( ) : final_results . append ( item . array ( ) ) return final_results
Break the smart dictionary into smaller smart dictionaries according
to their label provided by a dictionary
Break the smart dictionary into smaller smart dictionaries according to their label provided by a dictionary
'''Break the smart dictionary into smaller smart dictionaries according
        to their label provided by a dictionary

        Args:
            d (dict):
                Dictionary to use to split into smaller dictionaries

            return_list (bool) :
                If True, return a list of arrays.
        '''
self
d
Dictionary to use to split into smaller dictionaries
Dictionary to use to split into smaller dictionaries
return_list
If True, return a list of arrays.
If True return a list of arrays .