From 372f59e4a9bf9d7ba8a85aa85640a6118c264626 Mon Sep 17 00:00:00 2001
From: Gael Varoquaux <gael.varoquaux@normalesup.org>
Date: Wed, 7 Aug 2013 22:49:05 +0200
Subject: [PATCH] MISC: fix wrong timing in example

---
 examples/randomized_search.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/randomized_search.py b/examples/randomized_search.py
index 3c3c54cd41..14a1513944 100644
--- a/examples/randomized_search.py
+++ b/examples/randomized_search.py
@@ -79,6 +79,7 @@ param_grid = {"max_depth": [3, None],
 
 # run grid search
 grid_search = GridSearchCV(clf, param_grid=param_grid)
+start = time()
 grid_search.fit(X, y)
 
 print("GridSearchCV took %.2f seconds for %d candidate parameter settings."
-- 
GitLab