try a bunch of gamma values in spectral clustering and get the one that gives the best reconstruction error.
get.old.best(m, k, evec.transform)
m
k
evec.transform
Toby Dylan Hocking