Skip to content

Commit 7fc7e50

Browse files
authored
Move IDataView to Microsoft.Data.DataView namespace. (#2254)
* Move IDataView to Microsoft.Data.DataView namespace. * Fix diagnostics test
1 parent 2180cfb commit 7fc7e50

File tree

394 files changed

+433
-41
lines changed

Some content is hidden

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

394 files changed

+433
-41
lines changed

docs/samples/Microsoft.ML.Samples/Dynamic/PermutationFeatureImportance/PFIHelper.cs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Linq;
3+
using Microsoft.Data.DataView;
34
using Microsoft.ML.Data;
45
using Microsoft.ML.Learners;
56
using Microsoft.ML.Trainers.HalLearners;

docs/samples/Microsoft.ML.Samples/Static/AveragedPerceptronBinaryClassification.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using Microsoft.ML.Data;
32
using Microsoft.ML.StaticPipe;
43

54
namespace Microsoft.ML.Samples.Static

src/Microsoft.Data.DataView/ColumnType.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using System.Reflection;
1010
using System.Threading;
1111

12-
namespace Microsoft.ML.Data
12+
namespace Microsoft.Data.DataView
1313
{
1414
/// <summary>
1515
/// This is the abstract base class for all types in the <see cref="IDataView"/> type system.

src/Microsoft.Data.DataView/IDataView.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Collections;
77
using System.Collections.Generic;
88

9-
namespace Microsoft.ML.Data
9+
namespace Microsoft.Data.DataView
1010
{
1111
/// <summary>
1212
/// The input and output of Query Operators (Transforms). This is the fundamental data pipeline

src/Microsoft.Data.DataView/MetadataBuilder.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Diagnostics;
88
using System.Linq;
99

10-
namespace Microsoft.ML.Data
10+
namespace Microsoft.Data.DataView
1111
{
1212
/// <summary>
1313
/// The class that incrementally builds a <see cref="Schema.Metadata"/>.

src/Microsoft.Data.DataView/RowId.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Diagnostics;
77
using System.Runtime.CompilerServices;
88

9-
namespace Microsoft.ML.Data
9+
namespace Microsoft.Data.DataView
1010
{
1111
/// <summary>
1212
/// A structure serving as a sixteen-byte unsigned integer. It is used as the row id of <see cref="IDataView"/>.

src/Microsoft.Data.DataView/Schema.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Diagnostics;
99
using System.Linq;
1010

11-
namespace Microsoft.ML.Data
11+
namespace Microsoft.Data.DataView
1212
{
1313
/// <summary>
1414
/// This class represents the <see cref="Schema"/> of an object like, for interstance, an <see cref="IDataView"/> or an <see cref="Row"/>.

src/Microsoft.Data.DataView/SchemaBuilder.cs

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

8-
namespace Microsoft.ML.Data
8+
namespace Microsoft.Data.DataView
99
{
1010
/// <summary>
1111
/// A builder for <see cref="Schema"/>.

src/Microsoft.Data.DataView/SchemaDebuggerProxy.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Diagnostics;
77
using System.Linq;
88

9-
namespace Microsoft.ML.Data
9+
namespace Microsoft.Data.DataView
1010
{
1111
/// <summary>
1212
/// The debugger proxy for <see cref="Schema"/>.

src/Microsoft.Data.DataView/Utils.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Diagnostics;
77
using System.Reflection;
88

9-
namespace Microsoft.ML.Data
9+
namespace Microsoft.Data.DataView
1010
{
1111
internal static class Utils
1212
{

src/Microsoft.ML.Core/Data/ColumnTypeExtensions.cs

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

55
using System;
6+
using Microsoft.Data.DataView;
67

78
namespace Microsoft.ML.Data
89
{

src/Microsoft.ML.Core/Data/DataKind.cs

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

55
using System;
6+
using Microsoft.Data.DataView;
67

78
namespace Microsoft.ML.Data
89
{

src/Microsoft.ML.Core/Data/IEstimator.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Collections;
66
using System.Collections.Generic;
77
using System.Linq;
8+
using Microsoft.Data.DataView;
89
using Microsoft.ML.Data;
910

1011
namespace Microsoft.ML.Core.Data

src/Microsoft.ML.Core/Data/IRowToRowMapper.cs

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

55
using System;
6+
using Microsoft.Data.DataView;
67

78
namespace Microsoft.ML.Data
89
{

src/Microsoft.ML.Core/Data/ISchemaBindableMapper.cs

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

55
using System.Collections.Generic;
6+
using Microsoft.Data.DataView;
67

78
namespace Microsoft.ML.Data
89
{

src/Microsoft.ML.Core/Data/IValueMapper.cs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +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 Microsoft.Data.DataView;
6+
57
namespace Microsoft.ML.Data
68
{
79
/// <summary>

src/Microsoft.ML.Core/Data/KeyType.cs

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

55
using System;
6+
using Microsoft.Data.DataView;
67
using Microsoft.ML.Internal.Utilities;
78

89
namespace Microsoft.ML.Data

src/Microsoft.ML.Core/Data/LinkedRootCursorBase.cs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +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 Microsoft.Data.DataView;
6+
57
namespace Microsoft.ML.Data
68
{
79
/// <summary>

src/Microsoft.ML.Core/Data/LinkedRowFilterCursorBase.cs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +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 Microsoft.Data.DataView;
6+
57
namespace Microsoft.ML.Data
68
{
79
/// <summary>

src/Microsoft.ML.Core/Data/LinkedRowRootCursorBase.cs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +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 Microsoft.Data.DataView;
6+
57
namespace Microsoft.ML.Data
68
{
79
/// <summary>

src/Microsoft.ML.Core/Data/MetadataBuilderExtensions.cs

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

55
using System;
6+
using Microsoft.Data.DataView;
67

78
namespace Microsoft.ML.Data
89
{

src/Microsoft.ML.Core/Data/MetadataUtils.cs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using System.Collections.Generic;
99
using System.Linq;
1010
using System.Threading;
11+
using Microsoft.Data.DataView;
1112
using Microsoft.ML.Core.Data;
1213
using Microsoft.ML.Internal.Utilities;
1314

src/Microsoft.ML.Core/Data/RoleMappedSchema.cs

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

55
using System.Collections.Generic;
6+
using Microsoft.Data.DataView;
67
using Microsoft.ML.Internal.Utilities;
78

89
namespace Microsoft.ML.Data

src/Microsoft.ML.Core/Data/RootCursorBase.cs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +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 Microsoft.Data.DataView;
6+
57
namespace Microsoft.ML.Data
68
{
79
// REVIEW: Since each cursor will create a channel, it would be great that the RootCursorBase takes

src/Microsoft.ML.Core/Data/SchemaExtensions.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +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 System;
65
using System.Collections.Generic;
7-
using Microsoft.ML.Internal.Utilities;
6+
using Microsoft.Data.DataView;
87

98
namespace Microsoft.ML.Data
109
{

src/Microsoft.ML.Core/Data/SynchronizedCursorBase.cs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +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 Microsoft.Data.DataView;
6+
57
namespace Microsoft.ML.Data
68
{
79
/// <summary>

src/Microsoft.ML.Core/Data/VectorType.cs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Collections.Immutable;
77
using System.Linq;
88
using System.Text;
9+
using Microsoft.Data.DataView;
910
using Microsoft.ML.Internal.Utilities;
1011

1112
namespace Microsoft.ML.Data

src/Microsoft.ML.Core/Data/WrappingRow.cs

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

55
using System;
6+
using Microsoft.Data.DataView;
67

78
namespace Microsoft.ML.Data
89
{

src/Microsoft.ML.Core/EntryPoints/EntryPointUtils.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
using System;
66
using System.Linq;
77
using System.Reflection;
8+
using Microsoft.Data.DataView;
89
using Microsoft.ML.CommandLine;
9-
using Microsoft.ML.Data;
1010
using Microsoft.ML.Internal.Utilities;
1111

1212
namespace Microsoft.ML.EntryPoints

src/Microsoft.ML.Core/EntryPoints/ModuleArgs.cs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Collections.Generic;
77
using System.Linq;
88
using System.Text;
9+
using Microsoft.Data.DataView;
910
using Microsoft.ML.Data;
1011

1112
namespace Microsoft.ML.EntryPoints

src/Microsoft.ML.Core/EntryPoints/PredictorModel.cs

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

55
using System.IO;
6+
using Microsoft.Data.DataView;
67
using Microsoft.ML.Data;
78

89
namespace Microsoft.ML.EntryPoints

src/Microsoft.ML.Core/EntryPoints/TransformModel.cs

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

55
using System.IO;
6+
using Microsoft.Data.DataView;
67
using Microsoft.ML.Data;
78

89
namespace Microsoft.ML.EntryPoints

src/Microsoft.ML.Core/Utilities/ReservoirSampler.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using System.Collections.Generic;
77
using System.Linq;
8+
using Microsoft.Data.DataView;
89
using Microsoft.ML.Data;
910

1011
namespace Microsoft.ML.Internal.Utilities

src/Microsoft.ML.Core/Utilities/Utils.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
using System.Text;
1212
using System.Text.RegularExpressions;
1313
using System.Threading;
14-
using Microsoft.ML.Data;
14+
using Microsoft.Data.DataView;
1515

1616
namespace Microsoft.ML.Internal.Utilities
1717
{

src/Microsoft.ML.Data/Commands/CrossValidationCommand.cs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.IO;
88
using System.Linq;
99
using System.Threading.Tasks;
10+
using Microsoft.Data.DataView;
1011
using Microsoft.ML;
1112
using Microsoft.ML.Command;
1213
using Microsoft.ML.CommandLine;

src/Microsoft.ML.Data/Commands/DataCommand.cs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Collections.Generic;
77
using System.IO;
88
using System.Linq;
9+
using Microsoft.Data.DataView;
910
using Microsoft.ML.Command;
1011
using Microsoft.ML.CommandLine;
1112
using Microsoft.ML.Data.IO;

src/Microsoft.ML.Data/Commands/EvaluateCommand.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using System.Collections.Generic;
77
using System.Text.RegularExpressions;
8+
using Microsoft.Data.DataView;
89
using Microsoft.ML;
910
using Microsoft.ML.Command;
1011
using Microsoft.ML.CommandLine;

src/Microsoft.ML.Data/Commands/SaveDataCommand.cs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Collections.Generic;
77
using System.IO;
88
using System.Linq;
9+
using Microsoft.Data.DataView;
910
using Microsoft.ML;
1011
using Microsoft.ML.Command;
1112
using Microsoft.ML.CommandLine;

src/Microsoft.ML.Data/Commands/ScoreCommand.cs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System;
88
using System.Collections.Generic;
99
using System.IO;
10+
using Microsoft.Data.DataView;
1011
using Microsoft.ML;
1112
using Microsoft.ML.Command;
1213
using Microsoft.ML.CommandLine;

src/Microsoft.ML.Data/Commands/ShowSchemaCommand.cs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using System.Linq;
1010
using System.Reflection;
1111
using System.Text;
12+
using Microsoft.Data.DataView;
1213
using Microsoft.ML;
1314
using Microsoft.ML.Command;
1415
using Microsoft.ML.CommandLine;

src/Microsoft.ML.Data/Commands/TestCommand.cs

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

55
using System.Collections.Generic;
6+
using Microsoft.Data.DataView;
67
using Microsoft.ML;
78
using Microsoft.ML.Command;
89
using Microsoft.ML.CommandLine;

src/Microsoft.ML.Data/Commands/TrainCommand.cs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Collections.Generic;
77
using System.IO;
88
using System.Linq;
9+
using Microsoft.Data.DataView;
910
using Microsoft.ML;
1011
using Microsoft.ML.Command;
1112
using Microsoft.ML.CommandLine;

src/Microsoft.ML.Data/Commands/TrainTestCommand.cs

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System.Collections.Generic;
66
using System.IO;
7+
using Microsoft.Data.DataView;
78
using Microsoft.ML;
89
using Microsoft.ML.Command;
910
using Microsoft.ML.CommandLine;

src/Microsoft.ML.Data/Commands/TypeInfoCommand.cs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System;
66
using System.Collections.Generic;
77
using System.Linq;
8+
using Microsoft.Data.DataView;
89
using Microsoft.ML;
910
using Microsoft.ML.Command;
1011
using Microsoft.ML.Data.Commands;

src/Microsoft.ML.Data/Data/Conversion.cs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using System.Runtime.InteropServices;
1212
using System.Text;
1313
using System.Threading;
14+
using Microsoft.Data.DataView;
1415
using Microsoft.ML.Internal.Utilities;
1516

1617
namespace Microsoft.ML.Data.Conversion

src/Microsoft.ML.Data/Data/DataViewUtils.cs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using System.Text;
1111
using System.Threading;
1212
using System.Threading.Tasks;
13+
using Microsoft.Data.DataView;
1314
using Microsoft.ML.Data.Conversion;
1415
using Microsoft.ML.Internal.Utilities;
1516

src/Microsoft.ML.Data/Data/IDataLoader.cs

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

55
using System.IO;
6+
using Microsoft.Data.DataView;
67
using Microsoft.ML.Model;
78

89
namespace Microsoft.ML.Data

0 commit comments

Comments
 (0)