File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ Here we try to replicate what scipy does internally using simple Python.
144144The most important calculation will be the eucledian distance.
145145Implement your own `` dist( vec1, vec2) `` function.
146146
147- ??? You can compare yours to this after you are finished
147+ ??? example " You can compare yours to this after you are finished"
148148``` python
149149def dist (vec1 , vec2 ):
150150 """
@@ -157,7 +157,7 @@ def dist(vec1, vec2):
157157We need to repeatetly get the eucledian distances of one centroid against all genes.
158158Implement a `` dist_to_centroid (centroid, mat ) `` function.
159159
160- ??? Again only peak after you finished yours
160+ ??? example " Again only peak after you finished yours"
161161``` python
162162def dist_to_centroid (centroid , mat ):
163163 """
@@ -190,7 +190,7 @@ And the loop should contain these steps:
190190 5 . use the new centroids and restart the loop
191191---
192192
193- ??? Really - do not peak - use this opportunity to dig into this problem!
193+ ??? example " Really - do not peak - use this opportunity to dig into this problem!"
194194``` python
195195def kmeans ( data , k , maxiter , seed ):
196196 """
You can’t perform that action at this time.
0 commit comments