Skip to content

Commit 6d4914d

Browse files
committed
Make the out-of-core example plot work when launched by the sphinx extension
1 parent c540b30 commit 6d4914d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ nips2010_pdf/
4141
*.tgz
4242

4343
examples/cluster/joblib
44-
examples/applications/reuters/
44+
reuters/
4545
benchmarks/bench_covertype_data/
4646

4747
*.prefs

examples/applications/plot_out_of_core_classification.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ def iterdocs(self):
194194

195195
# Create the data_streamer that parses Reuters SGML files and iterates on
196196
# documents as a stream
197-
data_streamer = ReutersStreamReader(os.path.join(os.path.dirname(__file__),
198-
'reuters')).iterdocs()
197+
data_streamer = ReutersStreamReader('reuters').iterdocs()
199198

200199
# Here we propose to learn a binary classification between the positive class
201200
# and all other documents."""

0 commit comments

Comments
 (0)