def METHOD_NAME(orig_weights):
    mapping = {}
    # regression
    weights = {k: v for k, v in orig_weights.items() if "BoxPredictor" in k}
    weights = {k: v for k, v in weights.items() if "BoxEncodingPredictor" in k}
    matcher = re.compile("BoxPredictor_(\d+)")
    for k in weights.keys():
        pos = matcher.match(k).group(1)
        wtype = "weight" if "weights" in k else "bias"
        mapping[k] = "predictors.{}.regression.{}".format(pos, wtype)
    # classification
    weights = {k: v for k, v in orig_weights.items() if "BoxPredictor" in k}
    weights = {k: v for k, v in weights.items() if "ClassPredictor" in k}
    for k in weights.keys():
        pos = matcher.match(k).group(1)
        wtype = "weight" if "weights" in k else "bias"
        mapping[k] = "predictors.{}.classification.{}".format(pos, wtype)
    return mapping