Skip to content

Commit

Permalink
update for kNN
Browse files Browse the repository at this point in the history
  • Loading branch information
llinjupt committed Mar 29, 2019
1 parent 6d3ec22 commit 08f9fcc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions footstone/knn_mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ def error_ratio_draw(self):
plt.xlabel("Train dataset")
plt.ylabel("Error ratio(%)")

#x = np.arange(1, 1 + len(self.costs_), 1) * self.steps_
#plt.xlim(1 * self.steps_, len(self.costs_) * self.steps_)
#plt.ylim(0, max(self.costs_) + 1)
#plt.yticks(np.linspace(0, max(self.costs_) + 1, num=10, endpoint=True))

plt.plot(self.train_batch, self.error_ratio, c='grey')
plt.scatter(self.train_batch, self.error_ratio, c='black')
plt.show()
Expand Down

0 comments on commit 08f9fcc

Please sign in to comment.