From 7017eb7b6ac6cb52af253692d86677ec7d2301a5 Mon Sep 17 00:00:00 2001 From: Mathieu Blondel <mathieu@mblondel.org> Date: Tue, 13 Dec 2011 16:27:01 +0900 Subject: [PATCH] Fix svmlight loader doc. --- doc/datasets/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/datasets/index.rst b/doc/datasets/index.rst index f9825fe09b..91f290d6af 100644 --- a/doc/datasets/index.rst +++ b/doc/datasets/index.rst @@ -119,8 +119,8 @@ You may load a dataset like as follows:: You may also load two (or more) datasets at once:: >>> X_train, y_train, X_test, y_test = load_svmlight_files( - ... "/path/to/train_dataset.txt", - ... "/path/to/test_dataset.txt") # doctest: +SKIP + ... ("/path/to/train_dataset.txt", "/path/to/test_dataset.txt")) + ... # doctest: +SKIP In this case, ``X_train`` and ``X_test`` are guaranteed to have the same number of features. Another way to achieve the same result is to fix the number of -- GitLab