def _amplify(ui_mat, alpha=1.0):
    """Exponentially amplify values of similarity matrix"""
    if alpha == 1.0:
        return ui_mat
    for i, w in enumerate(ui_mat.data):
        ui_mat.data[i] = w ** alpha if w > 0 else -(-w) ** alpha
    return ui_mat
