Perform random initialization of thetas if not provided.