nussl/core/migration.py
def _load_eval(self, eval_dict):
        """Helper function to load eval dictionary safely."""
        if self.eval.lower() == 'bssevalv4':
            keys = BSSEvalV4.keys
        else:
            keys = BSSEvalScale.keys

        stats_keys = ['mean', 'median', 'std']

        result = {}
        for k in keys:
            if k not in eval_dict:
                stats = {s: 'UNAVAILABLE' for s in stats_keys}
            else:
                stats = {}
                for s in stats_keys:
                    if s in eval_dict[k]:
                        stats[s] = eval_dict[k][s]
                    else:
                        stats[s] = 'UNAVAILABLE'
            result[k] = stats
        return result
Helper function to load eval dictionary safely.
Helper function to load eval dictionary safely.
Helper function to load eval dictionary safely .
def _load_eval(self, eval_dict):
        if self.eval.lower() == 'bssevalv4':
            keys = BSSEvalV4.keys
        else:
            keys = BSSEvalScale.keys
        stats_keys = ['mean', 'median', 'std']
        result = {}
        for k in keys:
            if k not in eval_dict:
                stats = {s: 'UNAVAILABLE' for s in stats_keys}
            else:
                stats = {}
                for s in stats_keys:
                    if s in eval_dict[k]:
                        stats[s] = eval_dict[k][s]
                    else:
                        stats[s] = 'UNAVAILABLE'
            result[k] = stats
        return result
def _load_eval ( self , eval_dict ) : if self . eval . lower ( ) == 'bssevalv4' : keys = BSSEvalV4 . keys else : keys = BSSEvalScale . keys stats_keys = [ 'mean' , 'median' , 'std' ] result = { } for k in keys : if k not in eval_dict : stats = { s : 'UNAVAILABLE' for s in stats_keys } else : stats = { } for s in stats_keys : if s in eval_dict [ k ] : stats [ s ] = eval_dict [ k ] [ s ] else : stats [ s ] = 'UNAVAILABLE' result [ k ] = stats return result
Helper function to load eval dictionary safely.
Helper function to load eval dictionary safely .
"""Helper function to load eval dictionary safely."""
self
eval_dict