You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to do SpectralClustering with affinity given by nearest-neighbors but use manhattan metric for the nearest-neighbor task. (i.e. the argument metric in KNeighborsClassifier). But it's not clear from the documentation how to do this. It is possible to pass n_neighbors to SpectralClustering but not the metric. Then there is also the kernel_params argument but the documentation says "Parameters (keyword arguments) and values for kernel passed as callable object. Ignored by other kernels." So I would think passing kernel_params={"metric":"manhattan"} has no effect. If it does, the documentation should be corrected. If it does not, I think it should be supported in some way.
On 20 March 2017 at 02:38, Jáchym Barvínek ***@***.***> wrote:
I wanted to do SpectralClustering with affinity given by nearest-neighbors
but use manhattan metric for the nearest-neighbor task. (i.e. the argument
metric in KNeighborsClassifier). But it's not clear from the
documentation how to do this. It is possible to pass n_neighbors to
SpectralClustering but not the metric. Then there is also the
kernel_params argument but the documentation says "Parameters (keyword
arguments) and values for kernel passed as callable object. Ignored by
other kernels." So I would think passing kernel_params={"metric":"
manhattan"} has no effect. If it does, the documentation should be
corrected. If it does not, I think it should be supported in some way.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8611>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAEz69nDAcoCRAD8ubOFoNbUpe82tEEjks5rnUwAgaJpZM4MhxPL>
.
Activity
jnothman commentedon Mar 19, 2017
pranaydeeps commentedon Mar 23, 2017
I would like to work on this if no one else is? @jnothman
TomDLT commentedon Sep 18, 2019
It is now possible to give a neighbors graph to spectral clustering (see #10482)