Welcome to the docs! You can start writing documents in /content/docs
.
Citation
Normal footnote1.
Nash's Paper2.
Code
from toyml.clustering.kmeans_clustering import Kmeans
def run():
k: int = 2
dataset = [[1.0, 2], [1, 4], [1, 0], [10, 2], [10, 4], [10, 0]]
kmeans = Kmeans(dataset, k)
kmeans.fit()
kmeans.print_cluster()
test_input = [0.0, 0.0]
test_output = kmeans.predict(test_input)
print(f"input: {test_input} -> output: {test_output}")
run()
Math
References
Nash, John. “Equilibrium Points in N-Person Games.” Proceedings of the National Academy of Sciences 36, no. 1 (1950): 48–49.
Footnotes
Written by
Mathew Shen
At
Wed Jul 24 2024