Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 4e82403

Browse files
committed
docs: model: scikit: Update Prediction to cluster
Signed-off-by: John Andersen <[email protected]>
1 parent 47d0c9b commit 4e82403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/plugins/dffml_model.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ Example usage of KMeans Clustering Model using python API:
882882
model,
883883
{"Col1": 6.09809669, "Col2": 8.36434181, "Col3": 6.70940915, "Col4": -7.91491768},
884884
):
885-
features["cluster"] = prediction["Prediction"]["value"]
885+
features["cluster"] = prediction["cluster"]["value"]
886886
print(features)
887887
888888
**NOTE**: `Transductive <https://scikit-learn.org/stable/glossary.html#term-transductive/>`_ Clusterers(scikitsc, scikitac, scikitoptics) cannot handle unseen data.

0 commit comments

Comments
 (0)