Create README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
5977f46a96
commit
0e5db79c78
1 changed files with 33 additions and 0 deletions
33
scikit-learn/kmeans/README.md
Normal file
33
scikit-learn/kmeans/README.md
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# KMeans
|
||||||
|
{:.no_toc}
|
||||||
|
|
||||||
|
<nav markdown="1" class="toc-class">
|
||||||
|
* TOC
|
||||||
|
{:toc}
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
## The goal
|
||||||
|
|
||||||
|
|
||||||
|
Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
|
||||||
|
|
||||||
|
## Test data
|
||||||
|
|
||||||
|
```python
|
||||||
|
import numpy as np
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
|
||||||
|
rng = np.random.default_rng()
|
||||||
|
|
||||||
|
a_x = rng.normal(1.5, 1.0, size=(1000))
|
||||||
|
a_y = rng.normal(3.0, 1.0, size=(1000))
|
||||||
|
|
||||||
|
b_x = rng.normal(0.0, 1.0, size=(1000))
|
||||||
|
b_y = rng.normal(0.0, 1.0, size=(1000))
|
||||||
|
|
||||||
|
plt.plot(a_x, a_y, "c.")
|
||||||
|
plt.plot(b_x, b_y, "m.")
|
||||||
|
plt.show()
|
||||||
|
```
|
||||||
|
![image0](image0.png)
|
||||||
|
|
Loading…
Reference in a new issue