def METHOD_NAME(self, **kwargs):
    """Returns a dictionary of parameters"""
    params = [
        "weight_ranks",
        "tol",
        "reg_W",
        "n_iter_max",
        "random_state",
        "verbose",
    ]
    return {param_name: getattr(self, param_name) for param_name in params}