Skip to content

Commit 819319a

Browse files
Ivanidzo4kaeerhardt
authored andcommitted
add missing subcomponents to sweepers (dotnet#278)
* add missing subcomponents * right one * more cleanup
1 parent 63951b9 commit 819319a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Microsoft.ML.Sweeper/Algorithms/Grid.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,19 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Float = System.Single;
65

7-
using System;
86
using System.Collections.Generic;
97
using System.Linq;
10-
using Microsoft.ML;
8+
using Microsoft.ML.Runtime;
119
using Microsoft.ML.Runtime.CommandLine;
1210
using Microsoft.ML.Runtime.Internal.Utilities;
1311
using Microsoft.ML.Runtime.Sweeper;
1412

13+
[assembly: LoadableClass(typeof(RandomGridSweeper), typeof(RandomGridSweeper.Arguments), typeof(SignatureSweeper),
14+
"Random Grid Sweeper", "RandomGridSweeper", "RandomGrid")]
15+
[assembly: LoadableClass(typeof(RandomGridSweeper), typeof(RandomGridSweeper.Arguments), typeof(SignatureSweeperFromParameterList),
16+
"Random Grid Sweeper", "RandomGridSweeperParamList", "RandomGridpl")]
17+
1518
namespace Microsoft.ML.Runtime.Sweeper
1619
{
1720
/// <summary>

src/Microsoft.ML.Sweeper/Algorithms/Random.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
using Float = System.Single;
6-
7-
using System;
8-
using System.Collections.Generic;
95
using System.Linq;
10-
using Microsoft.ML;
116
using Microsoft.ML.Runtime;
12-
using Microsoft.ML.Runtime.CommandLine;
137
using Microsoft.ML.Runtime.Sweeper;
148

159
[assembly: LoadableClass(typeof(UniformRandomSweeper), typeof(SweeperBase.ArgumentsBase), typeof(SignatureSweeper),

src/Microsoft.ML.Sweeper/AsyncSweeper.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
using System.Threading.Tasks;
99
using System.Threading.Tasks.Dataflow;
1010

11-
using Microsoft.ML;
1211
using Microsoft.ML.Runtime;
1312
using Microsoft.ML.Runtime.CommandLine;
1413
using Microsoft.ML.Runtime.Internal.Utilities;
1514
using Microsoft.ML.Runtime.Sweeper;
1615

16+
[assembly: LoadableClass(typeof(SimpleAsyncSweeper), typeof(SweeperBase.ArgumentsBase), typeof(SignatureAsyncSweeper),
17+
"Asynchronous Uniform Random Sweeper", "UniformRandomSweeper", "UniformRandom")]
18+
[assembly: LoadableClass(typeof(SimpleAsyncSweeper), typeof(RandomGridSweeper.Arguments), typeof(SignatureAsyncSweeper),
19+
"Asynchronous Random Grid Sweeper", "RandomGridSweeper", "RandomGrid")]
1720
[assembly: LoadableClass(typeof(DeterministicSweeperAsync), typeof(DeterministicSweeperAsync.Arguments), typeof(SignatureAsyncSweeper),
1821
"Asynchronous and Deterministic Sweeper", "DeterministicSweeper", "Deterministic")]
1922

0 commit comments

Comments
 (0)