def _init_lsr(n_items, alpha, initial_params):
if initial_params is None:<EOL><INDENT>weights = np.ones(n_items)<EOL><DEDENT>else:<EOL><INDENT>weights = exp_transform(initial_params)<EOL><DEDENT>chain = alpha * np.ones((n_items, n_items), dtype=float)<EOL>return weights, chain<EOL>
Initialize the LSR Markov chain and the weights.