@custom_model
def model(x, beta=init[0], kappa=init[1]):
    return np.log((kappa * (np.exp(x) ** beta)))
@custom_model
def model(x, beta=init[0], kappa=init[1]):
    return np.log((kappa * (np.exp(x) ** beta)))