Skip to content

More namespace alignment #2724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/samples/Microsoft.ML.Samples/Dynamic/Calibrator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Linq;
using Microsoft.ML.Calibrator;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Data;

namespace Microsoft.ML.Samples.Dynamic
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.ML;

namespace Microsoft.ML.Samples.Dynamic.Trainers.BinaryClassification
namespace Microsoft.ML.Samples.Dynamic.Trainers.BinaryClassification
{
public static class AveragedPerceptron
{
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.ML.Core/Data/IEstimator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Linq;
using Microsoft.Data.DataView;
using Microsoft.ML.Data;
using Microsoft.ML.Model;

namespace Microsoft.ML
{
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Core/Data/ModelHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Text;
using Microsoft.ML.Internal.Utilities;

namespace Microsoft.ML.Model
namespace Microsoft.ML
{
[BestFriend]
[StructLayout(LayoutKind.Explicit, Size = Size)]
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Core/Data/ModelLoadContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text;
using Microsoft.ML.Internal.Utilities;

namespace Microsoft.ML.Model
namespace Microsoft.ML
{
/// <summary>
/// This is a convenience context object for loading models from a repository, for
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Core/Data/ModelLoading.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Text;
using Microsoft.ML.Internal.Utilities;

namespace Microsoft.ML.Model
namespace Microsoft.ML
{
/// <summary>
/// Signature for a repository based model loader. This is the dual of <see cref="ICanSaveModel"/>.
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Core/Data/ModelSaveContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text;
using Microsoft.ML.Internal.Utilities;

namespace Microsoft.ML.Model
namespace Microsoft.ML
{
/// <summary>
/// This is a convenience context object for saving models to a repository, for
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Core/Data/ModelSaving.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.IO;
using System.Text;

namespace Microsoft.ML.Model
namespace Microsoft.ML
{
public sealed partial class ModelSaveContext : IDisposable
{
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Core/Data/Repository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.IO.Compression;
using Microsoft.ML.Internal.Utilities;

namespace Microsoft.ML.Model
namespace Microsoft.ML
{
/// <summary>
/// For saving a model into a repository.
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Data/Commands/CrossValidationCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
using System.Threading.Tasks;
using Microsoft.Data.DataView;
using Microsoft.ML;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Command;
using Microsoft.ML.CommandLine;
using Microsoft.ML.Data;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Internal.Utilities;
using Microsoft.ML.Transforms;
using Microsoft.ML.Transforms.Conversions;
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Data/Commands/TrainCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
using System.Linq;
using Microsoft.Data.DataView;
using Microsoft.ML;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Command;
using Microsoft.ML.CommandLine;
using Microsoft.ML.Data;
using Microsoft.ML.Data.IO;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Internal.Utilities;
using Microsoft.ML.Model;
using Microsoft.ML.Transforms.Normalizers;
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Data/Commands/TrainTestCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
using System.IO;
using Microsoft.Data.DataView;
using Microsoft.ML;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Command;
using Microsoft.ML.CommandLine;
using Microsoft.ML.Data;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Internal.Utilities;
using Microsoft.ML.Model;

Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.ML.Data/DataLoadSave/Binary/UnsafeTypeOps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.IO;
using System.Runtime.InteropServices;
using Microsoft.Data.DataView;
using Microsoft.ML.Data;

namespace Microsoft.ML.Internal.Internallearn
{
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Data/Dirty/IniFileUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Text;
using System.Text.RegularExpressions;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Calibrators;

namespace Microsoft.ML.Internal.Utilities
{
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Data/Dirty/PredictorInterfaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Collections.Generic;
using System.IO;
using Microsoft.Data.DataView;
using Microsoft.ML.Calibrator;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Data;

namespace Microsoft.ML.Internal.Internallearn
Expand Down
2 changes: 0 additions & 2 deletions src/Microsoft.ML.Data/EntryPoints/EntryPointNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
using System.Linq;
using System.Text.RegularExpressions;
using Microsoft.Data.DataView;
using Microsoft.ML.Data;
using Microsoft.ML.EntryPoints.JsonUtils;
using Microsoft.ML.Internal.Utilities;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Data/EntryPoints/InputBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
using System;
using System.Collections.Generic;
using Microsoft.Data.DataView;
using Microsoft.ML.Calibrators;
using Microsoft.ML.CommandLine;
using Microsoft.ML.Data;
using Microsoft.ML.Data.IO;
using Microsoft.ML.Internal.Calibration;

namespace Microsoft.ML.EntryPoints
{
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Data/EntryPoints/InputBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using Microsoft.ML.Internal.Utilities;
using Newtonsoft.Json.Linq;

namespace Microsoft.ML.EntryPoints.JsonUtils
namespace Microsoft.ML.EntryPoints
{
/// <summary>
/// The class that creates and wraps around an instance of an input object and gradually populates all fields, keeping track of missing
Expand Down
3 changes: 1 addition & 2 deletions src/Microsoft.ML.Data/EntryPoints/PredictorModelImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
using System.IO;
using System.Linq;
using Microsoft.Data.DataView;
using Microsoft.ML.Calibrator;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Data;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Internal.Internallearn;
using Microsoft.ML.Model;

Expand Down
3 changes: 1 addition & 2 deletions src/Microsoft.ML.Data/EntryPoints/SummarizePredictor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
using System.IO;
using System.Text;
using Microsoft.Data.DataView;
using Microsoft.ML.Calibrator;
using Microsoft.ML.Calibrators;
using Microsoft.ML.CommandLine;
using Microsoft.ML.Data;
using Microsoft.ML.EntryPoints;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Internal.Internallearn;

[assembly: EntryPointModule(typeof(SummarizePredictor))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using Microsoft.ML;
using Microsoft.ML.CommandLine;
using Microsoft.ML.Data;
using Microsoft.ML.Data.Evaluators.Metrics;
using Microsoft.ML.EntryPoints;
using Microsoft.ML.Internal.Utilities;
using Microsoft.ML.Transforms;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using Microsoft.Data.DataView;

namespace Microsoft.ML.Data.Evaluators.Metrics
namespace Microsoft.ML.Data
{
/// <summary>
/// Evaluation results for anomaly detection.
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Data/Model/Onnx/ICanSaveOnnx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Microsoft.ML.Calibrator;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Data;

namespace Microsoft.ML.Model.OnnxConverter
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Data/Model/Pfa/ICanSavePfa.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Microsoft.ML.Calibrator;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Data;
using Newtonsoft.Json.Linq;

Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.ML.Data/Prediction/Calibrator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
using System.Linq;
using Microsoft.Data.DataView;
using Microsoft.ML;
using Microsoft.ML.Calibrator;
using Microsoft.ML.Calibrators;
using Microsoft.ML.CommandLine;
using Microsoft.ML.Data;
using Microsoft.ML.EntryPoints;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Internal.Internallearn;
using Microsoft.ML.Internal.Utilities;
using Microsoft.ML.Model;
Expand Down Expand Up @@ -80,7 +79,7 @@
[assembly: EntryPointModule(typeof(PavCalibratorTrainerFactory))]
[assembly: EntryPointModule(typeof(PlattCalibratorTrainerFactory))]

namespace Microsoft.ML.Internal.Calibration
namespace Microsoft.ML.Calibrators
{
/// <summary>
/// Signature for the loaders of calibrators.
Expand Down
5 changes: 2 additions & 3 deletions src/Microsoft.ML.Data/Prediction/CalibratorCatalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
using System.Linq;
using Microsoft.Data.DataView;
using Microsoft.ML;
using Microsoft.ML.Calibrator;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Data;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Model;
using Microsoft.ML.Trainers;

Expand All @@ -21,7 +20,7 @@
[assembly: LoadableClass(typeof(CalibratorTransformer<PavCalibrator>), typeof(PavCalibratorTransformer), null,
typeof(SignatureLoadModel), "", PavCalibratorTransformer.LoadName)]

namespace Microsoft.ML.Calibrator
namespace Microsoft.ML.Calibrators
{

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Data/Prediction/IPredictionTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See the LICENSE file in the project root for more information.

using Microsoft.Data.DataView;
using Microsoft.ML.Calibrator;
using Microsoft.ML.Calibrators;

namespace Microsoft.ML
{
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.ML.Data/TrainCatalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Linq;
using Microsoft.Data.DataView;
using Microsoft.ML.Data;
using Microsoft.ML.Data.Evaluators.Metrics;
using Microsoft.ML.Transforms;
using Microsoft.ML.Transforms.Conversions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
using System.Collections.Generic;
using Microsoft.Data.DataView;
using Microsoft.ML;
using Microsoft.ML.Calibrators;
using Microsoft.ML.CommandLine;
using Microsoft.ML.Data;
using Microsoft.ML.EntryPoints;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Model;
using Microsoft.ML.Transforms;

Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.ML.Ensemble/EntryPoints/DiversityMeasure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

using Microsoft.ML.EntryPoints;
using Microsoft.ML.Trainers.Ensemble;
using Microsoft.ML.Trainers.Ensemble.DiversityMeasure;

[assembly: EntryPointModule(typeof(DisagreementDiversityFactory))]
[assembly: EntryPointModule(typeof(RegressionDisagreementDiversityFactory))]
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.ML.Ensemble/EntryPoints/FeatureSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

using Microsoft.ML.EntryPoints;
using Microsoft.ML.Trainers.Ensemble;
using Microsoft.ML.Trainers.Ensemble.FeatureSelector;

[assembly: EntryPointModule(typeof(AllFeatureSelectorFactory))]
[assembly: EntryPointModule(typeof(RandomFeatureSelector))]
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Ensemble/EntryPoints/PipelineEnsemble.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// See the LICENSE file in the project root for more information.

using Microsoft.Data.DataView;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Data;
using Microsoft.ML.EntryPoints;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Trainers.Ensemble;

[assembly: EntryPointModule(typeof(PipelineEnsemble))]
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.ML.Ensemble/EntryPoints/SubModelSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

using Microsoft.ML.EntryPoints;
using Microsoft.ML.Trainers.Ensemble;
using Microsoft.ML.Trainers.Ensemble.SubModelSelector;

[assembly: EntryPointModule(typeof(AllSelectorFactory))]
[assembly: EntryPointModule(typeof(AllSelectorMultiClassFactory))]
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.ML.Ensemble/PipelineEnsemble.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
using System.Text;
using Microsoft.Data.DataView;
using Microsoft.ML;
using Microsoft.ML.Calibrators;
using Microsoft.ML.Data;
using Microsoft.ML.EntryPoints;
using Microsoft.ML.Internal.Calibration;
using Microsoft.ML.Internal.Internallearn;
using Microsoft.ML.Internal.Utilities;
using Microsoft.ML.Model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Collections.Concurrent;
using System.Collections.Generic;

namespace Microsoft.ML.Trainers.Ensemble.DiversityMeasure
namespace Microsoft.ML.Trainers.Ensemble
{
internal abstract class BaseDisagreementDiversityMeasure<TOutput> : IDiversityMeasure<TOutput>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
using System;
using Microsoft.ML;
using Microsoft.ML.Trainers.Ensemble;
using Microsoft.ML.Trainers.Ensemble.DiversityMeasure;

[assembly: LoadableClass(typeof(DisagreementDiversityMeasure), null, typeof(SignatureEnsembleDiversityMeasure),
DisagreementDiversityMeasure.UserName, DisagreementDiversityMeasure.LoadName)]

namespace Microsoft.ML.Trainers.Ensemble.DiversityMeasure
namespace Microsoft.ML.Trainers.Ensemble
{
internal sealed class DisagreementDiversityMeasure : BaseDisagreementDiversityMeasure<Single>, IBinaryDiversityMeasure
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;

namespace Microsoft.ML.Trainers.Ensemble.DiversityMeasure
namespace Microsoft.ML.Trainers.Ensemble
{
internal sealed class ModelDiversityMetric<TOutput>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
using Microsoft.ML.Data;
using Microsoft.ML.Numeric;
using Microsoft.ML.Trainers.Ensemble;
using Microsoft.ML.Trainers.Ensemble.DiversityMeasure;

[assembly: LoadableClass(typeof(MultiDisagreementDiversityMeasure), null, typeof(SignatureEnsembleDiversityMeasure),
DisagreementDiversityMeasure.UserName, MultiDisagreementDiversityMeasure.LoadName)]

namespace Microsoft.ML.Trainers.Ensemble.DiversityMeasure
namespace Microsoft.ML.Trainers.Ensemble
{
internal sealed class MultiDisagreementDiversityMeasure : BaseDisagreementDiversityMeasure<VBuffer<Single>>, IMulticlassDiversityMeasure
{
Expand Down
Loading