tensorflow / tfjs

A WebGL accelerated JavaScript library for training and deploying ML models.
https://js.tensorflow.org
Apache License 2.0
18.37k stars 1.92k forks source link

kMeans in tfjs #574

Closed Firenze11 closed 1 year ago

Firenze11 commented 6 years ago

I'm thinking about contributing some k-Means algorithm code I've written in tfjs. Since there are no existing clustering models in tfjs, I guess it could be helpful for users who don't want to write from scratch. Need some pointers about where this piece of code should live.

caisq commented 6 years ago

cc @dsmilkov @nsthorat I think having an implementation of the k-means clustering algorithms in tfjs will be nice and useful. I think the best place for it to live is probably the https://github.com/tensorflow/tfjs-models repo. The organization can be similar to the knn-classifier.

@Firenze11 thanks for the proposal. Are you thinking of an API similar to this? https://www.tensorflow.org/api_docs/python/tf/contrib/factorization/KMeansClustering

dsmilkov commented 6 years ago

+1. That would be very useful. You have my full support!

rthadur commented 5 years ago

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

nsthorat commented 5 years ago

Re-opening this since it's still a good idea :)

Firenze11 commented 4 years ago

Sent a pull request to tfjs-models repo: https://github.com/tensorflow/tfjs-models/pull/407

gaikwadrahul8 commented 1 year ago

Hi, @Firenze11

Apologize for the delayed response and I see we have updated our official documentation w.r.t KNN Classifier in TFJs so you can refer our official documentation here and you will find source code for KNN Classifier here if I'm not wrong you were looking the same and we implemented

If have I missed something here please let me know ? if this feature request we implemented then please feel free to close this issue ? Thank you!

google-ml-butler[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you.

google-ml-butler[bot] commented 1 year ago

Closing as stale. Please @mention us if this needs more attention.