Skip to content

Instantly share code, notes, and snippets.

@gkousiouris
gkousiouris / README.md
Last active May 31, 2023 10:22 — forked from vasKatevas/README.md
K-means clustering flow

Test extension

This is a flow that implements a k-means clustering operation as a service. As such it can be executed inside any Node-RED environment in a service manner. It also implements the Openwhisk API specification so that it can be executed directly as a custom docker action of Openwhisk. The inputs include arrays of objects and their values and the output returns clusters with three centroids for any given input, using the k-means implementation provided by the clusters npm library. clustering_flow

Example Input:

{
   "mode": "multiple",