def run_riemannian_relaxation(laplacian, initial_guess,<EOL>intrinsic_dim, relaxation_kwds):
n, s = initial_guess.shape<EOL>relaxation_kwds = initialize_kwds(relaxation_kwds, n, s, intrinsic_dim)<EOL>if relaxation_kwds['<STR_LIT>']:<EOL><INDENT>directory = relaxation_kwds['<STR_LIT>']<EOL>np.save(os.path.join(directory, '<STR_LIT>'),initial_guess)<EOL>sp.io.mmwrite(os.path.join(directory, '<STR_LIT>'),<EOL>sp.sparse.csc_matrix(laplacian))<EOL><DEDENT>lossf = relaxation_kwds['<STR_LIT>']<EOL>return RiemannianRelaxation.init(lossf, laplacian, initial_guess,<EOL>intrinsic_dim, relaxation_kwds)<EOL>
Helper function for creating a RiemannianRelaxation class.