Skip to content

Commit

Permalink
Merge pull request #54 from chkoar/exa_1
Browse files Browse the repository at this point in the history
Fix stream-based sampling example
  • Loading branch information
cosmic-cortex authored Aug 8, 2019
2 parents 39336f2 + 271d885 commit 356e3e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/stream-based_sampling.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
In this example the use of ActiveLearner is demonstrated in a pool-based sampling setting.
In this example the use of ActiveLearner is demonstrated in a stream-based sampling setting.
"""

import numpy as np
Expand Down Expand Up @@ -67,5 +67,5 @@
plt.figure(figsize=(7, 7))
prediction = learner.predict_proba(X_full)[:, 1]
plt.imshow(prediction.reshape(im_width, im_height))
plt.title('Initial prediction accuracy: %f' % learner.score(X_full, y_full))
plt.title('Final prediction accuracy: %f' % learner.score(X_full, y_full))
plt.show()

0 comments on commit 356e3e4

Please sign in to comment.