Skip to content

Commit

Permalink
Merge pull request #958 from tue-robotics/MatthijsBurgh-patch-1
Browse files Browse the repository at this point in the history
(find_my_mates) fix beun code van @LarsJanssenTUe
  • Loading branch information
MatthijsBurgh committed Dec 14, 2019
2 parents ef94381 + 7841e53 commit a15d393
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

import matplotlib.pyplot as plt

from os.path import expanduser

from sklearn.cluster import KMeans


Expand Down Expand Up @@ -69,5 +71,5 @@ def cluster_people(people_dicts, room_center, plot=False):
locations = zip(xs2, ys2)
pprint.pprint(locations)

with open('/home/kmeans_output.pickle', 'w') as dumpfile:
with open(expanduser('~') + '/kmeans_output.pickle', 'w') as dumpfile:
pickle.dump(clustered_ppl, dumpfile)

0 comments on commit a15d393

Please sign in to comment.