From 5dc784801f284fb42427d59451053d8ebadedc43 Mon Sep 17 00:00:00 2001 From: Ivan Matantsev Date: Thu, 31 May 2018 14:07:00 -0700 Subject: [PATCH] add missing subcomponents to sweepers (#278) * add missing subcomponents * right one * more cleanup --- src/Microsoft.ML.Sweeper/Algorithms/Grid.cs | 9 ++++++--- src/Microsoft.ML.Sweeper/Algorithms/Random.cs | 6 ------ src/Microsoft.ML.Sweeper/AsyncSweeper.cs | 5 ++++- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Microsoft.ML.Sweeper/Algorithms/Grid.cs b/src/Microsoft.ML.Sweeper/Algorithms/Grid.cs index 6cb2b2b4c2..543f2ac718 100644 --- a/src/Microsoft.ML.Sweeper/Algorithms/Grid.cs +++ b/src/Microsoft.ML.Sweeper/Algorithms/Grid.cs @@ -2,16 +2,19 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Float = System.Single; -using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML; +using Microsoft.ML.Runtime; using Microsoft.ML.Runtime.CommandLine; using Microsoft.ML.Runtime.Internal.Utilities; using Microsoft.ML.Runtime.Sweeper; +[assembly: LoadableClass(typeof(RandomGridSweeper), typeof(RandomGridSweeper.Arguments), typeof(SignatureSweeper), + "Random Grid Sweeper", "RandomGridSweeper", "RandomGrid")] +[assembly: LoadableClass(typeof(RandomGridSweeper), typeof(RandomGridSweeper.Arguments), typeof(SignatureSweeperFromParameterList), + "Random Grid Sweeper", "RandomGridSweeperParamList", "RandomGridpl")] + namespace Microsoft.ML.Runtime.Sweeper { /// diff --git a/src/Microsoft.ML.Sweeper/Algorithms/Random.cs b/src/Microsoft.ML.Sweeper/Algorithms/Random.cs index e6673bb38e..fd40de3cda 100644 --- a/src/Microsoft.ML.Sweeper/Algorithms/Random.cs +++ b/src/Microsoft.ML.Sweeper/Algorithms/Random.cs @@ -2,14 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Float = System.Single; - -using System; -using System.Collections.Generic; using System.Linq; -using Microsoft.ML; using Microsoft.ML.Runtime; -using Microsoft.ML.Runtime.CommandLine; using Microsoft.ML.Runtime.Sweeper; [assembly: LoadableClass(typeof(UniformRandomSweeper), typeof(SweeperBase.ArgumentsBase), typeof(SignatureSweeper), diff --git a/src/Microsoft.ML.Sweeper/AsyncSweeper.cs b/src/Microsoft.ML.Sweeper/AsyncSweeper.cs index 9edf1393e2..e325846f6f 100644 --- a/src/Microsoft.ML.Sweeper/AsyncSweeper.cs +++ b/src/Microsoft.ML.Sweeper/AsyncSweeper.cs @@ -8,12 +8,15 @@ using System.Threading.Tasks; using System.Threading.Tasks.Dataflow; -using Microsoft.ML; using Microsoft.ML.Runtime; using Microsoft.ML.Runtime.CommandLine; using Microsoft.ML.Runtime.Internal.Utilities; using Microsoft.ML.Runtime.Sweeper; +[assembly: LoadableClass(typeof(SimpleAsyncSweeper), typeof(SweeperBase.ArgumentsBase), typeof(SignatureAsyncSweeper), + "Asynchronous Uniform Random Sweeper", "UniformRandomSweeper", "UniformRandom")] +[assembly: LoadableClass(typeof(SimpleAsyncSweeper), typeof(RandomGridSweeper.Arguments), typeof(SignatureAsyncSweeper), + "Asynchronous Random Grid Sweeper", "RandomGridSweeper", "RandomGrid")] [assembly: LoadableClass(typeof(DeterministicSweeperAsync), typeof(DeterministicSweeperAsync.Arguments), typeof(SignatureAsyncSweeper), "Asynchronous and Deterministic Sweeper", "DeterministicSweeper", "Deterministic")]