Skip to content

Commit 1c4886b

Browse files
authored
add open-source headers to files; other nit clean-ups along the way (dotnet#35)
1 parent 6609cd9 commit 1c4886b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+168
-71
lines changed

src/AutoML/API/AutoFitSettings.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.Collections.Generic;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.Collections.Generic;
26
using System.Diagnostics;
37

48
namespace Microsoft.ML.Auto

src/AutoML/API/InferenceException.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26

37
namespace Microsoft.ML.Auto
48
{

src/AutoML/API/MLContextAutoFitExtensions.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using System.Collections.Generic;
37
using System.Threading;
48
using Microsoft.ML.Core.Data;

src/AutoML/API/MLContextDataExtensions.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using System.Collections.Generic;
37
using System.Linq;
48
using Microsoft.ML.Data;

src/AutoML/API/Pipeline.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
using System.Collections.Generic;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.Collections.Generic;
26
using Microsoft.ML.Core.Data;
3-
using Newtonsoft.Json;
47

58
namespace Microsoft.ML.Auto
69
{

src/AutoML/Assembly.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System.Runtime.CompilerServices;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.Runtime.CompilerServices;
26

3-
//[assembly: InternalsVisibleTo("InternalClient")]
47
[assembly: InternalsVisibleTo("Test, PublicKey=00240000048000009400000006020000002400005253413100040000010001004b86c4cb78549b34bab61a3b1800e23bfeb5b3ec390074041536a7e3cbd97f5f04cf0f857155a8928eaa29ebfd11cfbbad3ba70efea7bda3226c6a8d370a4cd303f714486b6ebc225985a638471e6ef571cc92a4613c00b8fa65d61ccee0cbe5f36330c9a01f4183559f1bef24cc2917c6d913e3a541333a1d05d9bed22b38cb")]

src/AutoML/AutoFitter/AutoFitApi.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.Collections.Generic;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.Collections.Generic;
26
using System.Linq;
37
using Microsoft.ML.Data;
48

src/AutoML/AutoFitter/SuggestedTrainer.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.Collections.Generic;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.Collections.Generic;
26
using System.Linq;
37
using Microsoft.ML.Training;
48

src/AutoML/ColumnInference/ColumnInferenceApi.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
25
using System.Linq;
36
using Microsoft.ML.Data;
47

src/AutoML/ColumnInference/ColumnPurpose.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
namespace Microsoft.ML.Auto
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
namespace Microsoft.ML.Auto
26
{
37
public enum ColumnPurpose
48
{

src/AutoML/DatasetDimensions/ColumnDimensions.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
namespace Microsoft.ML.Auto
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
namespace Microsoft.ML.Auto
26
{
37
internal class ColumnDimensions
48
{

src/AutoML/DatasetDimensions/DatasetDimensionsApi.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using Microsoft.ML.Data;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using Microsoft.ML.Data;
26

37
namespace Microsoft.ML.Auto
48
{

src/AutoML/DatasetDimensions/DatasetDimensionsUtil.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using System.Collections.Generic;
37
using Microsoft.ML.Data;
48

src/AutoML/DebugLogger.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
namespace Microsoft.ML.Auto
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
namespace Microsoft.ML.Auto
26
{
37
internal interface IDebugLogger
48
{
59
void Log(DebugStream stream, string message);
610
}
711

8-
public enum DebugStream
12+
internal enum DebugStream
913
{
1014
Exception,
1115
RunResult

src/AutoML/EstimatorExtensions/EstimatorExtensionCatalog.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using System.Collections.Generic;
37

48
namespace Microsoft.ML.Auto

src/AutoML/EstimatorExtensions/EstimatorExtensions.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using Microsoft.ML.Core.Data;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using Microsoft.ML.Core.Data;
26
using Microsoft.ML.Data;
37
using Microsoft.ML.Transforms.Categorical;
48
using Microsoft.ML.Transforms.Conversions;

src/AutoML/Sweepers/ISweeper.cs

-15
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,6 @@
1010

1111
namespace Microsoft.ML.Auto
1212
{
13-
/// <summary>
14-
/// Signature for the loaders of sweepers.
15-
/// </summary>
16-
public delegate void SignatureSweeper();
17-
18-
/// <summary>
19-
/// Signature for the loaders of sweep result evaluators.
20-
/// </summary>
21-
public delegate void SignatureSweepResultEvaluator();
22-
23-
/// <summary>
24-
/// Signature for SuggestedSweeps parser.
25-
/// </summary>
26-
public delegate void SignatureSuggestedSweepsParser();
27-
2813
/// <summary>
2914
/// The main interface of the sweeper
3015
/// </summary>

src/AutoML/Sweepers/Parameters.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88

99
namespace Microsoft.ML.Auto
1010
{
11-
public delegate void SignatureSweeperParameter();
12-
13-
public abstract class BaseParamArguments
11+
internal abstract class BaseParamArguments
1412
{
1513
//[Argument(ArgumentType.Required, HelpText = "Parameter name", ShortName = "n")]
1614
public string Name;

src/AutoML/TaskKind.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
namespace Microsoft.ML.Auto
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
namespace Microsoft.ML.Auto
26
{
37
public enum TaskKind
48
{

src/AutoML/Terminators/IterationBasedTerminator.cs

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
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 System.Collections.Generic;
6-
using System.Linq;
7-
85
namespace Microsoft.ML.Auto
96
{
107
internal sealed class IterationBasedTerminator

src/AutoML/TrainerExtensions/TrainerExtensionCatalog.cs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System;
66
using System.Collections.Generic;
77
using System.Linq;
8-
using System.Text;
98

109
namespace Microsoft.ML.Auto
1110
{

src/AutoML/TransformInference/TransformInferenceApi.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.Collections.Generic;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.Collections.Generic;
26
using Microsoft.ML.Data;
37

48
namespace Microsoft.ML.Auto

src/AutoML/Utils/Conversions.cs

-4
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System;
6-
using System.Collections.Generic;
7-
using System.Text;
86

97
namespace Microsoft.ML.Auto
108
{
119
using BL = Boolean;
1210
using R4 = Single;
1311
using TX = ReadOnlyMemory<char>;
14-
using U1 = Byte;
15-
using U8 = UInt64;
1612

1713
internal static class Conversions
1814
{

src/AutoML/Utils/Hashing.cs

-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
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 System;
6-
using System.Collections.Generic;
7-
using System.Text;
8-
95
namespace Microsoft.ML.Auto
106
{
117
internal static class Hashing

src/AutoML/Utils/ProbabilityFunctions.cs

-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System;
6-
using System.Collections.Generic;
7-
using System.Text;
86

97
namespace Microsoft.ML.Auto
108
{

src/AutoML/Utils/UserInputValidationUtil.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using System.Collections.Generic;
37
using System.IO;
48
using System.Linq;

src/Samples/Benchmarking.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using Microsoft.ML;
37
using Microsoft.ML.Auto;
48

src/Samples/BinaryClassification.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using System.IO;
37
using Microsoft.ML;
48
using Microsoft.ML.Auto;

src/Samples/MulticlassClassification.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using Microsoft.ML;
37
using Microsoft.ML.Auto;
48

src/Samples/Program.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
44

55
namespace Samples
66
{

src/Test/AutoFitTests.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using Microsoft.VisualStudio.TestTools.UnitTesting;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using Microsoft.VisualStudio.TestTools.UnitTesting;
26

37
namespace Microsoft.ML.Auto.Test
48
{

src/Test/ConversionTests.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using Microsoft.VisualStudio.TestTools.UnitTesting;
37

48
namespace Microsoft.ML.Auto.Test

src/Test/DatasetUtil.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using System.IO;
37
using System.Net;
48
using Microsoft.ML.Data;

src/Test/EstimatorExtensionTests.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using System.Linq;
37
using Microsoft.VisualStudio.TestTools.UnitTesting;
48

src/Test/GetNextPipelineTests.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
26
using System.Collections.Generic;
37
using Microsoft.VisualStudio.TestTools.UnitTesting;
48
using Newtonsoft.Json;

src/Test/SweeperTests.cs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
15
using System;
26
using System.Collections.Generic;
37
using Microsoft.VisualStudio.TestTools.UnitTesting;

src/Test/TextFileSampleTests.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
using System.IO;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.IO;
26
using System.Text;
37
using Microsoft.VisualStudio.TestTools.UnitTesting;
48

0 commit comments

Comments
 (0)