bauer-alex / fuzzyclara

Other
0 stars 0 forks source link

clustering_clara throws error when called with self-defined metric function in a parallel call on Windows #23

Closed bauer-alex closed 6 months ago

bauer-alex commented 6 months ago

The clustering_clara function throws an error when a self-defined distance function is passed as metric argument. The error only occurs when the function is called with cores > 1 (i.e., in parallel mode) on Windows.

Probable mistake The metric object is simply not exported to the cluster workers on Windows.

Solution Add the metric object to the clusterExport function. Also do so for function clustering_clarans.