From f29758102d6c6a0eb4ad5605c61d43d47c25c4e5 Mon Sep 17 00:00:00 2001 From: Kai Fricke Date: Tue, 3 Aug 2021 11:26:09 +0100 Subject: [PATCH] [tune] fix docs example for tune qloguniform --- doc/source/tune/api_docs/search_space.rst | 4 ++-- doc/source/tune/key-concepts.rst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/tune/api_docs/search_space.rst b/doc/source/tune/api_docs/search_space.rst index dffe5d643972..4e2b69fa777a 100644 --- a/doc/source/tune/api_docs/search_space.rst +++ b/doc/source/tune/api_docs/search_space.rst @@ -178,8 +178,8 @@ For a high-level overview, see this example: "loguniform": tune.loguniform(1e-4, 1e-2), # Sample a float uniformly between 0.0001 and 0.1, while - # sampling in log space and rounding to increments of 0.0005 - "qloguniform": tune.qloguniform(1e-4, 1e-1, 5e-4), + # sampling in log space and rounding to increments of 0.00005 + "qloguniform": tune.qloguniform(1e-4, 1e-1, 5e-5), # Sample a random float from a normal distribution with # mean=10 and sd=2 diff --git a/doc/source/tune/key-concepts.rst b/doc/source/tune/key-concepts.rst index 221f3b4ef986..e2a910af88ed 100644 --- a/doc/source/tune/key-concepts.rst +++ b/doc/source/tune/key-concepts.rst @@ -140,7 +140,7 @@ Here's an example covering all search space functions. Again, "uniform": tune.uniform(-5, -1), # Uniform float between -5 and -1 "quniform": tune.quniform(3.2, 5.4, 0.2), # Round to increments of 0.2 "loguniform": tune.loguniform(1e-4, 1e-1), # Uniform float in log space - "qloguniform": tune.qloguniform(1e-4, 1e-1, 5e-4), # Round to increments of 0.0005 + "qloguniform": tune.qloguniform(1e-4, 1e-1, 5e-5), # Round to increments of 0.00005 "randn": tune.randn(10, 2), # Normal distribution with mean 10 and sd 2 "qrandn": tune.qrandn(10, 2, 0.2), # Round to increments of 0.2 "randint": tune.randint(-9, 15), # Random integer between -9 and 15