diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000000..509e5fce93 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +root = true + +[*.cs] +# Sort using directives with System.* appearing first +dotnet_sort_system_directives_first = true \ No newline at end of file diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/Calibrator.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/Calibrator.cs index 865fba994f..78c62668ec 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/Calibrator.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/Calibrator.cs @@ -1,8 +1,7 @@ -using Microsoft.ML.Calibrator; -using Microsoft.ML; -using Microsoft.ML.Data; -using System; +using System; using System.Linq; +using Microsoft.ML.Calibrator; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/ConcatTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/ConcatTransform.cs index 8f1cd6e06e..c14439ee78 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/ConcatTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/ConcatTransform.cs @@ -1,8 +1,8 @@ -using Microsoft.ML.Data; -using Microsoft.ML.Transforms; -using System; +using System; using System.Collections.Generic; using System.Linq; +using Microsoft.ML.Data; +using Microsoft.ML.Transforms; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/FastTreeRegression.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/FastTreeRegression.cs index 2fcd6f41f4..e747b4fc86 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/FastTreeRegression.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/FastTreeRegression.cs @@ -1,6 +1,6 @@ -using Microsoft.ML.Data; -using System; +using System; using System.Collections.Generic; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/FeatureContributionCalculationTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/FeatureContributionCalculationTransform.cs index c7ebf84504..96ef491bb7 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/FeatureContributionCalculationTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/FeatureContributionCalculationTransform.cs @@ -1,5 +1,5 @@ -using Microsoft.ML.Data; -using System; +using System; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/FeatureSelectionTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/FeatureSelectionTransform.cs index f7d922db30..aa3d4446bb 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/FeatureSelectionTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/FeatureSelectionTransform.cs @@ -1,6 +1,6 @@ -using Microsoft.ML.Data; -using System; +using System; using System.Collections.Generic; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/FieldAwareFactorizationMachine.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/FieldAwareFactorizationMachine.cs index 5b22c7d416..812de0fd27 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/FieldAwareFactorizationMachine.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/FieldAwareFactorizationMachine.cs @@ -1,5 +1,5 @@ -using Microsoft.ML.Data; -using System; +using System; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { public class FFM_BinaryClassificationExample diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/GeneralizedAdditiveModels.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/GeneralizedAdditiveModels.cs index 81f8d7a306..acd08979a2 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/GeneralizedAdditiveModels.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/GeneralizedAdditiveModels.cs @@ -1,6 +1,6 @@ -using Microsoft.ML.Data; -using System; +using System; using System.Linq; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/IidChangePointDetectorTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/IidChangePointDetectorTransform.cs index 8d1df4632e..1a476d3f59 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/IidChangePointDetectorTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/IidChangePointDetectorTransform.cs @@ -3,13 +3,13 @@ // See the LICENSE file in the project root for more information. using System; -using System.Linq; using System.Collections.Generic; -using Microsoft.ML.Data; -using Microsoft.ML.TimeSeriesProcessing; +using System.IO; +using System.Linq; using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.TimeSeries; -using System.IO; +using Microsoft.ML.TimeSeriesProcessing; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/IidSpikeDetectorTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/IidSpikeDetectorTransform.cs index 2d51bdba64..572c6b140d 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/IidSpikeDetectorTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/IidSpikeDetectorTransform.cs @@ -1,11 +1,11 @@ using System; +using System.Collections.Generic; using System.IO; using System.Linq; -using System.Collections.Generic; -using Microsoft.ML.Data; -using Microsoft.ML.TimeSeriesProcessing; using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.TimeSeries; +using Microsoft.ML.TimeSeriesProcessing; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/KMeans.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/KMeans.cs index 2dff3d5b3c..1a5ad75b26 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/KMeans.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/KMeans.cs @@ -1,5 +1,5 @@ -using Microsoft.ML.Data; -using System; +using System; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/KeyToValue_Term.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/KeyToValue_Term.cs index 6acb34fc42..6d3deb9f84 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/KeyToValue_Term.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/KeyToValue_Term.cs @@ -1,8 +1,8 @@ -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using Microsoft.ML.Data; using Microsoft.ML.Transforms.Conversions; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/LdaTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/LdaTransform.cs index c0d9637bd1..4765fe06a4 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/LdaTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/LdaTransform.cs @@ -1,6 +1,6 @@ -using Microsoft.ML.Data; -using System; +using System; using System.Collections.Generic; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/MatrixFactorization.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/MatrixFactorization.cs index a6bfd4ce57..ecd5336b03 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/MatrixFactorization.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/MatrixFactorization.cs @@ -1,6 +1,6 @@ -using Microsoft.ML.Data; using System; using System.Collections.Generic; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/NgramExtraction.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/NgramExtraction.cs index f7438a8494..524f04c834 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/NgramExtraction.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/NgramExtraction.cs @@ -1,6 +1,6 @@ -using Microsoft.ML.Data; -using System; +using System; using System.Collections.Generic; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/Normalizer.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/Normalizer.cs index 50fe5ccf44..abeb454d51 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/Normalizer.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/Normalizer.cs @@ -1,8 +1,8 @@ -using Microsoft.ML.Data; -using Microsoft.ML.Transforms.Normalizers; -using System; +using System; using System.Collections.Generic; using System.Linq; +using Microsoft.ML.Data; +using Microsoft.ML.Transforms.Normalizers; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/OnnxTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/OnnxTransform.cs index be5b9bcec0..21d740b4ae 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/OnnxTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/OnnxTransform.cs @@ -1,8 +1,8 @@ +using System; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.OnnxRuntime; using Microsoft.ML.Transforms; -using System; -using System.Linq; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/PermutationFeatureImportance/PFIHelper.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/PermutationFeatureImportance/PFIHelper.cs index 07a1ac2225..ebb4def616 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/PermutationFeatureImportance/PFIHelper.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/PermutationFeatureImportance/PFIHelper.cs @@ -1,8 +1,8 @@ -using Microsoft.ML.Data; +using System; +using System.Linq; +using Microsoft.ML.Data; using Microsoft.ML.Learners; using Microsoft.ML.Trainers.HalLearners; -using System; -using System.Linq; namespace Microsoft.ML.Samples.Dynamic.PermutationFeatureImportance { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/PermutationFeatureImportance/PfiBinaryClassificationExample.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/PermutationFeatureImportance/PfiBinaryClassificationExample.cs index 5c8c38649c..e75fa170c9 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/PermutationFeatureImportance/PfiBinaryClassificationExample.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/PermutationFeatureImportance/PfiBinaryClassificationExample.cs @@ -1,6 +1,6 @@ -using Microsoft.ML.Learners; -using System; +using System; using System.Linq; +using Microsoft.ML.Learners; namespace Microsoft.ML.Samples.Dynamic.PermutationFeatureImportance { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/ProjectionTransforms.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/ProjectionTransforms.cs index d16a5528e6..15ffbf6653 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/ProjectionTransforms.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/ProjectionTransforms.cs @@ -1,7 +1,7 @@ -using Microsoft.ML.Data; -using System; +using System; using System.Collections.Generic; using System.Linq; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/SDCA.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/SDCA.cs index 499327c437..5f08dee906 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/SDCA.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/SDCA.cs @@ -1,6 +1,6 @@ -using Microsoft.ML.Data; -using System; +using System; using System.Linq; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/SDCARegression.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/SDCARegression.cs index c9a536c0d4..c75872011c 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/SDCARegression.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/SDCARegression.cs @@ -1,6 +1,6 @@ -using Microsoft.ML.Data; -using System; +using System; using System.Linq; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/SsaChangePointDetectorTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/SsaChangePointDetectorTransform.cs index aa94a0b49d..7eba634243 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/SsaChangePointDetectorTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/SsaChangePointDetectorTransform.cs @@ -1,11 +1,11 @@ -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML.TimeSeriesProcessing; -using Microsoft.ML.TimeSeries; using System; using System.Collections.Generic; using System.IO; using System.Linq; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.TimeSeries; +using Microsoft.ML.TimeSeriesProcessing; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/SsaSpikeDetectorTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/SsaSpikeDetectorTransform.cs index 090e680125..ff915dac1f 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/SsaSpikeDetectorTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/SsaSpikeDetectorTransform.cs @@ -1,11 +1,11 @@ -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML.TimeSeriesProcessing; -using Microsoft.ML.TimeSeries; using System; using System.Collections.Generic; using System.IO; using System.Linq; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.TimeSeries; +using Microsoft.ML.TimeSeriesProcessing; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/TensorFlowTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/TensorFlowTransform.cs index 46eb3f5242..41d1eac9fe 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/TensorFlowTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/TensorFlowTransform.cs @@ -1,6 +1,6 @@ -using Microsoft.ML.Data; using System; using System.Linq; +using Microsoft.ML.Data; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Dynamic/TextTransform.cs b/docs/samples/Microsoft.ML.Samples/Dynamic/TextTransform.cs index 5d3ab034de..3c8964b6f7 100644 --- a/docs/samples/Microsoft.ML.Samples/Dynamic/TextTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Dynamic/TextTransform.cs @@ -1,7 +1,7 @@ -using Microsoft.ML.Data; -using Microsoft.ML.Transforms.Text; -using System; +using System; using System.Collections.Generic; +using Microsoft.ML.Data; +using Microsoft.ML.Transforms.Text; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Static/AveragedPerceptronBinaryClassification.cs b/docs/samples/Microsoft.ML.Samples/Static/AveragedPerceptronBinaryClassification.cs index 68e4b35015..176f55eff6 100644 --- a/docs/samples/Microsoft.ML.Samples/Static/AveragedPerceptronBinaryClassification.cs +++ b/docs/samples/Microsoft.ML.Samples/Static/AveragedPerceptronBinaryClassification.cs @@ -1,7 +1,6 @@ -using Microsoft.ML.Data; +using System; +using Microsoft.ML.Data; using Microsoft.ML.StaticPipe; -using Microsoft.ML.Transforms; -using System; namespace Microsoft.ML.Samples.Static { diff --git a/docs/samples/Microsoft.ML.Samples/Static/FastTreeBinaryClassification.cs b/docs/samples/Microsoft.ML.Samples/Static/FastTreeBinaryClassification.cs index 041d297645..55835aa0b3 100644 --- a/docs/samples/Microsoft.ML.Samples/Static/FastTreeBinaryClassification.cs +++ b/docs/samples/Microsoft.ML.Samples/Static/FastTreeBinaryClassification.cs @@ -1,7 +1,6 @@ -using Microsoft.ML.Data; +using System; +using Microsoft.ML.Data; using Microsoft.ML.StaticPipe; -using Microsoft.ML.Transforms; -using System; namespace Microsoft.ML.Samples.Static { diff --git a/docs/samples/Microsoft.ML.Samples/Static/FastTreeRegression.cs b/docs/samples/Microsoft.ML.Samples/Static/FastTreeRegression.cs index 990bad111a..10e3edb7ea 100644 --- a/docs/samples/Microsoft.ML.Samples/Static/FastTreeRegression.cs +++ b/docs/samples/Microsoft.ML.Samples/Static/FastTreeRegression.cs @@ -1,8 +1,8 @@ -using Microsoft.ML.Data; -using Microsoft.ML.Trainers.FastTree; -using Microsoft.ML.StaticPipe; -using System; +using System; using System.Linq; +using Microsoft.ML.Data; +using Microsoft.ML.StaticPipe; +using Microsoft.ML.Trainers.FastTree; namespace Microsoft.ML.Samples.Static { diff --git a/docs/samples/Microsoft.ML.Samples/Static/FeatureSelectionTransform.cs b/docs/samples/Microsoft.ML.Samples/Static/FeatureSelectionTransform.cs index a621cbbb14..6c130dfc4b 100644 --- a/docs/samples/Microsoft.ML.Samples/Static/FeatureSelectionTransform.cs +++ b/docs/samples/Microsoft.ML.Samples/Static/FeatureSelectionTransform.cs @@ -1,7 +1,7 @@ -using Microsoft.ML.Data; -using Microsoft.ML.StaticPipe; -using System; +using System; using System.Collections.Generic; +using Microsoft.ML.Data; +using Microsoft.ML.StaticPipe; namespace Microsoft.ML.Samples.Dynamic { diff --git a/docs/samples/Microsoft.ML.Samples/Static/LightGBMBinaryClassification.cs b/docs/samples/Microsoft.ML.Samples/Static/LightGBMBinaryClassification.cs index 48a374667c..bee5be6c21 100644 --- a/docs/samples/Microsoft.ML.Samples/Static/LightGBMBinaryClassification.cs +++ b/docs/samples/Microsoft.ML.Samples/Static/LightGBMBinaryClassification.cs @@ -1,8 +1,7 @@ +using System; +using Microsoft.ML.Data; using Microsoft.ML.LightGBM.StaticPipe; -using Microsoft.ML.Data; using Microsoft.ML.StaticPipe; -using Microsoft.ML.Transforms; -using System; namespace Microsoft.ML.Samples.Static { diff --git a/docs/samples/Microsoft.ML.Samples/Static/LightGBMRegression.cs b/docs/samples/Microsoft.ML.Samples/Static/LightGBMRegression.cs index 7c0ac7c6c6..45bf277157 100644 --- a/docs/samples/Microsoft.ML.Samples/Static/LightGBMRegression.cs +++ b/docs/samples/Microsoft.ML.Samples/Static/LightGBMRegression.cs @@ -1,8 +1,7 @@ -using Microsoft.ML.LightGBM.StaticPipe; -using Microsoft.ML.Data; -using Microsoft.ML.LightGBM; -using Microsoft.ML.StaticPipe; using System; +using Microsoft.ML.Data; +using Microsoft.ML.LightGBM; +using Microsoft.ML.LightGBM.StaticPipe; namespace Microsoft.ML.Samples.Static { diff --git a/docs/samples/Microsoft.ML.Samples/Static/SDCABinaryClassification.cs b/docs/samples/Microsoft.ML.Samples/Static/SDCABinaryClassification.cs index 474cec2b31..122057a96e 100644 --- a/docs/samples/Microsoft.ML.Samples/Static/SDCABinaryClassification.cs +++ b/docs/samples/Microsoft.ML.Samples/Static/SDCABinaryClassification.cs @@ -1,7 +1,6 @@ -using Microsoft.ML.Data; +using System; +using Microsoft.ML.Data; using Microsoft.ML.StaticPipe; -using Microsoft.ML.Transforms; -using System; namespace Microsoft.ML.Samples.Static { diff --git a/docs/samples/Microsoft.ML.Samples/Static/SDCARegression.cs b/docs/samples/Microsoft.ML.Samples/Static/SDCARegression.cs index 6efb66008f..93c680d950 100644 --- a/docs/samples/Microsoft.ML.Samples/Static/SDCARegression.cs +++ b/docs/samples/Microsoft.ML.Samples/Static/SDCARegression.cs @@ -1,7 +1,7 @@ +using System; using Microsoft.ML.Data; using Microsoft.ML.Learners; using Microsoft.ML.StaticPipe; -using System; namespace Microsoft.ML.Samples.Static { diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 1ebabb9213..be6d1d53bc 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -32,4 +32,10 @@ Include="StyleCop.Analyzers" Version="1.1.0-beta008" PrivateAssets="All" /> + + + stylecop.json + + + diff --git a/src/Microsoft.ML.Core/ComponentModel/AssemblyLoadingUtils.cs b/src/Microsoft.ML.Core/ComponentModel/AssemblyLoadingUtils.cs index 9358898ea6..a194088d3b 100644 --- a/src/Microsoft.ML.Core/ComponentModel/AssemblyLoadingUtils.cs +++ b/src/Microsoft.ML.Core/ComponentModel/AssemblyLoadingUtils.cs @@ -2,11 +2,11 @@ // 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.Internal.Utilities; using System; using System.IO; using System.IO.Compression; using System.Reflection; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Core/ComponentModel/ComponentCatalog.cs b/src/Microsoft.ML.Core/ComponentModel/ComponentCatalog.cs index 398e1e1e38..0b50c559a7 100644 --- a/src/Microsoft.ML.Core/ComponentModel/ComponentCatalog.cs +++ b/src/Microsoft.ML.Core/ComponentModel/ComponentCatalog.cs @@ -2,14 +2,14 @@ // 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.CommandLine; -using Microsoft.ML.EntryPoints; -using Microsoft.ML.Internal.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; +using Microsoft.ML.CommandLine; +using Microsoft.ML.EntryPoints; +using Microsoft.ML.Internal.Utilities; // REVIEW: Determine ideal namespace. namespace Microsoft.ML diff --git a/src/Microsoft.ML.Core/Data/ColumnType.cs b/src/Microsoft.ML.Core/Data/ColumnType.cs index a75093ca0e..eb3d080ecd 100644 --- a/src/Microsoft.ML.Core/Data/ColumnType.cs +++ b/src/Microsoft.ML.Core/Data/ColumnType.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Immutable; using System.Linq; -using System.Reflection; using System.Text; using System.Threading; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Core/Data/DataKind.cs b/src/Microsoft.ML.Core/Data/DataKind.cs index 6844f17a05..db5a75326e 100644 --- a/src/Microsoft.ML.Core/Data/DataKind.cs +++ b/src/Microsoft.ML.Core/Data/DataKind.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using System.Text; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Core/Data/ICommand.cs b/src/Microsoft.ML.Core/Data/ICommand.cs index 2e00b8b272..4c68218436 100644 --- a/src/Microsoft.ML.Core/Data/ICommand.cs +++ b/src/Microsoft.ML.Core/Data/ICommand.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Data; - namespace Microsoft.ML.Command { /// diff --git a/src/Microsoft.ML.Core/Data/IEstimator.cs b/src/Microsoft.ML.Core/Data/IEstimator.cs index 6fe0fe200b..b0300795ec 100644 --- a/src/Microsoft.ML.Core/Data/IEstimator.cs +++ b/src/Microsoft.ML.Core/Data/IEstimator.cs @@ -2,11 +2,10 @@ // 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.Data; using System.Collections; using System.Collections.Generic; -using System.Collections.Immutable; using System.Linq; +using Microsoft.ML.Data; namespace Microsoft.ML.Core.Data { diff --git a/src/Microsoft.ML.Core/Data/IRowToRowMapper.cs b/src/Microsoft.ML.Core/Data/IRowToRowMapper.cs index 4f0a541363..d9c55227f3 100644 --- a/src/Microsoft.ML.Core/Data/IRowToRowMapper.cs +++ b/src/Microsoft.ML.Core/Data/IRowToRowMapper.cs @@ -2,7 +2,6 @@ // 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.Data; using System; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Core/Data/ISchemaBindableMapper.cs b/src/Microsoft.ML.Core/Data/ISchemaBindableMapper.cs index 5ae835fe8c..34b09fcf44 100644 --- a/src/Microsoft.ML.Core/Data/ISchemaBindableMapper.cs +++ b/src/Microsoft.ML.Core/Data/ISchemaBindableMapper.cs @@ -2,7 +2,6 @@ // 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.Data; using System.Collections.Generic; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Core/Data/MetadataBuilder.cs b/src/Microsoft.ML.Core/Data/MetadataBuilder.cs index 54907bc137..65cafd2627 100644 --- a/src/Microsoft.ML.Core/Data/MetadataBuilder.cs +++ b/src/Microsoft.ML.Core/Data/MetadataBuilder.cs @@ -2,10 +2,10 @@ // 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.Internal.Utilities; using System; using System.Collections.Generic; using System.Linq; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Core/Data/ReadOnlyMemoryUtils.cs b/src/Microsoft.ML.Core/Data/ReadOnlyMemoryUtils.cs index 8d20ebcd21..e776701030 100644 --- a/src/Microsoft.ML.Core/Data/ReadOnlyMemoryUtils.cs +++ b/src/Microsoft.ML.Core/Data/ReadOnlyMemoryUtils.cs @@ -2,11 +2,11 @@ // 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.Internal.Utilities; using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Text; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Core/Data/RoleMappedSchema.cs b/src/Microsoft.ML.Core/Data/RoleMappedSchema.cs index 8c4c7318c0..acd5c957e2 100644 --- a/src/Microsoft.ML.Core/Data/RoleMappedSchema.cs +++ b/src/Microsoft.ML.Core/Data/RoleMappedSchema.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Core/Data/RowId.cs b/src/Microsoft.ML.Core/Data/RowId.cs index c5b7795a07..315b1939b1 100644 --- a/src/Microsoft.ML.Core/Data/RowId.cs +++ b/src/Microsoft.ML.Core/Data/RowId.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.CompilerServices; -using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Core/Data/Schema.cs b/src/Microsoft.ML.Core/Data/Schema.cs index b2fb948f37..0977865544 100644 --- a/src/Microsoft.ML.Core/Data/Schema.cs +++ b/src/Microsoft.ML.Core/Data/Schema.cs @@ -2,12 +2,12 @@ // 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.Internal.Utilities; using System; using System.Collections; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Core/Data/SchemaDebuggerProxy.cs b/src/Microsoft.ML.Core/Data/SchemaDebuggerProxy.cs index 0f0116af8f..00fff2d6a5 100644 --- a/src/Microsoft.ML.Core/Data/SchemaDebuggerProxy.cs +++ b/src/Microsoft.ML.Core/Data/SchemaDebuggerProxy.cs @@ -2,10 +2,9 @@ // 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.Data; -using Microsoft.ML.Internal.Utilities; using System.Collections.Generic; using System.Linq; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Core/Data/ServerChannel.cs b/src/Microsoft.ML.Core/Data/ServerChannel.cs index c66fcd3980..c85be7eb82 100644 --- a/src/Microsoft.ML.Core/Data/ServerChannel.cs +++ b/src/Microsoft.ML.Core/Data/ServerChannel.cs @@ -4,8 +4,6 @@ using System; using System.Collections.Generic; -using System.Reflection; -using Microsoft.ML.CommandLine; using Microsoft.ML.EntryPoints; namespace Microsoft.ML diff --git a/src/Microsoft.ML.Core/Data/SynchronizedCursorBase.cs b/src/Microsoft.ML.Core/Data/SynchronizedCursorBase.cs index 47ee841fb5..e8b94e7dbd 100644 --- a/src/Microsoft.ML.Core/Data/SynchronizedCursorBase.cs +++ b/src/Microsoft.ML.Core/Data/SynchronizedCursorBase.cs @@ -2,8 +2,6 @@ // 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.Data; - namespace Microsoft.ML.Data { /// diff --git a/src/Microsoft.ML.Core/EntryPoints/EntryPointUtils.cs b/src/Microsoft.ML.Core/EntryPoints/EntryPointUtils.cs index f03048f8af..82edc2bfaa 100644 --- a/src/Microsoft.ML.Core/EntryPoints/EntryPointUtils.cs +++ b/src/Microsoft.ML.Core/EntryPoints/EntryPointUtils.cs @@ -2,11 +2,11 @@ // 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.Data; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Utilities; using System; using System.Linq; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.EntryPoints { diff --git a/src/Microsoft.ML.Core/Environment/HostEnvironmentBase.cs b/src/Microsoft.ML.Core/Environment/HostEnvironmentBase.cs index 3f1da929bd..deaf372cb9 100644 --- a/src/Microsoft.ML.Core/Environment/HostEnvironmentBase.cs +++ b/src/Microsoft.ML.Core/Environment/HostEnvironmentBase.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; -using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using System.IO; diff --git a/src/Microsoft.ML.Core/Environment/TelemetryMessage.cs b/src/Microsoft.ML.Core/Environment/TelemetryMessage.cs index 57762bfdf1..5501a99090 100644 --- a/src/Microsoft.ML.Core/Environment/TelemetryMessage.cs +++ b/src/Microsoft.ML.Core/Environment/TelemetryMessage.cs @@ -4,9 +4,6 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Core/Utilities/BinFinder.cs b/src/Microsoft.ML.Core/Utilities/BinFinder.cs index 642aeedd98..d5456e2956 100644 --- a/src/Microsoft.ML.Core/Utilities/BinFinder.cs +++ b/src/Microsoft.ML.Core/Utilities/BinFinder.cs @@ -2,10 +2,9 @@ // 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 Float = System.Single; namespace Microsoft.ML.Internal.Utilities { diff --git a/src/Microsoft.ML.Core/Utilities/BitUtils.cs b/src/Microsoft.ML.Core/Utilities/BitUtils.cs index bd42a8f0f3..b38b4ad01a 100644 --- a/src/Microsoft.ML.Core/Utilities/BitUtils.cs +++ b/src/Microsoft.ML.Core/Utilities/BitUtils.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Runtime.CompilerServices; namespace Microsoft.ML.Internal.Utilities diff --git a/src/Microsoft.ML.Core/Utilities/CharUtils.cs b/src/Microsoft.ML.Core/Utilities/CharUtils.cs index 089239f1a7..398b97f851 100644 --- a/src/Microsoft.ML.Core/Utilities/CharUtils.cs +++ b/src/Microsoft.ML.Core/Utilities/CharUtils.cs @@ -4,7 +4,6 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using System; using System.Runtime.CompilerServices; using System.Threading; diff --git a/src/Microsoft.ML.Core/Utilities/CmdIndenter.cs b/src/Microsoft.ML.Core/Utilities/CmdIndenter.cs index 4866122f05..da6e8b821f 100644 --- a/src/Microsoft.ML.Core/Utilities/CmdIndenter.cs +++ b/src/Microsoft.ML.Core/Utilities/CmdIndenter.cs @@ -2,12 +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 System; using System.CodeDom.Compiler; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Microsoft.ML.CommandLine; namespace Microsoft.ML.Internal.Utilities diff --git a/src/Microsoft.ML.Core/Utilities/DoubleParser.cs b/src/Microsoft.ML.Core/Utilities/DoubleParser.cs index ded68121d9..695c1981be 100644 --- a/src/Microsoft.ML.Core/Utilities/DoubleParser.cs +++ b/src/Microsoft.ML.Core/Utilities/DoubleParser.cs @@ -4,12 +4,7 @@ #undef COMPARE_BCL -using Float = System.Single; - using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; namespace Microsoft.ML.Internal.Utilities { diff --git a/src/Microsoft.ML.Core/Utilities/MathUtils.cs b/src/Microsoft.ML.Core/Utilities/MathUtils.cs index 4517729f3b..7ab349da12 100644 --- a/src/Microsoft.ML.Core/Utilities/MathUtils.cs +++ b/src/Microsoft.ML.Core/Utilities/MathUtils.cs @@ -2,11 +2,9 @@ // 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 Float = System.Single; namespace Microsoft.ML.Internal.Utilities { diff --git a/src/Microsoft.ML.Core/Utilities/MinWaiter.cs b/src/Microsoft.ML.Core/Utilities/MinWaiter.cs index 23af027bc1..8a671ab817 100644 --- a/src/Microsoft.ML.Core/Utilities/MinWaiter.cs +++ b/src/Microsoft.ML.Core/Utilities/MinWaiter.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Threading; namespace Microsoft.ML.Internal.Utilities diff --git a/src/Microsoft.ML.Core/Utilities/NormStr.cs b/src/Microsoft.ML.Core/Utilities/NormStr.cs index 5849925ee8..9859ea2724 100644 --- a/src/Microsoft.ML.Core/Utilities/NormStr.cs +++ b/src/Microsoft.ML.Core/Utilities/NormStr.cs @@ -3,12 +3,10 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections.Generic; using System.Collections; +using System.Collections.Generic; using System.Linq; -using System.Threading; using System.Text; -using Microsoft.ML.Data; namespace Microsoft.ML.Internal.Utilities { diff --git a/src/Microsoft.ML.Core/Utilities/Stats.cs b/src/Microsoft.ML.Core/Utilities/Stats.cs index c1630158dd..fad719e80d 100644 --- a/src/Microsoft.ML.Core/Utilities/Stats.cs +++ b/src/Microsoft.ML.Core/Utilities/Stats.cs @@ -2,9 +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 Float = System.Single; namespace Microsoft.ML.Internal.Utilities { diff --git a/src/Microsoft.ML.Core/Utilities/SupervisedBinFinder.cs b/src/Microsoft.ML.Core/Utilities/SupervisedBinFinder.cs index d76a9e578d..f640043009 100644 --- a/src/Microsoft.ML.Core/Utilities/SupervisedBinFinder.cs +++ b/src/Microsoft.ML.Core/Utilities/SupervisedBinFinder.cs @@ -2,8 +2,6 @@ // 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.Diagnostics; diff --git a/src/Microsoft.ML.Core/Utilities/Utils.cs b/src/Microsoft.ML.Core/Utilities/Utils.cs index f5234c69b3..c6e21486ca 100644 --- a/src/Microsoft.ML.Core/Utilities/Utils.cs +++ b/src/Microsoft.ML.Core/Utilities/Utils.cs @@ -2,8 +2,6 @@ // 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; using System.Collections.Generic; diff --git a/src/Microsoft.ML.CpuMath/AlignedArray.cs b/src/Microsoft.ML.CpuMath/AlignedArray.cs index 25f9457661..6687022e8f 100644 --- a/src/Microsoft.ML.CpuMath/AlignedArray.cs +++ b/src/Microsoft.ML.CpuMath/AlignedArray.cs @@ -2,8 +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 Microsoft.ML.Internal.CpuMath.Core; using System; +using Microsoft.ML.Internal.CpuMath.Core; namespace Microsoft.ML.Internal.CpuMath { diff --git a/src/Microsoft.ML.CpuMath/AlignedMatrix.cs b/src/Microsoft.ML.CpuMath/AlignedMatrix.cs index 9e8c95ae51..d9dee9a868 100644 --- a/src/Microsoft.ML.CpuMath/AlignedMatrix.cs +++ b/src/Microsoft.ML.CpuMath/AlignedMatrix.cs @@ -2,12 +2,11 @@ // 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 Microsoft.ML.Internal.CpuMath.Core; using System; using System.Collections; using System.Collections.Generic; +using Microsoft.ML.Internal.CpuMath.Core; +using Float = System.Single; namespace Microsoft.ML.Internal.CpuMath { diff --git a/src/Microsoft.ML.CpuMath/AssemblyInfo.cs b/src/Microsoft.ML.CpuMath/AssemblyInfo.cs index 52b73c15a8..65557d90f9 100644 --- a/src/Microsoft.ML.CpuMath/AssemblyInfo.cs +++ b/src/Microsoft.ML.CpuMath/AssemblyInfo.cs @@ -2,8 +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 Microsoft.ML.Internal.CpuMath.Core; using System.Runtime.CompilerServices; +using Microsoft.ML.Internal.CpuMath.Core; [assembly: InternalsVisibleTo("Microsoft.ML.CpuMath.UnitTests.netstandard" + PublicKey.TestValue)] [assembly: InternalsVisibleTo("Microsoft.ML.CpuMath.UnitTests.netcoreapp" + PublicKey.TestValue)] diff --git a/src/Microsoft.ML.CpuMath/AvxIntrinsics.cs b/src/Microsoft.ML.CpuMath/AvxIntrinsics.cs index fc50acc90e..ba86b9158f 100644 --- a/src/Microsoft.ML.CpuMath/AvxIntrinsics.cs +++ b/src/Microsoft.ML.CpuMath/AvxIntrinsics.cs @@ -9,12 +9,12 @@ // * P suffix means sparse (unaligned) partial vector - the vector is only part of a larger sparse vector. // * Tran means the matrix is transposed. -using Microsoft.ML.Internal.CpuMath.Core; using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; +using Microsoft.ML.Internal.CpuMath.Core; using nuint = System.UInt64; namespace Microsoft.ML.Internal.CpuMath diff --git a/src/Microsoft.ML.CpuMath/CpuMathUtils.netcoreapp.cs b/src/Microsoft.ML.CpuMath/CpuMathUtils.netcoreapp.cs index 2a4a8618d7..839b7d5471 100644 --- a/src/Microsoft.ML.CpuMath/CpuMathUtils.netcoreapp.cs +++ b/src/Microsoft.ML.CpuMath/CpuMathUtils.netcoreapp.cs @@ -2,10 +2,10 @@ // 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.Internal.CpuMath.Core; +using System; using System.Runtime.CompilerServices; using System.Runtime.Intrinsics.X86; -using System; +using Microsoft.ML.Internal.CpuMath.Core; namespace Microsoft.ML.Internal.CpuMath { diff --git a/src/Microsoft.ML.CpuMath/CpuMathUtils.netstandard.cs b/src/Microsoft.ML.CpuMath/CpuMathUtils.netstandard.cs index ff021697d6..b062898aec 100644 --- a/src/Microsoft.ML.CpuMath/CpuMathUtils.netstandard.cs +++ b/src/Microsoft.ML.CpuMath/CpuMathUtils.netstandard.cs @@ -2,10 +2,10 @@ // 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.Internal.CpuMath.Core; using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using Microsoft.ML.Internal.CpuMath.Core; namespace Microsoft.ML.Internal.CpuMath { diff --git a/src/Microsoft.ML.CpuMath/EigenUtils.cs b/src/Microsoft.ML.CpuMath/EigenUtils.cs index af5bb33508..94d8ee1a88 100644 --- a/src/Microsoft.ML.CpuMath/EigenUtils.cs +++ b/src/Microsoft.ML.CpuMath/EigenUtils.cs @@ -2,8 +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 Microsoft.ML.Internal.CpuMath.Core; using System; +using Microsoft.ML.Internal.CpuMath.Core; using Float = System.Single; namespace Microsoft.ML.Internal.CpuMath diff --git a/src/Microsoft.ML.CpuMath/ICpuBuffer.cs b/src/Microsoft.ML.CpuMath/ICpuBuffer.cs index ffffc9aaa6..3a3e76d6c6 100644 --- a/src/Microsoft.ML.CpuMath/ICpuBuffer.cs +++ b/src/Microsoft.ML.CpuMath/ICpuBuffer.cs @@ -2,15 +2,13 @@ // 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.Internal.CpuMath.Core; using System; using System.Collections.Generic; +using Microsoft.ML.Internal.CpuMath.Core; using Float = System.Single; namespace Microsoft.ML.Internal.CpuMath { - using Conditional = System.Diagnostics.ConditionalAttribute; - [BestFriend] internal interface ICpuBuffer : IEnumerable, IDisposable where T : struct diff --git a/src/Microsoft.ML.CpuMath/IntUtils.cs b/src/Microsoft.ML.CpuMath/IntUtils.cs index 9c57f66fad..1a27854df3 100644 --- a/src/Microsoft.ML.CpuMath/IntUtils.cs +++ b/src/Microsoft.ML.CpuMath/IntUtils.cs @@ -2,10 +2,10 @@ // 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.Internal.CpuMath.Core; -using System.Runtime.InteropServices; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; using System.Security; +using Microsoft.ML.Internal.CpuMath.Core; namespace Microsoft.ML.Internal.CpuMath { diff --git a/src/Microsoft.ML.CpuMath/ProbabilityFunctions.cs b/src/Microsoft.ML.CpuMath/ProbabilityFunctions.cs index c00d72ea85..db3e304379 100644 --- a/src/Microsoft.ML.CpuMath/ProbabilityFunctions.cs +++ b/src/Microsoft.ML.CpuMath/ProbabilityFunctions.cs @@ -2,8 +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 Microsoft.ML.Internal.CpuMath.Core; using System; +using Microsoft.ML.Internal.CpuMath.Core; namespace Microsoft.ML.Internal.CpuMath { diff --git a/src/Microsoft.ML.CpuMath/SseIntrinsics.cs b/src/Microsoft.ML.CpuMath/SseIntrinsics.cs index c9334cc70e..eabbf19508 100644 --- a/src/Microsoft.ML.CpuMath/SseIntrinsics.cs +++ b/src/Microsoft.ML.CpuMath/SseIntrinsics.cs @@ -13,12 +13,12 @@ // * D suffix means convolution matrix, with implicit source padding. // * Tran means the matrix is transposed. -using Microsoft.ML.Internal.CpuMath.Core; using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; +using Microsoft.ML.Internal.CpuMath.Core; using nuint = System.UInt64; namespace Microsoft.ML.Internal.CpuMath diff --git a/src/Microsoft.ML.CpuMath/Thunk.cs b/src/Microsoft.ML.CpuMath/Thunk.cs index d3bbea60a9..bd0931bd55 100644 --- a/src/Microsoft.ML.CpuMath/Thunk.cs +++ b/src/Microsoft.ML.CpuMath/Thunk.cs @@ -2,9 +2,9 @@ // 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.Internal.CpuMath.Core; using System.Runtime.InteropServices; using System.Security; +using Microsoft.ML.Internal.CpuMath.Core; namespace Microsoft.ML.Internal.CpuMath { diff --git a/src/Microsoft.ML.Data/Commands/CrossValidationCommand.cs b/src/Microsoft.ML.Data/Commands/CrossValidationCommand.cs index cc1865660e..78bce9cec6 100644 --- a/src/Microsoft.ML.Data/Commands/CrossValidationCommand.cs +++ b/src/Microsoft.ML.Data/Commands/CrossValidationCommand.cs @@ -2,19 +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 Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; using Microsoft.ML; 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; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; [assembly: LoadableClass(typeof(CrossValidationCommand), typeof(CrossValidationCommand.Arguments), typeof(SignatureCommand), "Cross Validation", CrossValidationCommand.LoadName)] diff --git a/src/Microsoft.ML.Data/Commands/SaveDataCommand.cs b/src/Microsoft.ML.Data/Commands/SaveDataCommand.cs index 403bdba3bd..3a5d11085c 100644 --- a/src/Microsoft.ML.Data/Commands/SaveDataCommand.cs +++ b/src/Microsoft.ML.Data/Commands/SaveDataCommand.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; using Microsoft.ML; using Microsoft.ML.Command; using Microsoft.ML.CommandLine; @@ -9,10 +13,6 @@ using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; [assembly: LoadableClass(SaveDataCommand.Summary, typeof(SaveDataCommand), typeof(SaveDataCommand.Arguments), typeof(SignatureCommand), "Save Data", "SaveData", "save")] diff --git a/src/Microsoft.ML.Data/Commands/SavePredictorCommand.cs b/src/Microsoft.ML.Data/Commands/SavePredictorCommand.cs index 898cd67ef0..86ace0e0a0 100644 --- a/src/Microsoft.ML.Data/Commands/SavePredictorCommand.cs +++ b/src/Microsoft.ML.Data/Commands/SavePredictorCommand.cs @@ -8,13 +8,12 @@ using Microsoft.ML.Command; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; +// REVIEW: Fix these namespaces. +using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Tools; -// REVIEW: Fix these namespaces. -using Microsoft.ML.Internal.Internallearn; - [assembly: LoadableClass(SavePredictorCommand.Summary, typeof(SavePredictorCommand), typeof(SavePredictorCommand.Arguments), typeof(SignatureCommand), "Save Predictor As", "SavePredictorAs", "SavePredictor", "SaveAs", "SaveModel")] diff --git a/src/Microsoft.ML.Data/Commands/ScoreCommand.cs b/src/Microsoft.ML.Data/Commands/ScoreCommand.cs index 3f5db72df0..ec08c6e49d 100644 --- a/src/Microsoft.ML.Data/Commands/ScoreCommand.cs +++ b/src/Microsoft.ML.Data/Commands/ScoreCommand.cs @@ -7,10 +7,10 @@ using System; using System.Collections.Generic; using System.IO; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.Command; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/Commands/ShowSchemaCommand.cs b/src/Microsoft.ML.Data/Commands/ShowSchemaCommand.cs index 5a7e180abc..80c3249aaa 100644 --- a/src/Microsoft.ML.Data/Commands/ShowSchemaCommand.cs +++ b/src/Microsoft.ML.Data/Commands/ShowSchemaCommand.cs @@ -9,10 +9,10 @@ using System.Linq; using System.Reflection; using System.Text; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.Command; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Data.Conversion; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/Commands/TrainCommand.cs b/src/Microsoft.ML.Data/Commands/TrainCommand.cs index a9b9671177..652ba527bf 100644 --- a/src/Microsoft.ML.Data/Commands/TrainCommand.cs +++ b/src/Microsoft.ML.Data/Commands/TrainCommand.cs @@ -2,19 +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 Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; using Microsoft.ML; 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; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; [assembly: LoadableClass(TrainCommand.Summary, typeof(TrainCommand), typeof(TrainCommand.Arguments), typeof(SignatureCommand), "Train Predictor", "Train")] diff --git a/src/Microsoft.ML.Data/Commands/TypeInfoCommand.cs b/src/Microsoft.ML.Data/Commands/TypeInfoCommand.cs index 1e3fc16e5d..e7f0bb5d15 100644 --- a/src/Microsoft.ML.Data/Commands/TypeInfoCommand.cs +++ b/src/Microsoft.ML.Data/Commands/TypeInfoCommand.cs @@ -5,10 +5,9 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Data.Commands; using Microsoft.ML; using Microsoft.ML.Command; -using Microsoft.ML.Data; +using Microsoft.ML.Data.Commands; using Microsoft.ML.Data.Conversion; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/Data/Combiner.cs b/src/Microsoft.ML.Data/Data/Combiner.cs index 834dd7a4ee..73957e8d67 100644 --- a/src/Microsoft.ML.Data/Data/Combiner.cs +++ b/src/Microsoft.ML.Data/Data/Combiner.cs @@ -4,10 +4,9 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Float = System.Single; - using System; using System.Threading; +using Float = System.Single; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/Data/Conversion.cs b/src/Microsoft.ML.Data/Data/Conversion.cs index ccb681b925..3b1a9a9628 100644 --- a/src/Microsoft.ML.Data/Data/Conversion.cs +++ b/src/Microsoft.ML.Data/Data/Conversion.cs @@ -17,15 +17,15 @@ namespace Microsoft.ML.Data.Conversion using BL = Boolean; using DT = DateTime; using DZ = DateTimeOffset; - using R4 = Single; - using R8 = Double; using I1 = SByte; using I2 = Int16; using I4 = Int32; using I8 = Int64; + using R4 = Single; + using R8 = Double; using SB = StringBuilder; - using TX = ReadOnlyMemory; using TS = TimeSpan; + using TX = ReadOnlyMemory; using U1 = Byte; using U2 = UInt16; using U4 = UInt32; diff --git a/src/Microsoft.ML.Data/Data/IDataLoader.cs b/src/Microsoft.ML.Data/Data/IDataLoader.cs index fcd09a628f..7112511dae 100644 --- a/src/Microsoft.ML.Data/Data/IDataLoader.cs +++ b/src/Microsoft.ML.Data/Data/IDataLoader.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.IO; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/Data/SchemaDefinition.cs b/src/Microsoft.ML.Data/Data/SchemaDefinition.cs index b06d04301b..b669783d4f 100644 --- a/src/Microsoft.ML.Data/Data/SchemaDefinition.cs +++ b/src/Microsoft.ML.Data/Data/SchemaDefinition.cs @@ -6,8 +6,6 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -using Microsoft.ML; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Data/DataDebuggerPreview.cs b/src/Microsoft.ML.Data/DataDebuggerPreview.cs index c07bfcc287..f57a5d5697 100644 --- a/src/Microsoft.ML.Data/DataDebuggerPreview.cs +++ b/src/Microsoft.ML.Data/DataDebuggerPreview.cs @@ -2,13 +2,11 @@ // 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; -using Microsoft.ML.Data; -using Microsoft.ML.Internal.Utilities; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/DataLoadSave/Binary/BinaryLoader.cs b/src/Microsoft.ML.Data/DataLoadSave/Binary/BinaryLoader.cs index 8a39549de9..e8839a6efe 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Binary/BinaryLoader.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Binary/BinaryLoader.cs @@ -2,14 +2,6 @@ // 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.Data; -using Microsoft.ML; -using Microsoft.ML.Command; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Data.IO; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; -using Microsoft.ML.Transforms; using System; using System.Collections.Concurrent; using System.Collections.Generic; @@ -20,6 +12,14 @@ using System.Text; using System.Threading; using System.Threading.Tasks; +using Microsoft.ML; +using Microsoft.ML.Command; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; +using Microsoft.ML.Data.IO; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; +using Microsoft.ML.Transforms; [assembly: LoadableClass(BinaryLoader.Summary, typeof(BinaryLoader), typeof(BinaryLoader.Arguments), typeof(SignatureDataLoader), "Binary Loader", diff --git a/src/Microsoft.ML.Data/DataLoadSave/Binary/BinaryLoaderSaverCatalog.cs b/src/Microsoft.ML.Data/DataLoadSave/Binary/BinaryLoaderSaverCatalog.cs index f1e1350358..b912a83a25 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Binary/BinaryLoaderSaverCatalog.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Binary/BinaryLoaderSaverCatalog.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.IO; -using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; diff --git a/src/Microsoft.ML.Data/DataLoadSave/Binary/BinarySaver.cs b/src/Microsoft.ML.Data/DataLoadSave/Binary/BinarySaver.cs index 58e56bcd4a..f044a9eb9c 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Binary/BinarySaver.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Binary/BinarySaver.cs @@ -12,9 +12,9 @@ using System.Text; using System.Threading; using System.Threading.Tasks; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/DataLoadSave/Binary/Codecs.cs b/src/Microsoft.ML.Data/DataLoadSave/Binary/Codecs.cs index 10ab84dd11..7bef51d52f 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Binary/Codecs.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Binary/Codecs.cs @@ -5,11 +5,10 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Runtime.InteropServices; using System.Text; -using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Internal.Internallearn; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data.IO { diff --git a/src/Microsoft.ML.Data/DataLoadSave/Binary/CompressionKind.cs b/src/Microsoft.ML.Data/DataLoadSave/Binary/CompressionKind.cs index 4c22a9b31f..1779ea4349 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Binary/CompressionKind.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Binary/CompressionKind.cs @@ -5,9 +5,7 @@ using System; using System.IO; using System.IO.Compression; -using Microsoft.ML; using Microsoft.ML.CommandLine; -using Microsoft.ML.Data.IO; using Microsoft.ML.Data.IO.Zlib; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/DataLoadSave/Binary/UnsafeTypeOps.cs b/src/Microsoft.ML.Data/DataLoadSave/Binary/UnsafeTypeOps.cs index 5fc7215a20..d1a47f252a 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Binary/UnsafeTypeOps.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Binary/UnsafeTypeOps.cs @@ -2,14 +2,11 @@ // 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.IO; -using Microsoft.ML; -using Microsoft.ML.Data; using System.Runtime.InteropServices; +using Microsoft.ML.Data; namespace Microsoft.ML.Internal.Internallearn { diff --git a/src/Microsoft.ML.Data/DataLoadSave/Binary/Zlib/Constants.cs b/src/Microsoft.ML.Data/DataLoadSave/Binary/Zlib/Constants.cs index 5599a2909d..4aaec0db62 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Binary/Zlib/Constants.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Binary/Zlib/Constants.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace Microsoft.ML.Data.IO.Zlib { /// diff --git a/src/Microsoft.ML.Data/DataLoadSave/Binary/Zlib/ZInflateStream.cs b/src/Microsoft.ML.Data/DataLoadSave/Binary/Zlib/ZInflateStream.cs index 57b6e55aaf..871627858f 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Binary/Zlib/ZInflateStream.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Binary/Zlib/ZInflateStream.cs @@ -4,7 +4,6 @@ using System; using System.IO; -using Microsoft.ML; namespace Microsoft.ML.Data.IO.Zlib { diff --git a/src/Microsoft.ML.Data/DataLoadSave/CompositeDataLoader.cs b/src/Microsoft.ML.Data/DataLoadSave/CompositeDataLoader.cs index 93636ea701..607d3c27c9 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/CompositeDataLoader.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/CompositeDataLoader.cs @@ -2,15 +2,15 @@ // 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.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; using System; using System.Collections.Generic; using System.IO; using System.Linq; +using Microsoft.ML; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; using Float = System.Single; [assembly: LoadableClass(typeof(IDataLoader), typeof(CompositeDataLoader), typeof(CompositeDataLoader.Arguments), typeof(SignatureDataLoader), diff --git a/src/Microsoft.ML.Data/DataLoadSave/CompositeDataReader.cs b/src/Microsoft.ML.Data/DataLoadSave/CompositeDataReader.cs index 2e9a61e76c..895eb155f7 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/CompositeDataReader.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/CompositeDataReader.cs @@ -2,11 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using Microsoft.ML.Core.Data; -using Microsoft.ML; -using Microsoft.ML.Data; using Microsoft.ML.Model; -using System.IO; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/DataLoadSave/CompositeReaderEstimator.cs b/src/Microsoft.ML.Data/DataLoadSave/CompositeReaderEstimator.cs index 2b24ed77c7..c4157caab9 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/CompositeReaderEstimator.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/CompositeReaderEstimator.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/DataLoadSave/EstimatorChain.cs b/src/Microsoft.ML.Data/DataLoadSave/EstimatorChain.cs index 946b86d145..e31621dfe9 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/EstimatorChain.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/EstimatorChain.cs @@ -2,10 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Linq; using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; -using System.Linq; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/DataLoadSave/EstimatorExtensions.cs b/src/Microsoft.ML.Data/DataLoadSave/EstimatorExtensions.cs index 3fa87d3183..6e557561b0 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/EstimatorExtensions.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/EstimatorExtensions.cs @@ -2,11 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.Internal.Utilities; -using System; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Data/DataLoadSave/FakeSchema.cs b/src/Microsoft.ML.Data/DataLoadSave/FakeSchema.cs index 62919d4149..f1cb7bf3ae 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/FakeSchema.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/FakeSchema.cs @@ -2,10 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; -using System; namespace Microsoft.ML.Data.DataLoadSave { diff --git a/src/Microsoft.ML.Data/DataLoadSave/PartitionedFileLoader.cs b/src/Microsoft.ML.Data/DataLoadSave/PartitionedFileLoader.cs index 63a73b89ea..e93c5fdd8a 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/PartitionedFileLoader.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/PartitionedFileLoader.cs @@ -7,9 +7,9 @@ using System.IO; using System.Linq; using System.Text; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Data.Conversion; using Microsoft.ML.Data.IO; using Microsoft.ML.Data.Utilities; diff --git a/src/Microsoft.ML.Data/DataLoadSave/Text/LoadColumnAttribute.cs b/src/Microsoft.ML.Data/DataLoadSave/Text/LoadColumnAttribute.cs index 5789146ac4..8aefb527ea 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Text/LoadColumnAttribute.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Text/LoadColumnAttribute.cs @@ -7,8 +7,8 @@ namespace Microsoft.ML.Data { -// REVIEW: The Start field is decorated with [Obsolete], and this warning disables using Obsolete for this class. -// The Start field should get deleted together with the Legacy API. + // REVIEW: The Start field is decorated with [Obsolete], and this warning disables using Obsolete for this class. + // The Start field should get deleted together with the Legacy API. #pragma warning disable 618 /// /// Describes column information such as name and the source columns indices that this diff --git a/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs b/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs index 92e9ac78e6..9619e4d0d5 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs @@ -2,17 +2,17 @@ // 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.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; +using Microsoft.ML; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; using Float = System.Single; [assembly: LoadableClass(TextLoader.Summary, typeof(IDataLoader), typeof(TextLoader), typeof(TextLoader.Arguments), typeof(SignatureDataLoader), diff --git a/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderCursor.cs b/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderCursor.cs index 98e4b446c5..a786865063 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderCursor.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderCursor.cs @@ -2,13 +2,12 @@ // 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.Data; -using Microsoft.ML.Internal.Utilities; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Text; using System.Threading; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderParser.cs b/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderParser.cs index cd05a05021..5b71bcc95e 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderParser.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderParser.cs @@ -4,8 +4,6 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Float = System.Single; - using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderSaverCatalog.cs b/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderSaverCatalog.cs index 7636dd1f16..882c6d5998 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderSaverCatalog.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Text/TextLoaderSaverCatalog.cs @@ -2,12 +2,9 @@ // 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; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; -using System; -using System.IO; -using static Microsoft.ML.Data.TextLoader; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Data/DataLoadSave/TransformWrapper.cs b/src/Microsoft.ML.Data/DataLoadSave/TransformWrapper.cs index 7d9c79b39a..ab6cc7dad6 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/TransformWrapper.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/TransformWrapper.cs @@ -2,13 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; +using Microsoft.ML; using Microsoft.ML.Core.Data; -using Microsoft.ML.Data.DataLoadSave; using Microsoft.ML.Data; -using Microsoft.ML; +using Microsoft.ML.Data.DataLoadSave; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; -using System.Collections.Generic; [assembly: LoadableClass(typeof(TransformWrapper), null, typeof(SignatureLoadModel), "Transform wrapper", TransformWrapper.LoaderSignature)] diff --git a/src/Microsoft.ML.Data/DataLoadSave/TransformerChain.cs b/src/Microsoft.ML.Data/DataLoadSave/TransformerChain.cs index 9f4a00c0e8..6a2d907b91 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/TransformerChain.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/TransformerChain.cs @@ -2,16 +2,16 @@ // 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.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; +using Microsoft.ML; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; [assembly: LoadableClass(typeof(TransformerChain), typeof(TransformerChain), null, typeof(SignatureLoadModel), "Transformer chain", TransformerChain.LoaderSignature)] diff --git a/src/Microsoft.ML.Data/DataLoadSave/Transpose/TransposeLoader.cs b/src/Microsoft.ML.Data/DataLoadSave/Transpose/TransposeLoader.cs index 18d5aeac8e..eb39bb0e5c 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Transpose/TransposeLoader.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Transpose/TransposeLoader.cs @@ -9,9 +9,9 @@ using System.Reflection; using System.Runtime.InteropServices; using System.Threading; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/DataLoadSave/Transpose/TransposeSaver.cs b/src/Microsoft.ML.Data/DataLoadSave/Transpose/TransposeSaver.cs index ed5ec37a62..51c9d00b8f 100644 --- a/src/Microsoft.ML.Data/DataLoadSave/Transpose/TransposeSaver.cs +++ b/src/Microsoft.ML.Data/DataLoadSave/Transpose/TransposeSaver.cs @@ -2,17 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; +using System.Runtime.InteropServices; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.IO; -using System.Runtime.InteropServices; -using System.Text; [assembly: LoadableClass(TransposeSaver.Summary, typeof(TransposeSaver), typeof(TransposeSaver.Arguments), typeof(SignatureDataSaver), "Transpose Saver", TransposeSaver.LoadName, "TransposedSaver", "Transpose", "Transposed", "trans")] diff --git a/src/Microsoft.ML.Data/DataView/ArrayDataViewBuilder.cs b/src/Microsoft.ML.Data/DataView/ArrayDataViewBuilder.cs index 12bad5d794..24c5cb6796 100644 --- a/src/Microsoft.ML.Data/DataView/ArrayDataViewBuilder.cs +++ b/src/Microsoft.ML.Data/DataView/ArrayDataViewBuilder.cs @@ -2,10 +2,9 @@ // 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.Data; -using Microsoft.ML.Internal.Utilities; using System; using System.Collections.Generic; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/DataView/CacheDataView.cs b/src/Microsoft.ML.Data/DataView/CacheDataView.cs index 0e49d7deb5..2563fe5cc1 100644 --- a/src/Microsoft.ML.Data/DataView/CacheDataView.cs +++ b/src/Microsoft.ML.Data/DataView/CacheDataView.cs @@ -4,15 +4,13 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Microsoft.ML; -using Microsoft.ML.Data; -using Microsoft.ML.Internal.Utilities; using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Threading; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/DataView/CompositeRowToRowMapper.cs b/src/Microsoft.ML.Data/DataView/CompositeRowToRowMapper.cs index cfdbef628b..a04b226a0d 100644 --- a/src/Microsoft.ML.Data/DataView/CompositeRowToRowMapper.cs +++ b/src/Microsoft.ML.Data/DataView/CompositeRowToRowMapper.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Data/DataView/CompositeSchema.cs b/src/Microsoft.ML.Data/DataView/CompositeSchema.cs index 57bc36bf58..2d4ca1a49c 100644 --- a/src/Microsoft.ML.Data/DataView/CompositeSchema.cs +++ b/src/Microsoft.ML.Data/DataView/CompositeSchema.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Data/DataView/DataViewConstructionUtils.cs b/src/Microsoft.ML.Data/DataView/DataViewConstructionUtils.cs index 88b23ea32b..4fb1cc7f30 100644 --- a/src/Microsoft.ML.Data/DataView/DataViewConstructionUtils.cs +++ b/src/Microsoft.ML.Data/DataView/DataViewConstructionUtils.cs @@ -2,13 +2,12 @@ // 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.Internal.Utilities; -using Microsoft.ML.Model; using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Reflection; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/DataView/EmptyDataView.cs b/src/Microsoft.ML.Data/DataView/EmptyDataView.cs index 8a59ef9510..275c0ca390 100644 --- a/src/Microsoft.ML.Data/DataView/EmptyDataView.cs +++ b/src/Microsoft.ML.Data/DataView/EmptyDataView.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Data/DataView/InternalSchemaDefinition.cs b/src/Microsoft.ML.Data/DataView/InternalSchemaDefinition.cs index 1e44e6c6ba..9c400cefcc 100644 --- a/src/Microsoft.ML.Data/DataView/InternalSchemaDefinition.cs +++ b/src/Microsoft.ML.Data/DataView/InternalSchemaDefinition.cs @@ -2,7 +2,6 @@ // 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.Data; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.ML.Data/DataView/LambdaColumnMapper.cs b/src/Microsoft.ML.Data/DataView/LambdaColumnMapper.cs index d5815fc528..a49318a63c 100644 --- a/src/Microsoft.ML.Data/DataView/LambdaColumnMapper.cs +++ b/src/Microsoft.ML.Data/DataView/LambdaColumnMapper.cs @@ -4,7 +4,6 @@ using System; using System.Reflection; -using Microsoft.ML.Data; using Microsoft.ML.Data.Conversion; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/DataView/OpaqueDataView.cs b/src/Microsoft.ML.Data/DataView/OpaqueDataView.cs index ab7ff7b39f..456b98d9fe 100644 --- a/src/Microsoft.ML.Data/DataView/OpaqueDataView.cs +++ b/src/Microsoft.ML.Data/DataView/OpaqueDataView.cs @@ -2,7 +2,6 @@ // 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.Data; using System; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Data/DataView/RowToRowMapperTransform.cs b/src/Microsoft.ML.Data/DataView/RowToRowMapperTransform.cs index 5990381ed0..bc697376d8 100644 --- a/src/Microsoft.ML.Data/DataView/RowToRowMapperTransform.cs +++ b/src/Microsoft.ML.Data/DataView/RowToRowMapperTransform.cs @@ -5,8 +5,8 @@ using System; using System.IO; using System.Linq; -using Microsoft.ML.Data; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; diff --git a/src/Microsoft.ML.Data/DataView/SimpleRow.cs b/src/Microsoft.ML.Data/DataView/SimpleRow.cs index ed9d0fba20..0e37b2f0f1 100644 --- a/src/Microsoft.ML.Data/DataView/SimpleRow.cs +++ b/src/Microsoft.ML.Data/DataView/SimpleRow.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Data/DataView/Transposer.cs b/src/Microsoft.ML.Data/DataView/Transposer.cs index 38cf12d97e..b7e3648445 100644 --- a/src/Microsoft.ML.Data/DataView/Transposer.cs +++ b/src/Microsoft.ML.Data/DataView/Transposer.cs @@ -7,8 +7,6 @@ using System.IO; using System.Linq; using System.Reflection; -using Microsoft.ML.Data; -using Microsoft.ML.CommandLine; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/DataView/TypedCursor.cs b/src/Microsoft.ML.Data/DataView/TypedCursor.cs index 23f3aaebb6..724a19ff29 100644 --- a/src/Microsoft.ML.Data/DataView/TypedCursor.cs +++ b/src/Microsoft.ML.Data/DataView/TypedCursor.cs @@ -2,13 +2,11 @@ // 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; -using Microsoft.ML.Data; -using Microsoft.ML.Internal.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/DataView/ZipDataView.cs b/src/Microsoft.ML.Data/DataView/ZipDataView.cs index 5d85bcd73d..827b47f724 100644 --- a/src/Microsoft.ML.Data/DataView/ZipDataView.cs +++ b/src/Microsoft.ML.Data/DataView/ZipDataView.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Data/Depricated/Instances/HeaderSchema.cs b/src/Microsoft.ML.Data/Depricated/Instances/HeaderSchema.cs index e1730b01d2..9b81f5dbd1 100644 --- a/src/Microsoft.ML.Data/Depricated/Instances/HeaderSchema.cs +++ b/src/Microsoft.ML.Data/Depricated/Instances/HeaderSchema.cs @@ -4,14 +4,14 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Microsoft.ML.Data; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; namespace Microsoft.ML.Internal.Internallearn { diff --git a/src/Microsoft.ML.Data/Depricated/TGUIAttribute.cs b/src/Microsoft.ML.Data/Depricated/TGUIAttribute.cs index 0fe3d34a9a..fbf044c946 100644 --- a/src/Microsoft.ML.Data/Depricated/TGUIAttribute.cs +++ b/src/Microsoft.ML.Data/Depricated/TGUIAttribute.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using Microsoft.ML; namespace Microsoft.ML.Internal.Internallearn { diff --git a/src/Microsoft.ML.Data/Depricated/Vector/VectorUtils.cs b/src/Microsoft.ML.Data/Depricated/Vector/VectorUtils.cs index 8871893334..564156fd1b 100644 --- a/src/Microsoft.ML.Data/Depricated/Vector/VectorUtils.cs +++ b/src/Microsoft.ML.Data/Depricated/Vector/VectorUtils.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; -using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/Dirty/ChooseColumnsByIndexTransform.cs b/src/Microsoft.ML.Data/Dirty/ChooseColumnsByIndexTransform.cs index 3346fc0abe..a01695a9c4 100644 --- a/src/Microsoft.ML.Data/Dirty/ChooseColumnsByIndexTransform.cs +++ b/src/Microsoft.ML.Data/Dirty/ChooseColumnsByIndexTransform.cs @@ -2,13 +2,13 @@ // 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.Data; +using System; +using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using System; -using System.Linq; [assembly: LoadableClass(typeof(ChooseColumnsByIndexTransform), typeof(ChooseColumnsByIndexTransform.Arguments), typeof(SignatureDataTransform), "", "ChooseColumnsByIndexTransform", "ChooseColumnsByIndex")] diff --git a/src/Microsoft.ML.Data/Dirty/ILoss.cs b/src/Microsoft.ML.Data/Dirty/ILoss.cs index b889eca456..1bb1350e0b 100644 --- a/src/Microsoft.ML.Data/Dirty/ILoss.cs +++ b/src/Microsoft.ML.Data/Dirty/ILoss.cs @@ -2,10 +2,9 @@ // 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 Microsoft.ML.EntryPoints; +using Float = System.Single; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Data/Dirty/ModelParametersBase.cs b/src/Microsoft.ML.Data/Dirty/ModelParametersBase.cs index bc9eddf5df..0366772768 100644 --- a/src/Microsoft.ML.Data/Dirty/ModelParametersBase.cs +++ b/src/Microsoft.ML.Data/Dirty/ModelParametersBase.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using Microsoft.ML; using Microsoft.ML.Model; namespace Microsoft.ML.Internal.Internallearn diff --git a/src/Microsoft.ML.Data/Dirty/PredictionUtils.cs b/src/Microsoft.ML.Data/Dirty/PredictionUtils.cs index fc79e88fd7..653a05fbb7 100644 --- a/src/Microsoft.ML.Data/Dirty/PredictionUtils.cs +++ b/src/Microsoft.ML.Data/Dirty/PredictionUtils.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.Linq; using System.Text; -using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/Dirty/PredictorInterfaces.cs b/src/Microsoft.ML.Data/Dirty/PredictorInterfaces.cs index 6a2e872033..905d91a89e 100644 --- a/src/Microsoft.ML.Data/Dirty/PredictorInterfaces.cs +++ b/src/Microsoft.ML.Data/Dirty/PredictorInterfaces.cs @@ -5,8 +5,8 @@ using System; using System.Collections.Generic; using System.IO; -using Microsoft.ML.Data; using Microsoft.ML.Calibrator; +using Microsoft.ML.Data; namespace Microsoft.ML.Internal.Internallearn { diff --git a/src/Microsoft.ML.Data/Dirty/PredictorUtils.cs b/src/Microsoft.ML.Data/Dirty/PredictorUtils.cs index 0efe9b6fb3..9c7adcf095 100644 --- a/src/Microsoft.ML.Data/Dirty/PredictorUtils.cs +++ b/src/Microsoft.ML.Data/Dirty/PredictorUtils.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.IO; -using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/EntryPoints/Cache.cs b/src/Microsoft.ML.Data/EntryPoints/Cache.cs index 0c376f5dcc..27d739e444 100644 --- a/src/Microsoft.ML.Data/EntryPoints/Cache.cs +++ b/src/Microsoft.ML.Data/EntryPoints/Cache.cs @@ -2,13 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.Generic; -using System.IO; -using System.Linq; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.EntryPoints; diff --git a/src/Microsoft.ML.Data/EntryPoints/CommonOutputs.cs b/src/Microsoft.ML.Data/EntryPoints/CommonOutputs.cs index 552c27ac77..8d593d132c 100644 --- a/src/Microsoft.ML.Data/EntryPoints/CommonOutputs.cs +++ b/src/Microsoft.ML.Data/EntryPoints/CommonOutputs.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.Generic; using Microsoft.ML.Data; diff --git a/src/Microsoft.ML.Data/EntryPoints/InputBase.cs b/src/Microsoft.ML.Data/EntryPoints/InputBase.cs index 7a45ba5379..b895fcbf91 100644 --- a/src/Microsoft.ML.Data/EntryPoints/InputBase.cs +++ b/src/Microsoft.ML.Data/EntryPoints/InputBase.cs @@ -4,8 +4,8 @@ using System; using System.Collections.Generic; -using Microsoft.ML.Data; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Calibration; diff --git a/src/Microsoft.ML.Data/EntryPoints/ScoreColumnSelector.cs b/src/Microsoft.ML.Data/EntryPoints/ScoreColumnSelector.cs index c1bc095465..c6619887cc 100644 --- a/src/Microsoft.ML.Data/EntryPoints/ScoreColumnSelector.cs +++ b/src/Microsoft.ML.Data/EntryPoints/ScoreColumnSelector.cs @@ -2,12 +2,12 @@ // 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.Data; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Transforms; using System; using System.Collections.Generic; using System.Linq; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; +using Microsoft.ML.Transforms; namespace Microsoft.ML.EntryPoints { diff --git a/src/Microsoft.ML.Data/EntryPoints/ScoreModel.cs b/src/Microsoft.ML.Data/EntryPoints/ScoreModel.cs index 39982369fc..387dad5713 100644 --- a/src/Microsoft.ML.Data/EntryPoints/ScoreModel.cs +++ b/src/Microsoft.ML.Data/EntryPoints/ScoreModel.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; diff --git a/src/Microsoft.ML.Data/Evaluators/AnomalyDetectionEvaluator.cs b/src/Microsoft.ML.Data/Evaluators/AnomalyDetectionEvaluator.cs index dd6d04cd62..666b2d7109 100644 --- a/src/Microsoft.ML.Data/Evaluators/AnomalyDetectionEvaluator.cs +++ b/src/Microsoft.ML.Data/Evaluators/AnomalyDetectionEvaluator.cs @@ -2,16 +2,16 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(typeof(AnomalyDetectionEvaluator), typeof(AnomalyDetectionEvaluator), typeof(AnomalyDetectionEvaluator.Arguments), typeof(SignatureEvaluator), "Anomaly Detection Evaluator", AnomalyDetectionEvaluator.LoadName, "AnomalyDetection", "Anomaly")] diff --git a/src/Microsoft.ML.Data/Evaluators/BinaryClassifierEvaluator.cs b/src/Microsoft.ML.Data/Evaluators/BinaryClassifierEvaluator.cs index ff3515d444..ae05dc53a3 100644 --- a/src/Microsoft.ML.Data/Evaluators/BinaryClassifierEvaluator.cs +++ b/src/Microsoft.ML.Data/Evaluators/BinaryClassifierEvaluator.cs @@ -2,16 +2,16 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.Linq; [assembly: LoadableClass(typeof(BinaryClassifierEvaluator), typeof(BinaryClassifierEvaluator), typeof(BinaryClassifierEvaluator.Arguments), typeof(SignatureEvaluator), "Binary Classifier Evaluator", BinaryClassifierEvaluator.LoadName, "BinaryClassifier", "Binary", "bin")] diff --git a/src/Microsoft.ML.Data/Evaluators/ClusteringEvaluator.cs b/src/Microsoft.ML.Data/Evaluators/ClusteringEvaluator.cs index d703890480..2c989b87d1 100644 --- a/src/Microsoft.ML.Data/Evaluators/ClusteringEvaluator.cs +++ b/src/Microsoft.ML.Data/Evaluators/ClusteringEvaluator.cs @@ -2,17 +2,17 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Numeric; using Microsoft.ML.Transforms.FeatureSelection; -using System; -using System.Collections.Generic; -using System.Linq; [assembly: LoadableClass(typeof(ClusteringEvaluator), typeof(ClusteringEvaluator), typeof(ClusteringEvaluator.Arguments), typeof(SignatureEvaluator), "Clustering Evaluator", ClusteringEvaluator.LoadName, "Clustering")] diff --git a/src/Microsoft.ML.Data/Evaluators/EvaluatorBase.cs b/src/Microsoft.ML.Data/Evaluators/EvaluatorBase.cs index 58cc19579a..217f6751cc 100644 --- a/src/Microsoft.ML.Data/Evaluators/EvaluatorBase.cs +++ b/src/Microsoft.ML.Data/Evaluators/EvaluatorBase.cs @@ -5,8 +5,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Reflection; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/Evaluators/EvaluatorStaticExtensions.cs b/src/Microsoft.ML.Data/Evaluators/EvaluatorStaticExtensions.cs index 55f360d879..8d66a8a53c 100644 --- a/src/Microsoft.ML.Data/Evaluators/EvaluatorStaticExtensions.cs +++ b/src/Microsoft.ML.Data/Evaluators/EvaluatorStaticExtensions.cs @@ -3,8 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using Microsoft.ML.Data; -using Microsoft.ML.Training; using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; diff --git a/src/Microsoft.ML.Data/Evaluators/EvaluatorUtils.cs b/src/Microsoft.ML.Data/Evaluators/EvaluatorUtils.cs index e85444921f..8a3c61705d 100644 --- a/src/Microsoft.ML.Data/Evaluators/EvaluatorUtils.cs +++ b/src/Microsoft.ML.Data/Evaluators/EvaluatorUtils.cs @@ -3,17 +3,16 @@ // See the LICENSE file in the project root for more information. #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Microsoft.ML.Data; -using Microsoft.ML.Data.IO; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Transforms; -using Microsoft.ML.Transforms.Conversions; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading; +using Microsoft.ML.Data.IO; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Transforms; +using Microsoft.ML.Transforms.Conversions; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/Evaluators/MamlEvaluator.cs b/src/Microsoft.ML.Data/Evaluators/MamlEvaluator.cs index e67d468119..346346c429 100644 --- a/src/Microsoft.ML.Data/Evaluators/MamlEvaluator.cs +++ b/src/Microsoft.ML.Data/Evaluators/MamlEvaluator.cs @@ -2,12 +2,11 @@ // 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.Data; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML.CommandLine; using Microsoft.ML.EntryPoints; using Microsoft.ML.Transforms; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/Evaluators/Metrics/BinaryClassificationMetrics.cs b/src/Microsoft.ML.Data/Evaluators/Metrics/BinaryClassificationMetrics.cs index 74f81d4719..1fa0e1c68f 100644 --- a/src/Microsoft.ML.Data/Evaluators/Metrics/BinaryClassificationMetrics.cs +++ b/src/Microsoft.ML.Data/Evaluators/Metrics/BinaryClassificationMetrics.cs @@ -2,9 +2,6 @@ // 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; -using Microsoft.ML.Data; - namespace Microsoft.ML.Data { /// diff --git a/src/Microsoft.ML.Data/Evaluators/Metrics/CalibratedBinaryClassificationMetrics.cs b/src/Microsoft.ML.Data/Evaluators/Metrics/CalibratedBinaryClassificationMetrics.cs index bfc65d5c95..902daff204 100644 --- a/src/Microsoft.ML.Data/Evaluators/Metrics/CalibratedBinaryClassificationMetrics.cs +++ b/src/Microsoft.ML.Data/Evaluators/Metrics/CalibratedBinaryClassificationMetrics.cs @@ -2,9 +2,6 @@ // 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; -using Microsoft.ML.Data; - namespace Microsoft.ML.Data { /// diff --git a/src/Microsoft.ML.Data/Evaluators/Metrics/ClusteringMetrics.cs b/src/Microsoft.ML.Data/Evaluators/Metrics/ClusteringMetrics.cs index a0e3c2becc..9b464f2728 100644 --- a/src/Microsoft.ML.Data/Evaluators/Metrics/ClusteringMetrics.cs +++ b/src/Microsoft.ML.Data/Evaluators/Metrics/ClusteringMetrics.cs @@ -2,9 +2,6 @@ // 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; -using Microsoft.ML.Data; - namespace Microsoft.ML.Data { /// diff --git a/src/Microsoft.ML.Data/Evaluators/Metrics/MultiClassClassifierMetrics.cs b/src/Microsoft.ML.Data/Evaluators/Metrics/MultiClassClassifierMetrics.cs index 8bff650c50..b4c9598533 100644 --- a/src/Microsoft.ML.Data/Evaluators/Metrics/MultiClassClassifierMetrics.cs +++ b/src/Microsoft.ML.Data/Evaluators/Metrics/MultiClassClassifierMetrics.cs @@ -2,9 +2,6 @@ // 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; -using Microsoft.ML.Data; - namespace Microsoft.ML.Data { public sealed class MultiClassClassifierMetrics diff --git a/src/Microsoft.ML.Data/Evaluators/Metrics/RankerMetrics.cs b/src/Microsoft.ML.Data/Evaluators/Metrics/RankerMetrics.cs index 7f593dedb0..6a801d1007 100644 --- a/src/Microsoft.ML.Data/Evaluators/Metrics/RankerMetrics.cs +++ b/src/Microsoft.ML.Data/Evaluators/Metrics/RankerMetrics.cs @@ -2,9 +2,6 @@ // 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; -using Microsoft.ML.Data; - namespace Microsoft.ML.Data { public sealed class RankerMetrics diff --git a/src/Microsoft.ML.Data/Evaluators/Metrics/RegressionMetrics.cs b/src/Microsoft.ML.Data/Evaluators/Metrics/RegressionMetrics.cs index 9cca21517e..4d58876019 100644 --- a/src/Microsoft.ML.Data/Evaluators/Metrics/RegressionMetrics.cs +++ b/src/Microsoft.ML.Data/Evaluators/Metrics/RegressionMetrics.cs @@ -2,9 +2,6 @@ // 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; -using Microsoft.ML.Data; - namespace Microsoft.ML.Data { public sealed class RegressionMetrics diff --git a/src/Microsoft.ML.Data/Evaluators/MultiClassClassifierEvaluator.cs b/src/Microsoft.ML.Data/Evaluators/MultiClassClassifierEvaluator.cs index 06d8c210ca..a59d785aa2 100644 --- a/src/Microsoft.ML.Data/Evaluators/MultiClassClassifierEvaluator.cs +++ b/src/Microsoft.ML.Data/Evaluators/MultiClassClassifierEvaluator.cs @@ -2,18 +2,18 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text.RegularExpressions; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.FeatureSelection; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text.RegularExpressions; [assembly: LoadableClass(typeof(MultiClassClassifierEvaluator), typeof(MultiClassClassifierEvaluator), typeof(MultiClassClassifierEvaluator.Arguments), typeof(SignatureEvaluator), "Multi-Class Classifier Evaluator", MultiClassClassifierEvaluator.LoadName, "MultiClassClassifier", "MultiClass")] diff --git a/src/Microsoft.ML.Data/Evaluators/MultiOutputRegressionEvaluator.cs b/src/Microsoft.ML.Data/Evaluators/MultiOutputRegressionEvaluator.cs index c5823bb99c..57e0629418 100644 --- a/src/Microsoft.ML.Data/Evaluators/MultiOutputRegressionEvaluator.cs +++ b/src/Microsoft.ML.Data/Evaluators/MultiOutputRegressionEvaluator.cs @@ -2,17 +2,17 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.Text; +using System.Text.RegularExpressions; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Numeric; -using System; -using System.Collections.Generic; -using System.Text; -using System.Text.RegularExpressions; using Float = System.Single; [assembly: LoadableClass(typeof(MultiOutputRegressionEvaluator), typeof(MultiOutputRegressionEvaluator), typeof(MultiOutputRegressionEvaluator.Arguments), typeof(SignatureEvaluator), diff --git a/src/Microsoft.ML.Data/Evaluators/QuantileRegressionEvaluator.cs b/src/Microsoft.ML.Data/Evaluators/QuantileRegressionEvaluator.cs index 15b7ee6992..10f109c4ce 100644 --- a/src/Microsoft.ML.Data/Evaluators/QuantileRegressionEvaluator.cs +++ b/src/Microsoft.ML.Data/Evaluators/QuantileRegressionEvaluator.cs @@ -2,14 +2,14 @@ // 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.Data; +using System; +using System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using System; -using System.Collections.Generic; using Float = System.Single; [assembly: LoadableClass(typeof(QuantileRegressionEvaluator), typeof(QuantileRegressionEvaluator), typeof(QuantileRegressionEvaluator.Arguments), typeof(SignatureEvaluator), diff --git a/src/Microsoft.ML.Data/Evaluators/RankerEvaluator.cs b/src/Microsoft.ML.Data/Evaluators/RankerEvaluator.cs index 8d72e6eaa2..bcc2b0985e 100644 --- a/src/Microsoft.ML.Data/Evaluators/RankerEvaluator.cs +++ b/src/Microsoft.ML.Data/Evaluators/RankerEvaluator.cs @@ -9,9 +9,9 @@ using System.Text; using System.Text.RegularExpressions; using System.Threading; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/Evaluators/RegressionEvaluator.cs b/src/Microsoft.ML.Data/Evaluators/RegressionEvaluator.cs index f31a22ea06..b26e151847 100644 --- a/src/Microsoft.ML.Data/Evaluators/RegressionEvaluator.cs +++ b/src/Microsoft.ML.Data/Evaluators/RegressionEvaluator.cs @@ -2,14 +2,14 @@ // 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 Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Model; -using Microsoft.ML; -using System.Collections.Generic; -using System; +using Float = System.Single; [assembly: LoadableClass(typeof(RegressionEvaluator), typeof(RegressionEvaluator), typeof(RegressionEvaluator.Arguments), typeof(SignatureEvaluator), "Regression Evaluator", RegressionEvaluator.LoadName, "Regression")] diff --git a/src/Microsoft.ML.Data/Evaluators/RegressionEvaluatorBase.cs b/src/Microsoft.ML.Data/Evaluators/RegressionEvaluatorBase.cs index 0dcb516339..3b42fdbd05 100644 --- a/src/Microsoft.ML.Data/Evaluators/RegressionEvaluatorBase.cs +++ b/src/Microsoft.ML.Data/Evaluators/RegressionEvaluatorBase.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; -using Microsoft.ML.Data; using Microsoft.ML.CommandLine; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/MLContext.cs b/src/Microsoft.ML.Data/MLContext.cs index 6eef3d51bf..73727a113b 100644 --- a/src/Microsoft.ML.Data/MLContext.cs +++ b/src/Microsoft.ML.Data/MLContext.cs @@ -2,11 +2,10 @@ // 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; -using Microsoft.ML.Data; using System; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; +using Microsoft.ML.Data; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Data/Model/ModelHeader.cs b/src/Microsoft.ML.Data/Model/ModelHeader.cs index 84bf57f23a..88fcf9bdad 100644 --- a/src/Microsoft.ML.Data/Model/ModelHeader.cs +++ b/src/Microsoft.ML.Data/Model/ModelHeader.cs @@ -4,7 +4,6 @@ using System; using System.IO; -using System.Reflection; using System.Runtime.InteropServices; using System.Text; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/Model/ModelOperationsCatalog.cs b/src/Microsoft.ML.Data/Model/ModelOperationsCatalog.cs index c91225c4b9..aa8b722147 100644 --- a/src/Microsoft.ML.Data/Model/ModelOperationsCatalog.cs +++ b/src/Microsoft.ML.Data/Model/ModelOperationsCatalog.cs @@ -2,9 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using System.IO; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Data/Model/Onnx/ICanSaveOnnx.cs b/src/Microsoft.ML.Data/Model/Onnx/ICanSaveOnnx.cs index 33c9f628e5..6366c7a159 100644 --- a/src/Microsoft.ML.Data/Model/Onnx/ICanSaveOnnx.cs +++ b/src/Microsoft.ML.Data/Model/Onnx/ICanSaveOnnx.cs @@ -2,8 +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 Microsoft.ML.Data; using Microsoft.ML.Calibrator; +using Microsoft.ML.Data; namespace Microsoft.ML.Model.Onnx { diff --git a/src/Microsoft.ML.Data/Model/Onnx/OnnxNode.cs b/src/Microsoft.ML.Data/Model/Onnx/OnnxNode.cs index 45f86e2647..804d5d90a9 100644 --- a/src/Microsoft.ML.Data/Model/Onnx/OnnxNode.cs +++ b/src/Microsoft.ML.Data/Model/Onnx/OnnxNode.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; -using Microsoft.ML.Data; namespace Microsoft.ML.Model.Onnx { diff --git a/src/Microsoft.ML.Data/Prediction/Calibrator.cs b/src/Microsoft.ML.Data/Prediction/Calibrator.cs index f4a73b8aef..d8b1de1cc8 100644 --- a/src/Microsoft.ML.Data/Prediction/Calibrator.cs +++ b/src/Microsoft.ML.Data/Prediction/Calibrator.cs @@ -2,10 +2,16 @@ // 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.Data; +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.IO; +using System.Linq; using Microsoft.ML; +using Microsoft.ML.Calibrator; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Internallearn; @@ -14,12 +20,6 @@ using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Newtonsoft.Json.Linq; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.IO; -using System.Linq; [assembly: LoadableClass(PlattCalibratorTrainer.Summary, typeof(PlattCalibratorTrainer), null, typeof(SignatureCalibrator), PlattCalibratorTrainer.UserName, diff --git a/src/Microsoft.ML.Data/Prediction/CalibratorCatalog.cs b/src/Microsoft.ML.Data/Prediction/CalibratorCatalog.cs index 788debbd58..8728f5216b 100644 --- a/src/Microsoft.ML.Data/Prediction/CalibratorCatalog.cs +++ b/src/Microsoft.ML.Data/Prediction/CalibratorCatalog.cs @@ -2,16 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Linq; +using Microsoft.ML; using Microsoft.ML.Calibrator; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Model; using Microsoft.ML.Training; -using System; -using System.Collections.Generic; -using System.Linq; [assembly: LoadableClass(typeof(CalibratorTransformer), typeof(PlattCalibratorTransformer), null, typeof(SignatureLoadModel), "", PlattCalibratorTransformer.LoadName)] diff --git a/src/Microsoft.ML.Data/Prediction/PredictionEngine.cs b/src/Microsoft.ML.Data/Prediction/PredictionEngine.cs index eebcd56ead..d4fede17f7 100644 --- a/src/Microsoft.ML.Data/Prediction/PredictionEngine.cs +++ b/src/Microsoft.ML.Data/Prediction/PredictionEngine.cs @@ -2,11 +2,11 @@ // 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.Core.Data; -using Microsoft.ML.Data; using System; using System.Collections.Generic; using System.IO; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Data/Scorers/BinaryClassifierScorer.cs b/src/Microsoft.ML.Data/Scorers/BinaryClassifierScorer.cs index 270f0ec3a6..24b5433d9a 100644 --- a/src/Microsoft.ML.Data/Scorers/BinaryClassifierScorer.cs +++ b/src/Microsoft.ML.Data/Scorers/BinaryClassifierScorer.cs @@ -2,15 +2,14 @@ // 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.Data; +using System; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Newtonsoft.Json.Linq; -using System; - using Float = System.Single; [assembly: LoadableClass(typeof(BinaryClassifierScorer), typeof(BinaryClassifierScorer.Arguments), typeof(SignatureDataScorer), diff --git a/src/Microsoft.ML.Data/Scorers/ClusteringScorer.cs b/src/Microsoft.ML.Data/Scorers/ClusteringScorer.cs index 15d940d298..8f950bcf69 100644 --- a/src/Microsoft.ML.Data/Scorers/ClusteringScorer.cs +++ b/src/Microsoft.ML.Data/Scorers/ClusteringScorer.cs @@ -2,16 +2,15 @@ // 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 Microsoft.ML.Data; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Pfa; using Microsoft.ML.Numeric; using Newtonsoft.Json.Linq; +using Float = System.Single; [assembly: LoadableClass(typeof(ClusteringScorer), typeof(ClusteringScorer.Arguments), typeof(SignatureDataScorer), "Clustering Scorer", "ClusteringScorer", MetadataUtils.Const.ScoreColumnKind.Clustering)] diff --git a/src/Microsoft.ML.Data/Scorers/FeatureContributionCalculation.cs b/src/Microsoft.ML.Data/Scorers/FeatureContributionCalculation.cs index b7a23752da..cc9e4cce85 100644 --- a/src/Microsoft.ML.Data/Scorers/FeatureContributionCalculation.cs +++ b/src/Microsoft.ML.Data/Scorers/FeatureContributionCalculation.cs @@ -6,9 +6,9 @@ using System.Collections.Generic; using System.Reflection; using System.Text; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/Scorers/GenericScorer.cs b/src/Microsoft.ML.Data/Scorers/GenericScorer.cs index db55bd0cef..cefa5af97e 100644 --- a/src/Microsoft.ML.Data/Scorers/GenericScorer.cs +++ b/src/Microsoft.ML.Data/Scorers/GenericScorer.cs @@ -4,8 +4,8 @@ using System; using System.Collections.Generic; -using Microsoft.ML.Data; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; diff --git a/src/Microsoft.ML.Data/Scorers/MultiClassClassifierScorer.cs b/src/Microsoft.ML.Data/Scorers/MultiClassClassifierScorer.cs index fc198369ac..52e963b3a2 100644 --- a/src/Microsoft.ML.Data/Scorers/MultiClassClassifierScorer.cs +++ b/src/Microsoft.ML.Data/Scorers/MultiClassClassifierScorer.cs @@ -2,8 +2,11 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.Threading; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; @@ -11,9 +14,6 @@ using Microsoft.ML.Model.Pfa; using Microsoft.ML.Numeric; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Threading; using Float = System.Single; [assembly: LoadableClass(typeof(MultiClassClassifierScorer), diff --git a/src/Microsoft.ML.Data/Scorers/PredictedLabelScorerBase.cs b/src/Microsoft.ML.Data/Scorers/PredictedLabelScorerBase.cs index b2e7390649..4cea6fe59f 100644 --- a/src/Microsoft.ML.Data/Scorers/PredictedLabelScorerBase.cs +++ b/src/Microsoft.ML.Data/Scorers/PredictedLabelScorerBase.cs @@ -2,15 +2,14 @@ // 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.Data; +using System; +using System.Collections.Generic; using Microsoft.ML.CommandLine; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; using Float = System.Single; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Data/Scorers/PredictionTransformer.cs b/src/Microsoft.ML.Data/Scorers/PredictionTransformer.cs index 1a36823bce..c0e7b9c0a9 100644 --- a/src/Microsoft.ML.Data/Scorers/PredictionTransformer.cs +++ b/src/Microsoft.ML.Data/Scorers/PredictionTransformer.cs @@ -3,8 +3,8 @@ // See the LICENSE file in the project root for more information. using System.IO; -using Microsoft.ML.Data; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/Scorers/QuantileRegressionScorer.cs b/src/Microsoft.ML.Data/Scorers/QuantileRegressionScorer.cs index ba7a00d3bf..388cd236c0 100644 --- a/src/Microsoft.ML.Data/Scorers/QuantileRegressionScorer.cs +++ b/src/Microsoft.ML.Data/Scorers/QuantileRegressionScorer.cs @@ -4,9 +4,9 @@ using System; using System.Linq; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Internallearn; [assembly: LoadableClass(typeof(IDataScorerTransform), typeof(QuantileRegressionScorerTransform), typeof(QuantileRegressionScorerTransform.Arguments), diff --git a/src/Microsoft.ML.Data/Scorers/RowToRowScorerBase.cs b/src/Microsoft.ML.Data/Scorers/RowToRowScorerBase.cs index dba5c4289a..c3274c5748 100644 --- a/src/Microsoft.ML.Data/Scorers/RowToRowScorerBase.cs +++ b/src/Microsoft.ML.Data/Scorers/RowToRowScorerBase.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -using Microsoft.ML.Data; using Microsoft.ML.CommandLine; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/Scorers/SchemaBindablePredictorWrapper.cs b/src/Microsoft.ML.Data/Scorers/SchemaBindablePredictorWrapper.cs index aade6d061a..2bb11d46ce 100644 --- a/src/Microsoft.ML.Data/Scorers/SchemaBindablePredictorWrapper.cs +++ b/src/Microsoft.ML.Data/Scorers/SchemaBindablePredictorWrapper.cs @@ -4,18 +4,18 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.IO; +using System.Reflection; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.IO; -using System.Reflection; using Float = System.Single; [assembly: LoadableClass(typeof(SchemaBindablePredictorWrapper), null, typeof(SignatureLoadModel), diff --git a/src/Microsoft.ML.Data/Scorers/ScoreMapperSchema.cs b/src/Microsoft.ML.Data/Scorers/ScoreMapperSchema.cs index fe0995a9c3..412b11a57e 100644 --- a/src/Microsoft.ML.Data/Scorers/ScoreMapperSchema.cs +++ b/src/Microsoft.ML.Data/Scorers/ScoreMapperSchema.cs @@ -2,7 +2,6 @@ // 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.Data; using System; using System.Collections.Generic; diff --git a/src/Microsoft.ML.Data/StaticPipe/DataLoadSaveOperationsExtensions.cs b/src/Microsoft.ML.Data/StaticPipe/DataLoadSaveOperationsExtensions.cs index a7ea5e910d..db30ecd454 100644 --- a/src/Microsoft.ML.Data/StaticPipe/DataLoadSaveOperationsExtensions.cs +++ b/src/Microsoft.ML.Data/StaticPipe/DataLoadSaveOperationsExtensions.cs @@ -2,9 +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 Microsoft.ML; -using Microsoft.ML.Data; using System; +using Microsoft.ML.Data; using static Microsoft.ML.Data.TextLoader; namespace Microsoft.ML.StaticPipe diff --git a/src/Microsoft.ML.Data/StaticPipe/DataView.cs b/src/Microsoft.ML.Data/StaticPipe/DataView.cs index 1b6cc27122..e8dbaae416 100644 --- a/src/Microsoft.ML.Data/StaticPipe/DataView.cs +++ b/src/Microsoft.ML.Data/StaticPipe/DataView.cs @@ -2,11 +2,11 @@ // 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.Data; -using Microsoft.ML.StaticPipe.Runtime; -using System.Collections.Generic; using System; +using System.Collections.Generic; using System.Linq; +using Microsoft.ML.Data; +using Microsoft.ML.StaticPipe.Runtime; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.Data/StaticPipe/PipelineColumn.cs b/src/Microsoft.ML.Data/StaticPipe/PipelineColumn.cs index 5aef9eb706..66686b94f1 100644 --- a/src/Microsoft.ML.Data/StaticPipe/PipelineColumn.cs +++ b/src/Microsoft.ML.Data/StaticPipe/PipelineColumn.cs @@ -4,7 +4,6 @@ using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.StaticPipe.Runtime; namespace Microsoft.ML.StaticPipe diff --git a/src/Microsoft.ML.Data/StaticPipe/Reconciler.cs b/src/Microsoft.ML.Data/StaticPipe/Reconciler.cs index 6f376b61e9..c249def102 100644 --- a/src/Microsoft.ML.Data/StaticPipe/Reconciler.cs +++ b/src/Microsoft.ML.Data/StaticPipe/Reconciler.cs @@ -2,11 +2,10 @@ // 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.Core.Data; -using Microsoft.ML; -using Microsoft.ML.Transforms; using System; using System.Collections.Generic; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Transforms; namespace Microsoft.ML.StaticPipe.Runtime { diff --git a/src/Microsoft.ML.Data/StaticPipe/SchemaBearing.cs b/src/Microsoft.ML.Data/StaticPipe/SchemaBearing.cs index 60cfdb2a59..2c439e16a9 100644 --- a/src/Microsoft.ML.Data/StaticPipe/SchemaBearing.cs +++ b/src/Microsoft.ML.Data/StaticPipe/SchemaBearing.cs @@ -2,11 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Threading; using Microsoft.ML.Core.Data; -using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.StaticPipe.Runtime; -using System.Threading; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.Data/StaticPipe/StaticPipeExtensions.cs b/src/Microsoft.ML.Data/StaticPipe/StaticPipeExtensions.cs index a0b9ded104..13b571825c 100644 --- a/src/Microsoft.ML.Data/StaticPipe/StaticPipeExtensions.cs +++ b/src/Microsoft.ML.Data/StaticPipe/StaticPipeExtensions.cs @@ -2,10 +2,9 @@ // 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.Data; using System; -using Microsoft.ML; using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.StaticPipe.Runtime; namespace Microsoft.ML.StaticPipe diff --git a/src/Microsoft.ML.Data/StaticPipe/StaticPipeUtils.cs b/src/Microsoft.ML.Data/StaticPipe/StaticPipeUtils.cs index 29ca5d199a..ec893a0589 100644 --- a/src/Microsoft.ML.Data/StaticPipe/StaticPipeUtils.cs +++ b/src/Microsoft.ML.Data/StaticPipe/StaticPipeUtils.cs @@ -6,8 +6,8 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; -using Microsoft.ML.Core.Data; using Microsoft.ML; +using Microsoft.ML.Core.Data; using Microsoft.ML.Transforms; namespace Microsoft.ML.StaticPipe.Runtime diff --git a/src/Microsoft.ML.Data/StaticPipe/TrainerEstimatorReconciler.cs b/src/Microsoft.ML.Data/StaticPipe/TrainerEstimatorReconciler.cs index 48bcf00aa8..15753abedf 100644 --- a/src/Microsoft.ML.Data/StaticPipe/TrainerEstimatorReconciler.cs +++ b/src/Microsoft.ML.Data/StaticPipe/TrainerEstimatorReconciler.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.ML.StaticPipe.Runtime { diff --git a/src/Microsoft.ML.Data/StaticPipe/Transformer.cs b/src/Microsoft.ML.Data/StaticPipe/Transformer.cs index 92566cf3c9..472d4a60a7 100644 --- a/src/Microsoft.ML.Data/StaticPipe/Transformer.cs +++ b/src/Microsoft.ML.Data/StaticPipe/Transformer.cs @@ -4,7 +4,6 @@ using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.StaticPipe.Runtime; namespace Microsoft.ML.StaticPipe diff --git a/src/Microsoft.ML.Data/TrainContext.cs b/src/Microsoft.ML.Data/TrainContext.cs index f79fef57ff..b0deb9b24b 100644 --- a/src/Microsoft.ML.Data/TrainContext.cs +++ b/src/Microsoft.ML.Data/TrainContext.cs @@ -2,13 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Data/Training/EarlyStoppingCriteria.cs b/src/Microsoft.ML.Data/Training/EarlyStoppingCriteria.cs index 54874878db..26a58b5b1a 100644 --- a/src/Microsoft.ML.Data/Training/EarlyStoppingCriteria.cs +++ b/src/Microsoft.ML.Data/Training/EarlyStoppingCriteria.cs @@ -2,14 +2,12 @@ // 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 Microsoft.ML; using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.EntryPoints; +using Microsoft.ML.Internal.Internallearn; +using Float = System.Single; [assembly: LoadableClass(typeof(TolerantEarlyStoppingCriterion), typeof(TolerantEarlyStoppingCriterion.Arguments), typeof(SignatureEarlyStoppingCriterion), "Tolerant (TR)", "tr")] [assembly: LoadableClass(typeof(GLEarlyStoppingCriterion), typeof(GLEarlyStoppingCriterion.Arguments), typeof(SignatureEarlyStoppingCriterion), "Loss of Generality (GL)", "gl")] diff --git a/src/Microsoft.ML.Data/Training/TrainerUtils.cs b/src/Microsoft.ML.Data/Training/TrainerUtils.cs index 0678e373ee..26a431c88d 100644 --- a/src/Microsoft.ML.Data/Training/TrainerUtils.cs +++ b/src/Microsoft.ML.Data/Training/TrainerUtils.cs @@ -2,12 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; -using System; -using System.Collections.Generic; namespace Microsoft.ML.Training { diff --git a/src/Microsoft.ML.Data/Training/TrainingStaticExtensions.cs b/src/Microsoft.ML.Data/Training/TrainingStaticExtensions.cs index cf887f19f3..b950f87180 100644 --- a/src/Microsoft.ML.Data/Training/TrainingStaticExtensions.cs +++ b/src/Microsoft.ML.Data/Training/TrainingStaticExtensions.cs @@ -2,13 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; -using System; -using System.Linq; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Data/Transforms/BindingsWrappedRowCursor.cs b/src/Microsoft.ML.Data/Transforms/BindingsWrappedRowCursor.cs index e266dc266d..d489acfe9a 100644 --- a/src/Microsoft.ML.Data/Transforms/BindingsWrappedRowCursor.cs +++ b/src/Microsoft.ML.Data/Transforms/BindingsWrappedRowCursor.cs @@ -2,8 +2,6 @@ // 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.Data; - namespace Microsoft.ML.Data { /// diff --git a/src/Microsoft.ML.Data/Transforms/CatalogUtils.cs b/src/Microsoft.ML.Data/Transforms/CatalogUtils.cs index 0d9137fb48..f7aed4a8de 100644 --- a/src/Microsoft.ML.Data/Transforms/CatalogUtils.cs +++ b/src/Microsoft.ML.Data/Transforms/CatalogUtils.cs @@ -2,10 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Text; - namespace Microsoft.ML.Data { /// diff --git a/src/Microsoft.ML.Data/Transforms/ColumnBindingsBase.cs b/src/Microsoft.ML.Data/Transforms/ColumnBindingsBase.cs index 8c1c651c9a..eb6eae0972 100644 --- a/src/Microsoft.ML.Data/Transforms/ColumnBindingsBase.cs +++ b/src/Microsoft.ML.Data/Transforms/ColumnBindingsBase.cs @@ -2,16 +2,14 @@ // 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.Data; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; -using Microsoft.ML.Transforms.Conversions; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Transforms.Conversions; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs b/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs index fd659f7cc2..7f01259379 100644 --- a/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs +++ b/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingEstimator.cs @@ -2,15 +2,11 @@ // 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.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.StaticPipe.Runtime; using System; using System.Collections.Generic; using System.Linq; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; namespace Microsoft.ML.Transforms { diff --git a/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingTransformer.cs b/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingTransformer.cs index 2c76dc3f4a..0c245ceefc 100644 --- a/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingTransformer.cs +++ b/src/Microsoft.ML.Data/Transforms/ColumnConcatenatingTransformer.cs @@ -2,19 +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 Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(ColumnConcatenatingTransformer.Summary, typeof(IDataTransform), typeof(ColumnConcatenatingTransformer), typeof(ColumnConcatenatingTransformer.TaggedArguments), typeof(SignatureDataTransform), ColumnConcatenatingTransformer.UserName, ColumnConcatenatingTransformer.LoadName, "ConcatTransform", DocName = "transform/ConcatTransform.md")] diff --git a/src/Microsoft.ML.Data/Transforms/ColumnCopying.cs b/src/Microsoft.ML.Data/Transforms/ColumnCopying.cs index 32008b5330..2997a9a1c4 100644 --- a/src/Microsoft.ML.Data/Transforms/ColumnCopying.cs +++ b/src/Microsoft.ML.Data/Transforms/ColumnCopying.cs @@ -6,10 +6,10 @@ using System.Collections.Generic; using System.Linq; using System.Text; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/Transforms/ColumnSelecting.cs b/src/Microsoft.ML.Data/Transforms/ColumnSelecting.cs index 898c5ef09c..ce7fb554ee 100644 --- a/src/Microsoft.ML.Data/Transforms/ColumnSelecting.cs +++ b/src/Microsoft.ML.Data/Transforms/ColumnSelecting.cs @@ -2,17 +2,17 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.Linq; [assembly: LoadableClass(ColumnSelectingTransformer.Summary, typeof(IDataTransform), typeof(ColumnSelectingTransformer), typeof(ColumnSelectingTransformer.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.Data/Transforms/ConversionsExtensionsCatalog.cs b/src/Microsoft.ML.Data/Transforms/ConversionsExtensionsCatalog.cs index 12d9e22a71..d2481fb4be 100644 --- a/src/Microsoft.ML.Data/Transforms/ConversionsExtensionsCatalog.cs +++ b/src/Microsoft.ML.Data/Transforms/ConversionsExtensionsCatalog.cs @@ -2,11 +2,9 @@ // 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.Transforms; -using Microsoft.ML; +using System.Collections.Generic; using Microsoft.ML.Data; using Microsoft.ML.Transforms.Conversions; -using System.Collections.Generic; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Data/Transforms/DropSlotsTransform.cs b/src/Microsoft.ML.Data/Transforms/DropSlotsTransform.cs index c88ce1bcc8..f14144a45e 100644 --- a/src/Microsoft.ML.Data/Transforms/DropSlotsTransform.cs +++ b/src/Microsoft.ML.Data/Transforms/DropSlotsTransform.cs @@ -2,18 +2,18 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms.FeatureSelection; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; [assembly: LoadableClass(SlotsDroppingTransformer.Summary, typeof(IDataTransform), typeof(SlotsDroppingTransformer), typeof(SlotsDroppingTransformer.Arguments), typeof(SignatureDataTransform), SlotsDroppingTransformer.FriendlyName, SlotsDroppingTransformer.LoaderSignature, "DropSlots")] diff --git a/src/Microsoft.ML.Data/Transforms/ExtensionsCatalog.cs b/src/Microsoft.ML.Data/Transforms/ExtensionsCatalog.cs index e91962cd66..18393ba934 100644 --- a/src/Microsoft.ML.Data/Transforms/ExtensionsCatalog.cs +++ b/src/Microsoft.ML.Data/Transforms/ExtensionsCatalog.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms; diff --git a/src/Microsoft.ML.Data/Transforms/FeatureContributionCalculationTransform.cs b/src/Microsoft.ML.Data/Transforms/FeatureContributionCalculationTransform.cs index 18529ac043..7b2bbd87ab 100644 --- a/src/Microsoft.ML.Data/Transforms/FeatureContributionCalculationTransform.cs +++ b/src/Microsoft.ML.Data/Transforms/FeatureContributionCalculationTransform.cs @@ -5,11 +5,10 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Reflection; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/Transforms/GenerateNumberTransform.cs b/src/Microsoft.ML.Data/Transforms/GenerateNumberTransform.cs index 4dfe73744e..e114d5e0bc 100644 --- a/src/Microsoft.ML.Data/Transforms/GenerateNumberTransform.cs +++ b/src/Microsoft.ML.Data/Transforms/GenerateNumberTransform.cs @@ -2,15 +2,15 @@ // 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.Data; +using System; +using System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; using Float = System.Single; [assembly: LoadableClass(GenerateNumberTransform.Summary, typeof(GenerateNumberTransform), typeof(GenerateNumberTransform.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.Data/Transforms/Hashing.cs b/src/Microsoft.ML.Data/Transforms/Hashing.cs index a770d6fb9a..9a0fbff6b1 100644 --- a/src/Microsoft.ML.Data/Transforms/Hashing.cs +++ b/src/Microsoft.ML.Data/Transforms/Hashing.cs @@ -2,18 +2,18 @@ // 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.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; -using Microsoft.ML.Transforms.Conversions; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; +using Microsoft.ML; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; +using Microsoft.ML.Transforms.Conversions; [assembly: LoadableClass(HashingTransformer.Summary, typeof(IDataTransform), typeof(HashingTransformer), typeof(HashingTransformer.Arguments), typeof(SignatureDataTransform), "Hash Transform", "HashTransform", "Hash", DocName = "transform/HashTransform.md")] diff --git a/src/Microsoft.ML.Data/Transforms/InvertHashUtils.cs b/src/Microsoft.ML.Data/Transforms/InvertHashUtils.cs index 8bf94ef57f..355b3e0333 100644 --- a/src/Microsoft.ML.Data/Transforms/InvertHashUtils.cs +++ b/src/Microsoft.ML.Data/Transforms/InvertHashUtils.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.IO; using System.Text; -using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/Transforms/KeyToValue.cs b/src/Microsoft.ML.Data/Transforms/KeyToValue.cs index 4df2548545..0cf18b2772 100644 --- a/src/Microsoft.ML.Data/Transforms/KeyToValue.cs +++ b/src/Microsoft.ML.Data/Transforms/KeyToValue.cs @@ -2,23 +2,21 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Pfa; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Conversions; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; [assembly: LoadableClass(typeof(IDataTransform), typeof(KeyToValueMappingTransformer), typeof(KeyToValueMappingTransformer.Arguments), typeof(SignatureDataTransform), KeyToValueMappingTransformer.UserName, KeyToValueMappingTransformer.LoaderSignature, "KeyToValue", "KeyToVal", "Unterm")] diff --git a/src/Microsoft.ML.Data/Transforms/KeyToVector.cs b/src/Microsoft.ML.Data/Transforms/KeyToVector.cs index 9f6813adf1..c49848465e 100644 --- a/src/Microsoft.ML.Data/Transforms/KeyToVector.cs +++ b/src/Microsoft.ML.Data/Transforms/KeyToVector.cs @@ -2,20 +2,20 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Microsoft.ML.Transforms.Conversions; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(KeyToVectorMappingTransformer.Summary, typeof(IDataTransform), typeof(KeyToVectorMappingTransformer), typeof(KeyToVectorMappingTransformer.Arguments), typeof(SignatureDataTransform), "Key To Vector Transform", KeyToVectorMappingTransformer.UserName, "KeyToVector", "ToVector", DocName = "transform/KeyToVectorTransform.md")] diff --git a/src/Microsoft.ML.Data/Transforms/LabelConvertTransform.cs b/src/Microsoft.ML.Data/Transforms/LabelConvertTransform.cs index e1f20bc719..2e27b89496 100644 --- a/src/Microsoft.ML.Data/Transforms/LabelConvertTransform.cs +++ b/src/Microsoft.ML.Data/Transforms/LabelConvertTransform.cs @@ -2,15 +2,15 @@ // 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.Data; +using System; +using System.Text; +using System.Threading; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.Text; -using System.Threading; using Float = System.Single; [assembly: LoadableClass(LabelConvertTransform.Summary, typeof(LabelConvertTransform), typeof(LabelConvertTransform.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.Data/Transforms/LabelIndicatorTransform.cs b/src/Microsoft.ML.Data/Transforms/LabelIndicatorTransform.cs index f269a9eea5..905c123375 100644 --- a/src/Microsoft.ML.Data/Transforms/LabelIndicatorTransform.cs +++ b/src/Microsoft.ML.Data/Transforms/LabelIndicatorTransform.cs @@ -2,6 +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 System; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; @@ -9,8 +11,6 @@ using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.Text; [assembly: LoadableClass(typeof(LabelIndicatorTransform), typeof(LabelIndicatorTransform.Arguments), typeof(SignatureDataTransform), LabelIndicatorTransform.UserName, LabelIndicatorTransform.LoadName, "LabelIndicator")] diff --git a/src/Microsoft.ML.Data/Transforms/MetadataDispatcher.cs b/src/Microsoft.ML.Data/Transforms/MetadataDispatcher.cs index 8dc98752c1..38ee0f82e0 100644 --- a/src/Microsoft.ML.Data/Transforms/MetadataDispatcher.cs +++ b/src/Microsoft.ML.Data/Transforms/MetadataDispatcher.cs @@ -5,11 +5,7 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using Microsoft.ML.Data; -using Microsoft.ML.CommandLine; using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/Transforms/NAFilter.cs b/src/Microsoft.ML.Data/Transforms/NAFilter.cs index 4258d614d0..1442de304d 100644 --- a/src/Microsoft.ML.Data/Transforms/NAFilter.cs +++ b/src/Microsoft.ML.Data/Transforms/NAFilter.cs @@ -3,6 +3,9 @@ // See the LICENSE file in the project root for more information. // REVIEW: As soon as we stop writing sizeof(Float), or when we retire the double builds, we can remove this. +using System; +using System.Collections.Generic; +using System.Reflection; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; @@ -10,9 +13,6 @@ using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.Reflection; using Float = System.Single; [assembly: LoadableClass(NAFilter.Summary, typeof(NAFilter), typeof(NAFilter.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.Data/Transforms/NopTransform.cs b/src/Microsoft.ML.Data/Transforms/NopTransform.cs index e42e8055cb..128df8b36a 100644 --- a/src/Microsoft.ML.Data/Transforms/NopTransform.cs +++ b/src/Microsoft.ML.Data/Transforms/NopTransform.cs @@ -3,8 +3,8 @@ // See the LICENSE file in the project root for more information. using System; -using Microsoft.ML.Data; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Data/Transforms/NormalizeColumn.cs b/src/Microsoft.ML.Data/Transforms/NormalizeColumn.cs index 16f3a53e15..1d0ee991d1 100644 --- a/src/Microsoft.ML.Data/Transforms/NormalizeColumn.cs +++ b/src/Microsoft.ML.Data/Transforms/NormalizeColumn.cs @@ -2,9 +2,14 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Model; @@ -12,11 +17,6 @@ using Microsoft.ML.Model.Pfa; using Microsoft.ML.Transforms.Normalizers; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Linq; -using System.Text; [assembly: LoadableClass(NormalizeTransform.MinMaxNormalizerSummary, typeof(IDataTransform), typeof(NormalizeTransform), typeof(NormalizeTransform.MinMaxArguments), typeof(SignatureDataTransform), NormalizeTransform.MinMaxNormalizerUserName, "MinMaxNormalizer", NormalizeTransform.MinMaxNormalizerShortName)] diff --git a/src/Microsoft.ML.Data/Transforms/NormalizeColumnDbl.cs b/src/Microsoft.ML.Data/Transforms/NormalizeColumnDbl.cs index 827de6c851..3c804e754a 100644 --- a/src/Microsoft.ML.Data/Transforms/NormalizeColumnDbl.cs +++ b/src/Microsoft.ML.Data/Transforms/NormalizeColumnDbl.cs @@ -2,18 +2,17 @@ // 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; +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Linq; +using System.Runtime.CompilerServices; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Linq; -using System.Runtime.CompilerServices; namespace Microsoft.ML.Transforms.Normalizers { diff --git a/src/Microsoft.ML.Data/Transforms/NormalizeColumnSng.cs b/src/Microsoft.ML.Data/Transforms/NormalizeColumnSng.cs index eb630b2e5a..cb84845988 100644 --- a/src/Microsoft.ML.Data/Transforms/NormalizeColumnSng.cs +++ b/src/Microsoft.ML.Data/Transforms/NormalizeColumnSng.cs @@ -2,18 +2,17 @@ // 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; +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Linq; +using System.Runtime.CompilerServices; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Linq; -using System.Runtime.CompilerServices; namespace Microsoft.ML.Transforms.Normalizers { diff --git a/src/Microsoft.ML.Data/Transforms/NormalizeUtils.cs b/src/Microsoft.ML.Data/Transforms/NormalizeUtils.cs index 652cf534ad..1dc57a833e 100644 --- a/src/Microsoft.ML.Data/Transforms/NormalizeUtils.cs +++ b/src/Microsoft.ML.Data/Transforms/NormalizeUtils.cs @@ -2,16 +2,16 @@ // 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.Data; +using System; +using System.Collections.Generic; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Microsoft.ML.Transforms.Normalizers; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; [assembly: LoadableClass(typeof(void), typeof(Normalize), null, typeof(SignatureEntryPointModule), "Normalize")] diff --git a/src/Microsoft.ML.Data/Transforms/Normalizer.cs b/src/Microsoft.ML.Data/Transforms/Normalizer.cs index 7a6e39d0ee..2dae36c95a 100644 --- a/src/Microsoft.ML.Data/Transforms/Normalizer.cs +++ b/src/Microsoft.ML.Data/Transforms/Normalizer.cs @@ -2,19 +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 System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Linq; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Microsoft.ML.Transforms.Normalizers; using Newtonsoft.Json.Linq; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Linq; using static Microsoft.ML.Transforms.Normalizers.NormalizeTransform; [assembly: LoadableClass(typeof(NormalizingTransformer), null, typeof(SignatureLoadModel), diff --git a/src/Microsoft.ML.Data/Transforms/NormalizerCatalog.cs b/src/Microsoft.ML.Data/Transforms/NormalizerCatalog.cs index 284e988bb7..a89a8a0ee2 100644 --- a/src/Microsoft.ML.Data/Transforms/NormalizerCatalog.cs +++ b/src/Microsoft.ML.Data/Transforms/NormalizerCatalog.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms.Normalizers; diff --git a/src/Microsoft.ML.Data/Transforms/OneToOneTransformerBase.cs b/src/Microsoft.ML.Data/Transforms/OneToOneTransformerBase.cs index 6c5e4f3452..991ee26284 100644 --- a/src/Microsoft.ML.Data/Transforms/OneToOneTransformerBase.cs +++ b/src/Microsoft.ML.Data/Transforms/OneToOneTransformerBase.cs @@ -2,10 +2,9 @@ // 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.Data; -using Microsoft.ML.Model; using System; using System.Collections.Generic; +using Microsoft.ML.Model; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/Transforms/PerGroupTransformBase.cs b/src/Microsoft.ML.Data/Transforms/PerGroupTransformBase.cs index 7aaa182d76..5d6b71246a 100644 --- a/src/Microsoft.ML.Data/Transforms/PerGroupTransformBase.cs +++ b/src/Microsoft.ML.Data/Transforms/PerGroupTransformBase.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using Microsoft.ML.Data; using Microsoft.ML.Model; namespace Microsoft.ML.Data diff --git a/src/Microsoft.ML.Data/Transforms/RangeFilter.cs b/src/Microsoft.ML.Data/Transforms/RangeFilter.cs index 27019f17b6..04d0a75c47 100644 --- a/src/Microsoft.ML.Data/Transforms/RangeFilter.cs +++ b/src/Microsoft.ML.Data/Transforms/RangeFilter.cs @@ -2,6 +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 System; +using System.Reflection; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; @@ -9,8 +11,6 @@ using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.Reflection; using Float = System.Single; [assembly: LoadableClass(RangeFilter.Summary, typeof(RangeFilter), typeof(RangeFilter.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.Data/Transforms/RowShufflingTransformer.cs b/src/Microsoft.ML.Data/Transforms/RowShufflingTransformer.cs index ec96d610cd..028a94cb87 100644 --- a/src/Microsoft.ML.Data/Transforms/RowShufflingTransformer.cs +++ b/src/Microsoft.ML.Data/Transforms/RowShufflingTransformer.cs @@ -4,17 +4,17 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; -using Microsoft.ML.Transforms; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using System.Threading.Tasks.Dataflow; +using Microsoft.ML; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; +using Microsoft.ML.Transforms; [assembly: LoadableClass(RowShufflingTransformer.Summary, typeof(RowShufflingTransformer), typeof(RowShufflingTransformer.Arguments), typeof(SignatureDataTransform), "Shuffle Transform", "ShuffleTransform", "Shuffle", "shuf")] diff --git a/src/Microsoft.ML.Data/Transforms/RowToRowTransformerBase.cs b/src/Microsoft.ML.Data/Transforms/RowToRowTransformerBase.cs index 9d8b121a69..e98b9aa231 100644 --- a/src/Microsoft.ML.Data/Transforms/RowToRowTransformerBase.cs +++ b/src/Microsoft.ML.Data/Transforms/RowToRowTransformerBase.cs @@ -2,11 +2,10 @@ // 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.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML.Model; using System; using System.Linq; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Model; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/Transforms/SkipTakeFilter.cs b/src/Microsoft.ML.Data/Transforms/SkipTakeFilter.cs index 294e8b023e..f4faea48eb 100644 --- a/src/Microsoft.ML.Data/Transforms/SkipTakeFilter.cs +++ b/src/Microsoft.ML.Data/Transforms/SkipTakeFilter.cs @@ -2,14 +2,14 @@ // 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.Data; +using System; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; [assembly: LoadableClass(SkipTakeFilter.SkipTakeFilterSummary, typeof(SkipTakeFilter), typeof(SkipTakeFilter.Arguments), typeof(SignatureDataTransform), SkipTakeFilter.SkipTakeFilterUserName, "SkipTakeFilter", SkipTakeFilter.SkipTakeFilterShortName)] diff --git a/src/Microsoft.ML.Data/Transforms/TrainAndScoreTransformer.cs b/src/Microsoft.ML.Data/Transforms/TrainAndScoreTransformer.cs index 1017dacff5..b1fa2491f9 100644 --- a/src/Microsoft.ML.Data/Transforms/TrainAndScoreTransformer.cs +++ b/src/Microsoft.ML.Data/Transforms/TrainAndScoreTransformer.cs @@ -2,6 +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 System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; @@ -9,8 +10,6 @@ using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; [assembly: LoadableClass(ScoringTransformer.Summary, typeof(IDataTransform), typeof(ScoringTransformer), typeof(ScoringTransformer.Arguments), typeof(SignatureDataTransform), "Score Predictor", "Score")] diff --git a/src/Microsoft.ML.Data/Transforms/TransformBase.cs b/src/Microsoft.ML.Data/Transforms/TransformBase.cs index 3534043044..141c6aceee 100644 --- a/src/Microsoft.ML.Data/Transforms/TransformBase.cs +++ b/src/Microsoft.ML.Data/Transforms/TransformBase.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; diff --git a/src/Microsoft.ML.Data/Transforms/TypeConverting.cs b/src/Microsoft.ML.Data/Transforms/TypeConverting.cs index 750bd334b8..59ef43e684 100644 --- a/src/Microsoft.ML.Data/Transforms/TypeConverting.cs +++ b/src/Microsoft.ML.Data/Transforms/TypeConverting.cs @@ -4,21 +4,19 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(TypeConvertingTransformer.Summary, typeof(IDataTransform), typeof(TypeConvertingTransformer), typeof(TypeConvertingTransformer.Arguments), typeof(SignatureDataTransform), TypeConvertingTransformer.UserName, TypeConvertingTransformer.ShortName, "ConvertTransform", DocName = "transform/ConvertTransform.md")] diff --git a/src/Microsoft.ML.Data/Transforms/ValueMappingTransformer.cs b/src/Microsoft.ML.Data/Transforms/ValueMappingTransformer.cs index 2c799a1d25..7ab229169b 100644 --- a/src/Microsoft.ML.Data/Transforms/ValueMappingTransformer.cs +++ b/src/Microsoft.ML.Data/Transforms/ValueMappingTransformer.cs @@ -2,19 +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 Microsoft.ML.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; [assembly: LoadableClass(ValueMappingTransformer.Summary, typeof(IDataTransform), typeof(ValueMappingTransformer), typeof(ValueMappingTransformer.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingEstimator.cs b/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingEstimator.cs index 0b46c9ef58..a66c731820 100644 --- a/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingEstimator.cs +++ b/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingEstimator.cs @@ -2,14 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.StaticPipe.Runtime; -using System; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.ML.Transforms.Conversions { diff --git a/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingTransformer.cs b/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingTransformer.cs index df218750d5..e35571c320 100644 --- a/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingTransformer.cs +++ b/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingTransformer.cs @@ -2,9 +2,15 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; @@ -13,12 +19,6 @@ using Microsoft.ML.Model.Pfa; using Microsoft.ML.Transforms.Conversions; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading; [assembly: LoadableClass(ValueToKeyMappingTransformer.Summary, typeof(IDataTransform), typeof(ValueToKeyMappingTransformer), typeof(ValueToKeyMappingTransformer.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingTransformerImpl.cs b/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingTransformerImpl.cs index f926be7261..624e0e1c89 100644 --- a/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingTransformerImpl.cs +++ b/src/Microsoft.ML.Data/Transforms/ValueToKeyMappingTransformerImpl.cs @@ -2,14 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; +using System.Text; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using System; -using System.IO; -using System.Text; namespace Microsoft.ML.Transforms.Conversions { diff --git a/src/Microsoft.ML.Data/Utilities/ColumnCursor.cs b/src/Microsoft.ML.Data/Utilities/ColumnCursor.cs index b29f049f73..5928e8ece7 100644 --- a/src/Microsoft.ML.Data/Utilities/ColumnCursor.cs +++ b/src/Microsoft.ML.Data/Utilities/ColumnCursor.cs @@ -2,8 +2,6 @@ // 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; -using Microsoft.ML.Data; using System; using System.Collections.Generic; diff --git a/src/Microsoft.ML.Data/Utilities/ComponentCreation.cs b/src/Microsoft.ML.Data/Utilities/ComponentCreation.cs index 7aa2ff9af7..8af4fde39f 100644 --- a/src/Microsoft.ML.Data/Utilities/ComponentCreation.cs +++ b/src/Microsoft.ML.Data/Utilities/ComponentCreation.cs @@ -2,14 +2,12 @@ // 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.Core.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Data; -using Microsoft.ML.Model; using System; using System.Collections.Generic; using System.IO; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Model; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/Utilities/ModelFileUtils.cs b/src/Microsoft.ML.Data/Utilities/ModelFileUtils.cs index b06e8e32eb..6fcbbaaaf5 100644 --- a/src/Microsoft.ML.Data/Utilities/ModelFileUtils.cs +++ b/src/Microsoft.ML.Data/Utilities/ModelFileUtils.cs @@ -6,11 +6,10 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; -using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Internal.Internallearn; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Model { diff --git a/src/Microsoft.ML.Data/Utilities/SlotDropper.cs b/src/Microsoft.ML.Data/Utilities/SlotDropper.cs index dacb5a83d5..402efda828 100644 --- a/src/Microsoft.ML.Data/Utilities/SlotDropper.cs +++ b/src/Microsoft.ML.Data/Utilities/SlotDropper.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Data/Utilities/TypeParsingUtils.cs b/src/Microsoft.ML.Data/Utilities/TypeParsingUtils.cs index f1363ad2f8..da90e13e35 100644 --- a/src/Microsoft.ML.Data/Utilities/TypeParsingUtils.cs +++ b/src/Microsoft.ML.Data/Utilities/TypeParsingUtils.cs @@ -5,7 +5,6 @@ using System; using System.Text; using Microsoft.ML.CommandLine; -using Microsoft.ML.Data; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Data/Utilities/TypeUtils.cs b/src/Microsoft.ML.Data/Utilities/TypeUtils.cs index 15120fcb2e..eb91b97100 100644 --- a/src/Microsoft.ML.Data/Utilities/TypeUtils.cs +++ b/src/Microsoft.ML.Data/Utilities/TypeUtils.cs @@ -4,10 +4,8 @@ using System; using System.Linq; -using System.Reflection; using System.Text; using System.Text.RegularExpressions; -using Microsoft.ML; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Internal.Internallearn diff --git a/src/Microsoft.ML.Data/Utils/LossFunctions.cs b/src/Microsoft.ML.Data/Utils/LossFunctions.cs index 77fdf503bd..ed3ad17765 100644 --- a/src/Microsoft.ML.Data/Utils/LossFunctions.cs +++ b/src/Microsoft.ML.Data/Utils/LossFunctions.cs @@ -2,13 +2,12 @@ // 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 Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; +using Float = System.Single; [assembly: LoadableClass(LogLoss.Summary, typeof(LogLoss), null, typeof(SignatureClassificationLoss), "Log Loss", "LogLoss", "Logistic", "CrossEntropy")] diff --git a/src/Microsoft.ML.DnnAnalyzer/Microsoft.ML.DnnAnalyzer/DnnAnalyzer.cs b/src/Microsoft.ML.DnnAnalyzer/Microsoft.ML.DnnAnalyzer/DnnAnalyzer.cs index 5179c60e56..67f261a393 100644 --- a/src/Microsoft.ML.DnnAnalyzer/Microsoft.ML.DnnAnalyzer/DnnAnalyzer.cs +++ b/src/Microsoft.ML.DnnAnalyzer/Microsoft.ML.DnnAnalyzer/DnnAnalyzer.cs @@ -2,8 +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 Microsoft.ML.Transforms.TensorFlow; using System; +using Microsoft.ML.Transforms.TensorFlow; namespace Microsoft.ML.DnnAnalyzer { diff --git a/src/Microsoft.ML.DnnImageFeaturizer.AlexNet/AlexNetExtension.cs b/src/Microsoft.ML.DnnImageFeaturizer.AlexNet/AlexNetExtension.cs index 3c8e868148..e59a1da6e6 100644 --- a/src/Microsoft.ML.DnnImageFeaturizer.AlexNet/AlexNetExtension.cs +++ b/src/Microsoft.ML.DnnImageFeaturizer.AlexNet/AlexNetExtension.cs @@ -2,10 +2,9 @@ // 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; -using Microsoft.ML.Data; using System.IO; using System.Reflection; +using Microsoft.ML.Data; namespace Microsoft.ML.Transforms { diff --git a/src/Microsoft.ML.DnnImageFeaturizer.ResNet101/ResNet101Extension.cs b/src/Microsoft.ML.DnnImageFeaturizer.ResNet101/ResNet101Extension.cs index 656e877c91..c5978fe198 100644 --- a/src/Microsoft.ML.DnnImageFeaturizer.ResNet101/ResNet101Extension.cs +++ b/src/Microsoft.ML.DnnImageFeaturizer.ResNet101/ResNet101Extension.cs @@ -2,10 +2,9 @@ // 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; -using Microsoft.ML.Data; using System.IO; using System.Reflection; +using Microsoft.ML.Data; namespace Microsoft.ML.Transforms { diff --git a/src/Microsoft.ML.DnnImageFeaturizer.ResNet18/ResNet18Extension.cs b/src/Microsoft.ML.DnnImageFeaturizer.ResNet18/ResNet18Extension.cs index 281e0f8ef6..01b8436950 100644 --- a/src/Microsoft.ML.DnnImageFeaturizer.ResNet18/ResNet18Extension.cs +++ b/src/Microsoft.ML.DnnImageFeaturizer.ResNet18/ResNet18Extension.cs @@ -2,10 +2,9 @@ // 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; -using Microsoft.ML.Data; using System.IO; using System.Reflection; +using Microsoft.ML.Data; namespace Microsoft.ML.Transforms { diff --git a/src/Microsoft.ML.DnnImageFeaturizer.ResNet50/ResNet50Extension.cs b/src/Microsoft.ML.DnnImageFeaturizer.ResNet50/ResNet50Extension.cs index e1ed66463e..c57e7f2560 100644 --- a/src/Microsoft.ML.DnnImageFeaturizer.ResNet50/ResNet50Extension.cs +++ b/src/Microsoft.ML.DnnImageFeaturizer.ResNet50/ResNet50Extension.cs @@ -2,9 +2,9 @@ // 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.Data; using System.IO; using System.Reflection; +using Microsoft.ML.Data; namespace Microsoft.ML.Transforms { diff --git a/src/Microsoft.ML.Ensemble/EntryPoints/CreateEnsemble.cs b/src/Microsoft.ML.Ensemble/EntryPoints/CreateEnsemble.cs index 151b0d08b0..2416701f3c 100644 --- a/src/Microsoft.ML.Ensemble/EntryPoints/CreateEnsemble.cs +++ b/src/Microsoft.ML.Ensemble/EntryPoints/CreateEnsemble.cs @@ -6,11 +6,11 @@ using System.IO; using System.IO.Compression; using System.Linq; -using Microsoft.ML.Data; -using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Ensemble; +using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML.Ensemble.OutputCombiners; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Ensemble/EntryPoints/DiversityMeasure.cs b/src/Microsoft.ML.Ensemble/EntryPoints/DiversityMeasure.cs index de71c5d2f0..f295697f6e 100644 --- a/src/Microsoft.ML.Ensemble/EntryPoints/DiversityMeasure.cs +++ b/src/Microsoft.ML.Ensemble/EntryPoints/DiversityMeasure.cs @@ -2,10 +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 System; using Microsoft.ML.Ensemble.EntryPoints; -using Microsoft.ML; -using Microsoft.ML.Data; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Ensemble.Selector.DiversityMeasure; using Microsoft.ML.EntryPoints; diff --git a/src/Microsoft.ML.Ensemble/EntryPoints/Ensemble.cs b/src/Microsoft.ML.Ensemble/EntryPoints/Ensemble.cs index 0bfa15ba2c..6cf8b418bc 100644 --- a/src/Microsoft.ML.Ensemble/EntryPoints/Ensemble.cs +++ b/src/Microsoft.ML.Ensemble/EntryPoints/Ensemble.cs @@ -2,9 +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 Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML; -using Microsoft.ML.Ensemble; +using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML.EntryPoints; [assembly: LoadableClass(typeof(void), typeof(Ensemble), null, typeof(SignatureEntryPointModule), "TrainEnsemble")] diff --git a/src/Microsoft.ML.Ensemble/EntryPoints/FeatureSelector.cs b/src/Microsoft.ML.Ensemble/EntryPoints/FeatureSelector.cs index f1d2593ef9..c2d7862a31 100644 --- a/src/Microsoft.ML.Ensemble/EntryPoints/FeatureSelector.cs +++ b/src/Microsoft.ML.Ensemble/EntryPoints/FeatureSelector.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using Microsoft.ML.Ensemble.EntryPoints; -using Microsoft.ML; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Ensemble.Selector.FeatureSelector; using Microsoft.ML.EntryPoints; diff --git a/src/Microsoft.ML.Ensemble/EntryPoints/OutputCombiner.cs b/src/Microsoft.ML.Ensemble/EntryPoints/OutputCombiner.cs index 143034cc21..7583d72cfb 100644 --- a/src/Microsoft.ML.Ensemble/EntryPoints/OutputCombiner.cs +++ b/src/Microsoft.ML.Ensemble/EntryPoints/OutputCombiner.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using Microsoft.ML.Ensemble.EntryPoints; -using Microsoft.ML; using Microsoft.ML.Ensemble.OutputCombiners; using Microsoft.ML.EntryPoints; diff --git a/src/Microsoft.ML.Ensemble/EntryPoints/SubModelSelector.cs b/src/Microsoft.ML.Ensemble/EntryPoints/SubModelSelector.cs index cb2ef60242..10b1551c62 100644 --- a/src/Microsoft.ML.Ensemble/EntryPoints/SubModelSelector.cs +++ b/src/Microsoft.ML.Ensemble/EntryPoints/SubModelSelector.cs @@ -2,10 +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 System; using Microsoft.ML.Ensemble.EntryPoints; -using Microsoft.ML; -using Microsoft.ML.Data; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Ensemble.Selector.SubModelSelector; using Microsoft.ML.EntryPoints; diff --git a/src/Microsoft.ML.Ensemble/OutputCombiners/BaseStacking.cs b/src/Microsoft.ML.Ensemble/OutputCombiners/BaseStacking.cs index 769f95b4f9..c791307bd4 100644 --- a/src/Microsoft.ML.Ensemble/OutputCombiners/BaseStacking.cs +++ b/src/Microsoft.ML.Ensemble/OutputCombiners/BaseStacking.cs @@ -7,7 +7,6 @@ using System.Threading.Tasks; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; -using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; @@ -15,7 +14,6 @@ namespace Microsoft.ML.Ensemble.OutputCombiners { - using ColumnRole = RoleMappedSchema.ColumnRole; internal abstract class BaseStacking : IStackingTrainer { public abstract class ArgumentsBase diff --git a/src/Microsoft.ML.Ensemble/OutputCombiners/MultiStacking.cs b/src/Microsoft.ML.Ensemble/OutputCombiners/MultiStacking.cs index f87c532161..3ec8ea85c8 100644 --- a/src/Microsoft.ML.Ensemble/OutputCombiners/MultiStacking.cs +++ b/src/Microsoft.ML.Ensemble/OutputCombiners/MultiStacking.cs @@ -9,7 +9,6 @@ using Microsoft.ML.Ensemble.OutputCombiners; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; -using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; [assembly: LoadableClass(typeof(MultiStacking), typeof(MultiStacking.Arguments), typeof(SignatureCombiner), diff --git a/src/Microsoft.ML.Ensemble/PipelineEnsemble.cs b/src/Microsoft.ML.Ensemble/PipelineEnsemble.cs index ab88a83a65..0c2655fff1 100644 --- a/src/Microsoft.ML.Ensemble/PipelineEnsemble.cs +++ b/src/Microsoft.ML.Ensemble/PipelineEnsemble.cs @@ -7,8 +7,8 @@ using System.IO; using System.Linq; using System.Text; -using Microsoft.ML.Data; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Ensemble; using Microsoft.ML.Ensemble.OutputCombiners; using Microsoft.ML.EntryPoints; diff --git a/src/Microsoft.ML.Ensemble/Selector/FeatureSelector/AllFeatureSelector.cs b/src/Microsoft.ML.Ensemble/Selector/FeatureSelector/AllFeatureSelector.cs index acfed82802..f2ffadf877 100644 --- a/src/Microsoft.ML.Ensemble/Selector/FeatureSelector/AllFeatureSelector.cs +++ b/src/Microsoft.ML.Ensemble/Selector/FeatureSelector/AllFeatureSelector.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Ensemble.Selector.FeatureSelector; -using System; [assembly: LoadableClass(typeof(AllFeatureSelector), null, typeof(SignatureEnsembleFeatureSelector), AllFeatureSelector.UserName, AllFeatureSelector.LoadName)] diff --git a/src/Microsoft.ML.Ensemble/Selector/IFeatureSelector.cs b/src/Microsoft.ML.Ensemble/Selector/IFeatureSelector.cs index 3bbaa1cf86..e4eb986294 100644 --- a/src/Microsoft.ML.Ensemble/Selector/IFeatureSelector.cs +++ b/src/Microsoft.ML.Ensemble/Selector/IFeatureSelector.cs @@ -2,9 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; -using System; namespace Microsoft.ML.Ensemble.Selector { diff --git a/src/Microsoft.ML.Ensemble/Selector/ISubModelSelector.cs b/src/Microsoft.ML.Ensemble/Selector/ISubModelSelector.cs index 3454e37562..64ecf45bce 100644 --- a/src/Microsoft.ML.Ensemble/Selector/ISubModelSelector.cs +++ b/src/Microsoft.ML.Ensemble/Selector/ISubModelSelector.cs @@ -2,10 +2,10 @@ // 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.Data; -using Microsoft.ML.EntryPoints; using System; using System.Collections.Generic; +using Microsoft.ML.Data; +using Microsoft.ML.EntryPoints; namespace Microsoft.ML.Ensemble.Selector { diff --git a/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BaseDiverseSelector.cs b/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BaseDiverseSelector.cs index 6d84c51bbc..98d5c47c02 100644 --- a/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BaseDiverseSelector.cs +++ b/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BaseDiverseSelector.cs @@ -7,7 +7,6 @@ using System.Collections.Generic; using Microsoft.ML.Data; using Microsoft.ML.Ensemble.Selector.DiversityMeasure; -using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Training; diff --git a/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorBinary.cs b/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorBinary.cs index 178c08cb02..cb56769b79 100644 --- a/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorBinary.cs +++ b/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorBinary.cs @@ -5,9 +5,9 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; -using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Ensemble.Selector.DiversityMeasure; using Microsoft.ML.Ensemble.Selector.SubModelSelector; diff --git a/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorMultiClass.cs b/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorMultiClass.cs index ae5ea2101f..d5e6b9ae91 100644 --- a/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorMultiClass.cs +++ b/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorMultiClass.cs @@ -5,10 +5,10 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; -using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; +using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Ensemble.Selector.DiversityMeasure; using Microsoft.ML.Ensemble.Selector.SubModelSelector; diff --git a/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorRegression.cs b/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorRegression.cs index 8700133895..a276995a9a 100644 --- a/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorRegression.cs +++ b/src/Microsoft.ML.Ensemble/Selector/SubModelSelector/BestDiverseSelectorRegression.cs @@ -5,9 +5,9 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; -using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Ensemble.Selector.DiversityMeasure; using Microsoft.ML.Ensemble.Selector.SubModelSelector; diff --git a/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/AllInstanceSelector.cs b/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/AllInstanceSelector.cs index fa1d1b536e..43203e9ca9 100644 --- a/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/AllInstanceSelector.cs +++ b/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/AllInstanceSelector.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Ensemble.Selector.SubsetSelector; using Microsoft.ML.EntryPoints; -using System; -using System.Collections.Generic; [assembly: LoadableClass(typeof(AllInstanceSelector), typeof(AllInstanceSelector.Arguments), typeof(SignatureEnsembleDataSelector), AllInstanceSelector.UserName, AllInstanceSelector.LoadName)] diff --git a/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/BaseSubsetSelector.cs b/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/BaseSubsetSelector.cs index 509770bfd3..8e163bee6b 100644 --- a/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/BaseSubsetSelector.cs +++ b/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/BaseSubsetSelector.cs @@ -2,12 +2,12 @@ // 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.Ensemble.EntryPoints; +using System; +using System.Collections.Generic; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; +using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; namespace Microsoft.ML.Ensemble.Selector.SubsetSelector { diff --git a/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/BootstrapSelector.cs b/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/BootstrapSelector.cs index 2bb1da56e6..149fb91159 100644 --- a/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/BootstrapSelector.cs +++ b/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/BootstrapSelector.cs @@ -2,14 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Ensemble.Selector.SubsetSelector; using Microsoft.ML.EntryPoints; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; [assembly: LoadableClass(typeof(BootstrapSelector), typeof(BootstrapSelector.Arguments), typeof(SignatureEnsembleDataSelector), BootstrapSelector.UserName, BootstrapSelector.LoadName)] diff --git a/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/RandomPartitionSelector.cs b/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/RandomPartitionSelector.cs index 453b6abf1d..af7b93a0b5 100644 --- a/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/RandomPartitionSelector.cs +++ b/src/Microsoft.ML.Ensemble/Selector/SubsetSelector/RandomPartitionSelector.cs @@ -2,14 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Ensemble.Selector.SubsetSelector; using Microsoft.ML.EntryPoints; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; [assembly: LoadableClass(typeof(RandomPartitionSelector), typeof(RandomPartitionSelector.Arguments), typeof(SignatureEnsembleDataSelector), RandomPartitionSelector.UserName, RandomPartitionSelector.LoadName)] diff --git a/src/Microsoft.ML.Ensemble/Trainer/Binary/EnsembleTrainer.cs b/src/Microsoft.ML.Ensemble/Trainer/Binary/EnsembleTrainer.cs index da0d8d69c0..c9438c0169 100644 --- a/src/Microsoft.ML.Ensemble/Trainer/Binary/EnsembleTrainer.cs +++ b/src/Microsoft.ML.Ensemble/Trainer/Binary/EnsembleTrainer.cs @@ -5,13 +5,12 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Ensemble; +using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML.Ensemble.OutputCombiners; using Microsoft.ML.Ensemble.Selector; -using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Trainers.Online; diff --git a/src/Microsoft.ML.Ensemble/Trainer/EnsembleModelParameters.cs b/src/Microsoft.ML.Ensemble/Trainer/EnsembleModelParameters.cs index 5885752bef..cd7e82b52f 100644 --- a/src/Microsoft.ML.Ensemble/Trainer/EnsembleModelParameters.cs +++ b/src/Microsoft.ML.Ensemble/Trainer/EnsembleModelParameters.cs @@ -7,9 +7,9 @@ using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Ensemble; -using Microsoft.ML.Model; using Microsoft.ML.Ensemble.OutputCombiners; using Microsoft.ML.EntryPoints; +using Microsoft.ML.Model; [assembly: LoadableClass(typeof(EnsembleModelParameters), null, typeof(SignatureLoadModel), EnsembleModelParameters.UserName, EnsembleModelParameters.LoaderSignature)] diff --git a/src/Microsoft.ML.Ensemble/Trainer/IModelCombiner.cs b/src/Microsoft.ML.Ensemble/Trainer/IModelCombiner.cs index 3a2d25b808..85f55d8111 100644 --- a/src/Microsoft.ML.Ensemble/Trainer/IModelCombiner.cs +++ b/src/Microsoft.ML.Ensemble/Trainer/IModelCombiner.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using Microsoft.ML; namespace Microsoft.ML.Ensemble { diff --git a/src/Microsoft.ML.Ensemble/Trainer/Multiclass/MulticlassDataPartitionEnsembleTrainer.cs b/src/Microsoft.ML.Ensemble/Trainer/Multiclass/MulticlassDataPartitionEnsembleTrainer.cs index d18803bff4..7d13483f4a 100644 --- a/src/Microsoft.ML.Ensemble/Trainer/Multiclass/MulticlassDataPartitionEnsembleTrainer.cs +++ b/src/Microsoft.ML.Ensemble/Trainer/Multiclass/MulticlassDataPartitionEnsembleTrainer.cs @@ -5,11 +5,11 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.Ensemble; +using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML.Ensemble.OutputCombiners; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Internal.Internallearn; diff --git a/src/Microsoft.ML.Ensemble/Trainer/Regression/RegressionEnsembleTrainer.cs b/src/Microsoft.ML.Ensemble/Trainer/Regression/RegressionEnsembleTrainer.cs index 2397736edd..4545ce3c34 100644 --- a/src/Microsoft.ML.Ensemble/Trainer/Regression/RegressionEnsembleTrainer.cs +++ b/src/Microsoft.ML.Ensemble/Trainer/Regression/RegressionEnsembleTrainer.cs @@ -5,11 +5,11 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.Ensemble; +using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML.Ensemble.OutputCombiners; using Microsoft.ML.Ensemble.Selector; using Microsoft.ML.Internal.Internallearn; diff --git a/src/Microsoft.ML.EntryPoints/FeatureCombiner.cs b/src/Microsoft.ML.EntryPoints/FeatureCombiner.cs index bf1faa4b9b..cb04432ec1 100644 --- a/src/Microsoft.ML.EntryPoints/FeatureCombiner.cs +++ b/src/Microsoft.ML.EntryPoints/FeatureCombiner.cs @@ -2,16 +2,16 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(typeof(void), typeof(FeatureCombiner), null, typeof(SignatureEntryPointModule), "FeatureCombiner")] diff --git a/src/Microsoft.ML.EntryPoints/ImportTextData.cs b/src/Microsoft.ML.EntryPoints/ImportTextData.cs index 249f416c4d..69e7c6c073 100644 --- a/src/Microsoft.ML.EntryPoints/ImportTextData.cs +++ b/src/Microsoft.ML.EntryPoints/ImportTextData.cs @@ -2,11 +2,10 @@ // 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.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; -using System; [assembly: LoadableClass(typeof(void), typeof(ImportTextData), null, typeof(SignatureEntryPointModule), "ImportTextData")] diff --git a/src/Microsoft.ML.EntryPoints/JsonUtils/ExecuteGraphCommand.cs b/src/Microsoft.ML.EntryPoints/JsonUtils/ExecuteGraphCommand.cs index 75c7634b5a..a9e6c6f274 100644 --- a/src/Microsoft.ML.EntryPoints/JsonUtils/ExecuteGraphCommand.cs +++ b/src/Microsoft.ML.EntryPoints/JsonUtils/ExecuteGraphCommand.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; using System.IO; using System.Linq; using Microsoft.ML; diff --git a/src/Microsoft.ML.EntryPoints/MacroUtils.cs b/src/Microsoft.ML.EntryPoints/MacroUtils.cs index b482fae588..466bd96d41 100644 --- a/src/Microsoft.ML.EntryPoints/MacroUtils.cs +++ b/src/Microsoft.ML.EntryPoints/MacroUtils.cs @@ -4,9 +4,8 @@ using System.Collections.Generic; using Microsoft.ML.CommandLine; -using Microsoft.ML.EntryPoints; -using System.Linq; using Microsoft.ML.Data; +using Microsoft.ML.EntryPoints; [assembly: EntryPointModule(typeof(MacroUtils))] diff --git a/src/Microsoft.ML.EntryPoints/ModelOperations.cs b/src/Microsoft.ML.EntryPoints/ModelOperations.cs index 1c7cafe594..3fca2855e0 100644 --- a/src/Microsoft.ML.EntryPoints/ModelOperations.cs +++ b/src/Microsoft.ML.EntryPoints/ModelOperations.cs @@ -2,13 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; -using Microsoft.ML.Learners; using Microsoft.ML.Trainers; -using System.Linq; [assembly: LoadableClass(typeof(void), typeof(ModelOperations), null, typeof(SignatureEntryPointModule), "ModelOperations")] diff --git a/src/Microsoft.ML.EntryPoints/OneVersusAllMacro.cs b/src/Microsoft.ML.EntryPoints/OneVersusAllMacro.cs index 925ce6e342..857ec4afe7 100644 --- a/src/Microsoft.ML.EntryPoints/OneVersusAllMacro.cs +++ b/src/Microsoft.ML.EntryPoints/OneVersusAllMacro.cs @@ -4,12 +4,12 @@ using System; using System.Collections.Generic; -using Microsoft.ML.Transforms; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Training; +using Microsoft.ML.Transforms; using Newtonsoft.Json.Linq; [assembly: LoadableClass(typeof(void), typeof(OneVersusAllMacro), null, typeof(SignatureEntryPointModule), "OneVersusAllMacro")] diff --git a/src/Microsoft.ML.EntryPoints/Properties/AssemblyInfo.cs b/src/Microsoft.ML.EntryPoints/Properties/AssemblyInfo.cs index 530c78cc6b..0169e5d896 100644 --- a/src/Microsoft.ML.EntryPoints/Properties/AssemblyInfo.cs +++ b/src/Microsoft.ML.EntryPoints/Properties/AssemblyInfo.cs @@ -2,8 +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 Microsoft.ML; using System.Runtime.CompilerServices; +using Microsoft.ML; [assembly: InternalsVisibleTo("Microsoft.ML.Tests" + PublicKey.TestValue)] [assembly: InternalsVisibleTo("Microsoft.ML.Core.Tests" + PublicKey.TestValue)] \ No newline at end of file diff --git a/src/Microsoft.ML.EntryPoints/TrainTestMacro.cs b/src/Microsoft.ML.EntryPoints/TrainTestMacro.cs index 25a2dd0790..260ba7b756 100644 --- a/src/Microsoft.ML.EntryPoints/TrainTestMacro.cs +++ b/src/Microsoft.ML.EntryPoints/TrainTestMacro.cs @@ -2,13 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; [assembly: LoadableClass(typeof(void), typeof(TrainTestMacro), null, typeof(SignatureEntryPointModule), "TrainTestMacro")] diff --git a/src/Microsoft.ML.FastTree/Application/DominationLossApplication.cs b/src/Microsoft.ML.FastTree/Application/DominationLossApplication.cs index 912163ff0e..d12a0471fe 100644 --- a/src/Microsoft.ML.FastTree/Application/DominationLossApplication.cs +++ b/src/Microsoft.ML.FastTree/Application/DominationLossApplication.cs @@ -2,9 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using Microsoft.ML.CommandLine; - namespace Microsoft.ML.Trainers.FastTree.Internal { #if OLD_DATALOAD diff --git a/src/Microsoft.ML.FastTree/Application/LogLossApplication.cs b/src/Microsoft.ML.FastTree/Application/LogLossApplication.cs index ff72ca0a87..9dd896a401 100644 --- a/src/Microsoft.ML.FastTree/Application/LogLossApplication.cs +++ b/src/Microsoft.ML.FastTree/Application/LogLossApplication.cs @@ -2,12 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using Microsoft.ML.CommandLine; - namespace Microsoft.ML.Trainers.FastTree.Internal { #if OLD_DATALOAD diff --git a/src/Microsoft.ML.FastTree/Application/SizeAdjustedLogLossApplication.cs b/src/Microsoft.ML.FastTree/Application/SizeAdjustedLogLossApplication.cs index beaa529014..0cb8c9496f 100644 --- a/src/Microsoft.ML.FastTree/Application/SizeAdjustedLogLossApplication.cs +++ b/src/Microsoft.ML.FastTree/Application/SizeAdjustedLogLossApplication.cs @@ -2,13 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Linq; -using Microsoft.ML.CommandLine; - namespace Microsoft.ML.Trainers.FastTree.Internal { #if OLD_DATALOAD diff --git a/src/Microsoft.ML.FastTree/Application/WinLossSurplusApplication.cs b/src/Microsoft.ML.FastTree/Application/WinLossSurplusApplication.cs index 86d88a0e7a..1708033161 100644 --- a/src/Microsoft.ML.FastTree/Application/WinLossSurplusApplication.cs +++ b/src/Microsoft.ML.FastTree/Application/WinLossSurplusApplication.cs @@ -2,11 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Linq; -using System.Runtime.InteropServices; -using Microsoft.ML.CommandLine; - namespace Microsoft.ML.Trainers.FastTree.Internal { #if OLD_DATALOAD diff --git a/src/Microsoft.ML.FastTree/BinFile/BinFinder.cs b/src/Microsoft.ML.FastTree/BinFile/BinFinder.cs index 3af21d4d1e..2978971d22 100644 --- a/src/Microsoft.ML.FastTree/BinFile/BinFinder.cs +++ b/src/Microsoft.ML.FastTree/BinFile/BinFinder.cs @@ -2,11 +2,10 @@ // 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; -using Microsoft.ML.Data; -using Microsoft.ML.Internal.Utilities; using System; using System.Threading; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Trainers.FastTree.Internal { diff --git a/src/Microsoft.ML.FastTree/BinFile/IniFileParserInterface.cs b/src/Microsoft.ML.FastTree/BinFile/IniFileParserInterface.cs index 9a56fcf601..9b28df134c 100644 --- a/src/Microsoft.ML.FastTree/BinFile/IniFileParserInterface.cs +++ b/src/Microsoft.ML.FastTree/BinFile/IniFileParserInterface.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Linq; using System.Runtime.InteropServices; diff --git a/src/Microsoft.ML.FastTree/BoostingFastTree.cs b/src/Microsoft.ML.FastTree/BoostingFastTree.cs index 386237b55c..41995b1585 100644 --- a/src/Microsoft.ML.FastTree/BoostingFastTree.cs +++ b/src/Microsoft.ML.FastTree/BoostingFastTree.cs @@ -2,12 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; using Microsoft.ML.Core.Data; -using Microsoft.ML; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Trainers.FastTree.Internal; -using System; -using System.Linq; using Float = System.Single; namespace Microsoft.ML.Trainers.FastTree diff --git a/src/Microsoft.ML.FastTree/Dataset/Dataset.cs b/src/Microsoft.ML.FastTree/Dataset/Dataset.cs index 57a8f16417..330ef028ca 100644 --- a/src/Microsoft.ML.FastTree/Dataset/Dataset.cs +++ b/src/Microsoft.ML.FastTree/Dataset/Dataset.cs @@ -2,12 +2,11 @@ // 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; -using Microsoft.ML.Internal.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Trainers.FastTree.Internal { diff --git a/src/Microsoft.ML.FastTree/Dataset/DenseIntArray.cs b/src/Microsoft.ML.FastTree/Dataset/DenseIntArray.cs index 7d54e7ad59..c6f10843d8 100644 --- a/src/Microsoft.ML.FastTree/Dataset/DenseIntArray.cs +++ b/src/Microsoft.ML.FastTree/Dataset/DenseIntArray.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.ML.FastTree/Dataset/Feature.cs b/src/Microsoft.ML.FastTree/Dataset/Feature.cs index 31f8b7d08a..c74ef5baf4 100644 --- a/src/Microsoft.ML.FastTree/Dataset/Feature.cs +++ b/src/Microsoft.ML.FastTree/Dataset/Feature.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System.Linq; -using Microsoft.ML; namespace Microsoft.ML.Trainers.FastTree.Internal { diff --git a/src/Microsoft.ML.FastTree/Dataset/FeatureFlock.cs b/src/Microsoft.ML.FastTree/Dataset/FeatureFlock.cs index b2cdec0ee8..67f7dec621 100644 --- a/src/Microsoft.ML.FastTree/Dataset/FeatureFlock.cs +++ b/src/Microsoft.ML.FastTree/Dataset/FeatureFlock.cs @@ -12,7 +12,6 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; -using Microsoft.ML; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.FastTree/Dataset/FeatureHistogram.cs b/src/Microsoft.ML.FastTree/Dataset/FeatureHistogram.cs index 5098517bcf..2294525a9f 100644 --- a/src/Microsoft.ML.FastTree/Dataset/FeatureHistogram.cs +++ b/src/Microsoft.ML.FastTree/Dataset/FeatureHistogram.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Linq; diff --git a/src/Microsoft.ML.FastTree/Dataset/FileObjectStore.cs b/src/Microsoft.ML.FastTree/Dataset/FileObjectStore.cs index f1a8337c53..9f7623d0ad 100644 --- a/src/Microsoft.ML.FastTree/Dataset/FileObjectStore.cs +++ b/src/Microsoft.ML.FastTree/Dataset/FileObjectStore.cs @@ -1,16 +1,6 @@ -// ----------------------------------------------------------------------- -// -// Copyright (C) All Rights Reserved -// -// ----------------------------------------------------------------------- - -using System; -using System.Collections.Generic; -using System.IO; -using System.IO.MemoryMappedFiles; -using System.Linq; -using System.Runtime.Serialization; -using System.Threading; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. namespace Microsoft.ML.Trainers.FastTree.Internal { @@ -229,7 +219,7 @@ private void InitializeAsFileStream(string fileName) this.objectCacheFileStream = new FileStream(this.fileStreamName, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite); } - #region Process shutdown event handlers + #region Process shutdown event handlers /// /// Process exit and Domain Unload event handler @@ -262,7 +252,7 @@ private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionE this.Close(); throw Contracts.Except(e.ExceptionObject as Exception, "Unhandled Exception detected"); } - #endregion + #endregion } /// diff --git a/src/Microsoft.ML.FastTree/Dataset/IntArray.cs b/src/Microsoft.ML.FastTree/Dataset/IntArray.cs index eef09700a7..e2c8de872b 100644 --- a/src/Microsoft.ML.FastTree/Dataset/IntArray.cs +++ b/src/Microsoft.ML.FastTree/Dataset/IntArray.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Generic; using System.Linq; @@ -12,7 +11,6 @@ namespace Microsoft.ML.Trainers.FastTree.Internal #if USE_SINGLE_PRECISION using FloatType = System.Single; #else - using FloatType = System.Double; #endif public enum IntArrayType { Dense, Sparse, Repeat, Segmented, Current }; diff --git a/src/Microsoft.ML.FastTree/Dataset/NHotFeatureFlock.cs b/src/Microsoft.ML.FastTree/Dataset/NHotFeatureFlock.cs index 7ced1e2d60..fcfa6c938a 100644 --- a/src/Microsoft.ML.FastTree/Dataset/NHotFeatureFlock.cs +++ b/src/Microsoft.ML.FastTree/Dataset/NHotFeatureFlock.cs @@ -2,8 +2,6 @@ // 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; - namespace Microsoft.ML.Trainers.FastTree.Internal { /// diff --git a/src/Microsoft.ML.FastTree/Dataset/OneHotFeatureFlock.cs b/src/Microsoft.ML.FastTree/Dataset/OneHotFeatureFlock.cs index cb1b5c4722..da8592fc14 100644 --- a/src/Microsoft.ML.FastTree/Dataset/OneHotFeatureFlock.cs +++ b/src/Microsoft.ML.FastTree/Dataset/OneHotFeatureFlock.cs @@ -2,7 +2,6 @@ // 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; using System.Linq; namespace Microsoft.ML.Trainers.FastTree.Internal diff --git a/src/Microsoft.ML.FastTree/Dataset/RepeatIntArray.cs b/src/Microsoft.ML.FastTree/Dataset/RepeatIntArray.cs index 64cdb6effe..3b9502a8db 100644 --- a/src/Microsoft.ML.FastTree/Dataset/RepeatIntArray.cs +++ b/src/Microsoft.ML.FastTree/Dataset/RepeatIntArray.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.ML.FastTree/Dataset/SegmentIntArray.cs b/src/Microsoft.ML.FastTree/Dataset/SegmentIntArray.cs index b8d862ee1b..156f5e227c 100644 --- a/src/Microsoft.ML.FastTree/Dataset/SegmentIntArray.cs +++ b/src/Microsoft.ML.FastTree/Dataset/SegmentIntArray.cs @@ -2,7 +2,6 @@ // 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; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; diff --git a/src/Microsoft.ML.FastTree/Dataset/SingletonFeatureFlock.cs b/src/Microsoft.ML.FastTree/Dataset/SingletonFeatureFlock.cs index d449a19d0a..c84a38db28 100644 --- a/src/Microsoft.ML.FastTree/Dataset/SingletonFeatureFlock.cs +++ b/src/Microsoft.ML.FastTree/Dataset/SingletonFeatureFlock.cs @@ -2,9 +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 Microsoft.ML; -using Microsoft.ML.Internal.Utilities; using System.Linq; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Trainers.FastTree.Internal { diff --git a/src/Microsoft.ML.FastTree/Dataset/SparseIntArray.cs b/src/Microsoft.ML.FastTree/Dataset/SparseIntArray.cs index 3dcb7d341c..b3dc61b07a 100644 --- a/src/Microsoft.ML.FastTree/Dataset/SparseIntArray.cs +++ b/src/Microsoft.ML.FastTree/Dataset/SparseIntArray.cs @@ -2,7 +2,6 @@ // 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; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; diff --git a/src/Microsoft.ML.FastTree/FastTree.cs b/src/Microsoft.ML.FastTree/FastTree.cs index d816d3ec59..46aac0f066 100644 --- a/src/Microsoft.ML.FastTree/FastTree.cs +++ b/src/Microsoft.ML.FastTree/FastTree.cs @@ -2,11 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Text; using Microsoft.ML.Calibrator; +using Microsoft.ML.CommandLine; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; using Microsoft.ML.Data.Conversion; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; @@ -15,20 +22,12 @@ using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; -using Microsoft.ML.Training; -using Microsoft.ML.TreePredictor; using Microsoft.ML.Trainers.FastTree.Internal; +using Microsoft.ML.Training; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; +using Microsoft.ML.TreePredictor; using Newtonsoft.Json.Linq; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Text; using Float = System.Single; // All of these reviews apply in general to fast tree and random forest implementations. diff --git a/src/Microsoft.ML.FastTree/FastTreeArguments.cs b/src/Microsoft.ML.FastTree/FastTreeArguments.cs index 3a551d4359..e14fd33db0 100644 --- a/src/Microsoft.ML.FastTree/FastTreeArguments.cs +++ b/src/Microsoft.ML.FastTree/FastTreeArguments.cs @@ -2,12 +2,11 @@ // 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; +using System; using Microsoft.ML.CommandLine; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Trainers.FastTree; -using System; [assembly: EntryPointModule(typeof(FastTreeBinaryClassificationTrainer.Arguments))] [assembly: EntryPointModule(typeof(FastTreeRegressionTrainer.Arguments))] diff --git a/src/Microsoft.ML.FastTree/FastTreeClassification.cs b/src/Microsoft.ML.FastTree/FastTreeClassification.cs index 090d6308cf..be17d13661 100644 --- a/src/Microsoft.ML.FastTree/FastTreeClassification.cs +++ b/src/Microsoft.ML.FastTree/FastTreeClassification.cs @@ -2,20 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Linq; +using Microsoft.ML; using Microsoft.ML.Calibrator; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; -using System.Collections.Generic; -using System.Linq; +using Microsoft.ML.Training; [assembly: LoadableClass(FastTreeBinaryClassificationTrainer.Summary, typeof(FastTreeBinaryClassificationTrainer), typeof(FastTreeBinaryClassificationTrainer.Arguments), new[] { typeof(SignatureBinaryClassifierTrainer), typeof(SignatureTrainer), typeof(SignatureTreeEnsembleTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.FastTree/FastTreeRanking.cs b/src/Microsoft.ML.FastTree/FastTreeRanking.cs index 054617841e..0c967ab1e5 100644 --- a/src/Microsoft.ML.FastTree/FastTreeRanking.cs +++ b/src/Microsoft.ML.FastTree/FastTreeRanking.cs @@ -2,22 +2,22 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.InteropServices; +using System.Security; +using System.Text; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; +using Microsoft.ML.Training; // REVIEW: Do we really need all these names? [assembly: LoadableClass(FastTreeRankingTrainer.Summary, typeof(FastTreeRankingTrainer), typeof(FastTreeRankingTrainer.Arguments), diff --git a/src/Microsoft.ML.FastTree/FastTreeRegression.cs b/src/Microsoft.ML.FastTree/FastTreeRegression.cs index 2649485545..2cb321fafe 100644 --- a/src/Microsoft.ML.FastTree/FastTreeRegression.cs +++ b/src/Microsoft.ML.FastTree/FastTreeRegression.cs @@ -2,18 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; +using System.Text; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; -using System.Linq; -using System.Text; +using Microsoft.ML.Training; [assembly: LoadableClass(FastTreeRegressionTrainer.Summary, typeof(FastTreeRegressionTrainer), typeof(FastTreeRegressionTrainer.Arguments), new[] { typeof(SignatureRegressorTrainer), typeof(SignatureTrainer), typeof(SignatureTreeEnsembleTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.FastTree/FastTreeTweedie.cs b/src/Microsoft.ML.FastTree/FastTreeTweedie.cs index 63bd90804a..8e9234c808 100644 --- a/src/Microsoft.ML.FastTree/FastTreeTweedie.cs +++ b/src/Microsoft.ML.FastTree/FastTreeTweedie.cs @@ -2,19 +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 System; +using System.Linq; +using System.Text; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; -using System.Linq; -using System.Text; +using Microsoft.ML.Training; [assembly: LoadableClass(FastTreeTweedieTrainer.Summary, typeof(FastTreeTweedieTrainer), typeof(FastTreeTweedieTrainer.Arguments), new[] { typeof(SignatureRegressorTrainer), typeof(SignatureTrainer), typeof(SignatureTreeEnsembleTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.FastTree/GamClassification.cs b/src/Microsoft.ML.FastTree/GamClassification.cs index 6d96a709c8..3f234f2ca8 100644 --- a/src/Microsoft.ML.FastTree/GamClassification.cs +++ b/src/Microsoft.ML.FastTree/GamClassification.cs @@ -2,19 +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 System; +using System.Threading.Tasks; +using Microsoft.ML; using Microsoft.ML.Calibrator; +using Microsoft.ML.CommandLine; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; -using System.Threading.Tasks; +using Microsoft.ML.Training; [assembly: LoadableClass(BinaryClassificationGamTrainer.Summary, typeof(BinaryClassificationGamTrainer), typeof(BinaryClassificationGamTrainer.Arguments), diff --git a/src/Microsoft.ML.FastTree/GamRegression.cs b/src/Microsoft.ML.FastTree/GamRegression.cs index 287bd8428f..315b94ec78 100644 --- a/src/Microsoft.ML.FastTree/GamRegression.cs +++ b/src/Microsoft.ML.FastTree/GamRegression.cs @@ -2,16 +2,16 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; +using Microsoft.ML.Training; [assembly: LoadableClass(RegressionGamTrainer.Summary, typeof(RegressionGamTrainer), typeof(RegressionGamTrainer.Arguments), diff --git a/src/Microsoft.ML.FastTree/GamTrainer.cs b/src/Microsoft.ML.FastTree/GamTrainer.cs index cb5e50262b..c5d213671c 100644 --- a/src/Microsoft.ML.FastTree/GamTrainer.cs +++ b/src/Microsoft.ML.FastTree/GamTrainer.cs @@ -2,25 +2,25 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; using Microsoft.ML; using Microsoft.ML.Command; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading; +using Microsoft.ML.Training; using Timer = Microsoft.ML.Trainers.FastTree.Internal.Timer; [assembly: LoadableClass(typeof(GamModelParametersBase.VisualizationCommand), typeof(GamModelParametersBase.VisualizationCommand.Arguments), typeof(SignatureCommand), diff --git a/src/Microsoft.ML.FastTree/QuantileStatistics.cs b/src/Microsoft.ML.FastTree/QuantileStatistics.cs index d05407bf34..62d05cdc4a 100644 --- a/src/Microsoft.ML.FastTree/QuantileStatistics.cs +++ b/src/Microsoft.ML.FastTree/QuantileStatistics.cs @@ -3,8 +3,8 @@ // See the LICENSE file in the project root for more information. using System; -using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Internal.Internallearn; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.FastTree/RandomForest.cs b/src/Microsoft.ML.FastTree/RandomForest.cs index cb8cbf9cf6..43aa5a0149 100644 --- a/src/Microsoft.ML.FastTree/RandomForest.cs +++ b/src/Microsoft.ML.FastTree/RandomForest.cs @@ -2,10 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML.Core.Data; -using Microsoft.ML; using Microsoft.ML.Trainers.FastTree.Internal; -using System; namespace Microsoft.ML.Trainers.FastTree { diff --git a/src/Microsoft.ML.FastTree/RandomForestClassification.cs b/src/Microsoft.ML.FastTree/RandomForestClassification.cs index 67438da189..7417a67d5f 100644 --- a/src/Microsoft.ML.FastTree/RandomForestClassification.cs +++ b/src/Microsoft.ML.FastTree/RandomForestClassification.cs @@ -2,20 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; +using Microsoft.ML; using Microsoft.ML.Calibrator; +using Microsoft.ML.CommandLine; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; -using System.Linq; +using Microsoft.ML.Training; [assembly: LoadableClass(FastForestClassification.Summary, typeof(FastForestClassification), typeof(FastForestClassification.Arguments), new[] { typeof(SignatureBinaryClassifierTrainer), typeof(SignatureTrainer), typeof(SignatureTreeEnsembleTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.FastTree/RandomForestRegression.cs b/src/Microsoft.ML.FastTree/RandomForestRegression.cs index bd20572ffd..f90a37bfa7 100644 --- a/src/Microsoft.ML.FastTree/RandomForestRegression.cs +++ b/src/Microsoft.ML.FastTree/RandomForestRegression.cs @@ -2,18 +2,18 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; +using Microsoft.ML.Training; [assembly: LoadableClass(FastForestRegression.Summary, typeof(FastForestRegression), typeof(FastForestRegression.Arguments), new[] { typeof(SignatureRegressorTrainer), typeof(SignatureTrainer), typeof(SignatureTreeEnsembleTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.FastTree/SumupPerformanceCommand.cs b/src/Microsoft.ML.FastTree/SumupPerformanceCommand.cs index 19b44c4706..7e1214f2d5 100644 --- a/src/Microsoft.ML.FastTree/SumupPerformanceCommand.cs +++ b/src/Microsoft.ML.FastTree/SumupPerformanceCommand.cs @@ -15,16 +15,16 @@ using Microsoft.ML; using Microsoft.ML.Command; using Microsoft.ML.CommandLine; +using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using Microsoft.ML.Internal.Utilities; [assembly: LoadableClass(typeof(SumupPerformanceCommand), typeof(SumupPerformanceCommand.Arguments), typeof(SignatureCommand), "", "FastTreeSumupPerformance", "ftsumup")] namespace Microsoft.ML.Trainers.FastTree { - using Stopwatch = System.Diagnostics.Stopwatch; +using Stopwatch = System.Diagnostics.Stopwatch; /// /// This is an internal utility command to measure the performance of the IntArray sumup operation. diff --git a/src/Microsoft.ML.FastTree/Training/Applications/ObjectiveFunction.cs b/src/Microsoft.ML.FastTree/Training/Applications/ObjectiveFunction.cs index 4e6c978214..2808e24cb7 100644 --- a/src/Microsoft.ML.FastTree/Training/Applications/ObjectiveFunction.cs +++ b/src/Microsoft.ML.FastTree/Training/Applications/ObjectiveFunction.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Concurrent; using System.Linq; diff --git a/src/Microsoft.ML.FastTree/Training/DcgCalculator.cs b/src/Microsoft.ML.FastTree/Training/DcgCalculator.cs index 0a0e293538..e9284a6a5e 100644 --- a/src/Microsoft.ML.FastTree/Training/DcgCalculator.cs +++ b/src/Microsoft.ML.FastTree/Training/DcgCalculator.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Linq; using System.Threading.Tasks; diff --git a/src/Microsoft.ML.FastTree/Training/DcgPermutationComparer.cs b/src/Microsoft.ML.FastTree/Training/DcgPermutationComparer.cs index 204d2f77d0..05e2955ec9 100644 --- a/src/Microsoft.ML.FastTree/Training/DcgPermutationComparer.cs +++ b/src/Microsoft.ML.FastTree/Training/DcgPermutationComparer.cs @@ -2,7 +2,6 @@ // 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; using System.Collections.Generic; namespace Microsoft.ML.Trainers.FastTree.Internal diff --git a/src/Microsoft.ML.FastTree/Training/DocumentPartitioning.cs b/src/Microsoft.ML.FastTree/Training/DocumentPartitioning.cs index 7344331612..aac8885a54 100644 --- a/src/Microsoft.ML.FastTree/Training/DocumentPartitioning.cs +++ b/src/Microsoft.ML.FastTree/Training/DocumentPartitioning.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.ML.FastTree/Training/EnsembleCompression/IEnsembleCompressor.cs b/src/Microsoft.ML.FastTree/Training/EnsembleCompression/IEnsembleCompressor.cs index e4ae77fb20..1bdb32fb10 100644 --- a/src/Microsoft.ML.FastTree/Training/EnsembleCompression/IEnsembleCompressor.cs +++ b/src/Microsoft.ML.FastTree/Training/EnsembleCompression/IEnsembleCompressor.cs @@ -1,10 +1,6 @@ -// ----------------------------------------------------------------------- -// -// Copyright (C) All Rights Reserved -// -// ----------------------------------------------------------------------- - -using Microsoft.ML; +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. namespace Microsoft.ML.Trainers.FastTree.Internal { diff --git a/src/Microsoft.ML.FastTree/Training/EnsembleCompression/LassoBasedEnsembleCompressor.cs b/src/Microsoft.ML.FastTree/Training/EnsembleCompression/LassoBasedEnsembleCompressor.cs index 52e37f5761..b2f7750e8e 100644 --- a/src/Microsoft.ML.FastTree/Training/EnsembleCompression/LassoBasedEnsembleCompressor.cs +++ b/src/Microsoft.ML.FastTree/Training/EnsembleCompression/LassoBasedEnsembleCompressor.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/AcceleratedGradientDescent.cs b/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/AcceleratedGradientDescent.cs index a860389024..eb6e27137f 100644 --- a/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/AcceleratedGradientDescent.cs +++ b/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/AcceleratedGradientDescent.cs @@ -2,8 +2,6 @@ // 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; - namespace Microsoft.ML.Trainers.FastTree.Internal { //Accelerated gradient descent score tracker diff --git a/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/ConjugateGradientDescent.cs b/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/ConjugateGradientDescent.cs index 5d4f979162..7e10e4d479 100644 --- a/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/ConjugateGradientDescent.cs +++ b/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/ConjugateGradientDescent.cs @@ -2,8 +2,6 @@ // 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; - namespace Microsoft.ML.Trainers.FastTree.Internal { // Conjugate gradient descent diff --git a/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/GradientDescent.cs b/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/GradientDescent.cs index d9b5b4ac08..917eb541fd 100644 --- a/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/GradientDescent.cs +++ b/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/GradientDescent.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/NoOptimizationAlgorithm.cs b/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/NoOptimizationAlgorithm.cs index bc8c3adfdc..fa5ff98fe8 100644 --- a/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/NoOptimizationAlgorithm.cs +++ b/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/NoOptimizationAlgorithm.cs @@ -2,8 +2,6 @@ // 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; - namespace Microsoft.ML.Trainers.FastTree.Internal { /// diff --git a/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/OptimizationAlgorithm.cs b/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/OptimizationAlgorithm.cs index e76d827a3e..1366dfd372 100644 --- a/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/OptimizationAlgorithm.cs +++ b/src/Microsoft.ML.FastTree/Training/OptimizationAlgorithms/OptimizationAlgorithm.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Generic; diff --git a/src/Microsoft.ML.FastTree/Training/Parallel/IParallelTraining.cs b/src/Microsoft.ML.FastTree/Training/Parallel/IParallelTraining.cs index 22fc393968..03cc1900fb 100644 --- a/src/Microsoft.ML.FastTree/Training/Parallel/IParallelTraining.cs +++ b/src/Microsoft.ML.FastTree/Training/Parallel/IParallelTraining.cs @@ -2,15 +2,14 @@ // 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; +using System; using Microsoft.ML.EntryPoints; using Microsoft.ML.Trainers.FastTree.Internal; -using System; namespace Microsoft.ML.Trainers.FastTree { - using SplitInfo = Internal.LeastSquaresRegressionTreeLearner.SplitInfo; using LeafSplitCandidates = Internal.LeastSquaresRegressionTreeLearner.LeafSplitCandidates; + using SplitInfo = Internal.LeastSquaresRegressionTreeLearner.SplitInfo; #if USE_SINGLE_PRECISION using FloatType = System.Single; diff --git a/src/Microsoft.ML.FastTree/Training/Parallel/SingleTrainer.cs b/src/Microsoft.ML.FastTree/Training/Parallel/SingleTrainer.cs index 6ca4d6f18e..7d31b86adc 100644 --- a/src/Microsoft.ML.FastTree/Training/Parallel/SingleTrainer.cs +++ b/src/Microsoft.ML.FastTree/Training/Parallel/SingleTrainer.cs @@ -5,8 +5,8 @@ using System; using Microsoft.ML; using Microsoft.ML.EntryPoints; -using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Trainers.FastTree; [assembly: LoadableClass(typeof(Microsoft.ML.Trainers.FastTree.SingleTrainer), null, typeof(Microsoft.ML.Trainers.FastTree.SignatureParallelTrainer), "single")] @@ -16,8 +16,8 @@ namespace Microsoft.ML.Trainers.FastTree { using Microsoft.ML.Trainers.FastTree.Internal; - using SplitInfo = Internal.LeastSquaresRegressionTreeLearner.SplitInfo; using LeafSplitCandidates = Internal.LeastSquaresRegressionTreeLearner.LeafSplitCandidates; + using SplitInfo = Internal.LeastSquaresRegressionTreeLearner.SplitInfo; public sealed class SingleTrainer : IParallelTraining { diff --git a/src/Microsoft.ML.FastTree/Training/ScoreTracker.cs b/src/Microsoft.ML.FastTree/Training/ScoreTracker.cs index 37fbfc84e5..9f931d5926 100644 --- a/src/Microsoft.ML.FastTree/Training/ScoreTracker.cs +++ b/src/Microsoft.ML.FastTree/Training/ScoreTracker.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/src/Microsoft.ML.FastTree/Training/StepSearch.cs b/src/Microsoft.ML.FastTree/Training/StepSearch.cs index 96a1b87b24..66ffcb943d 100644 --- a/src/Microsoft.ML.FastTree/Training/StepSearch.cs +++ b/src/Microsoft.ML.FastTree/Training/StepSearch.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Linq; diff --git a/src/Microsoft.ML.FastTree/Training/Test.cs b/src/Microsoft.ML.FastTree/Training/Test.cs index 5d60f32227..dc587d8e76 100644 --- a/src/Microsoft.ML.FastTree/Training/Test.cs +++ b/src/Microsoft.ML.FastTree/Training/Test.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.ML.FastTree/Training/TreeLearners/FastForestLeastSquaresTreeLearner.cs b/src/Microsoft.ML.FastTree/Training/TreeLearners/FastForestLeastSquaresTreeLearner.cs index 69f218f958..d45e3e00ab 100644 --- a/src/Microsoft.ML.FastTree/Training/TreeLearners/FastForestLeastSquaresTreeLearner.cs +++ b/src/Microsoft.ML.FastTree/Training/TreeLearners/FastForestLeastSquaresTreeLearner.cs @@ -2,7 +2,6 @@ // 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; using System; namespace Microsoft.ML.Trainers.FastTree.Internal diff --git a/src/Microsoft.ML.FastTree/Training/TreeLearners/LeastSquaresRegressionTreeLearner.cs b/src/Microsoft.ML.FastTree/Training/TreeLearners/LeastSquaresRegressionTreeLearner.cs index a932b2099a..a78e117c75 100644 --- a/src/Microsoft.ML.FastTree/Training/TreeLearners/LeastSquaresRegressionTreeLearner.cs +++ b/src/Microsoft.ML.FastTree/Training/TreeLearners/LeastSquaresRegressionTreeLearner.cs @@ -2,13 +2,12 @@ // 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; -using Microsoft.ML.Internal.CpuMath; -using Microsoft.ML.Internal.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; +using Microsoft.ML.Internal.CpuMath; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Trainers.FastTree.Internal { diff --git a/src/Microsoft.ML.FastTree/Training/TreeLearners/TreeLearner.cs b/src/Microsoft.ML.FastTree/Training/TreeLearners/TreeLearner.cs index 51296d2f2b..19e3dea71b 100644 --- a/src/Microsoft.ML.FastTree/Training/TreeLearners/TreeLearner.cs +++ b/src/Microsoft.ML.FastTree/Training/TreeLearners/TreeLearner.cs @@ -2,7 +2,6 @@ // 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; using System; namespace Microsoft.ML.Trainers.FastTree.Internal diff --git a/src/Microsoft.ML.FastTree/TreeEnsemble/QuantileRegressionTree.cs b/src/Microsoft.ML.FastTree/TreeEnsemble/QuantileRegressionTree.cs index f2d3bc9a3a..b40011bc68 100644 --- a/src/Microsoft.ML.FastTree/TreeEnsemble/QuantileRegressionTree.cs +++ b/src/Microsoft.ML.FastTree/TreeEnsemble/QuantileRegressionTree.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.FastTree/TreeEnsemble/RegressionTree.cs b/src/Microsoft.ML.FastTree/TreeEnsemble/RegressionTree.cs index ec170b5c35..9ed3b25e3c 100644 --- a/src/Microsoft.ML.FastTree/TreeEnsemble/RegressionTree.cs +++ b/src/Microsoft.ML.FastTree/TreeEnsemble/RegressionTree.cs @@ -2,19 +2,18 @@ // 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; -using Microsoft.ML.Data; -using Microsoft.ML.Internal.Internallearn; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; -using Microsoft.ML.Model.Pfa; -using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Internallearn; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; +using Microsoft.ML.Model.Pfa; +using Newtonsoft.Json.Linq; using Float = System.Single; namespace Microsoft.ML.Trainers.FastTree.Internal diff --git a/src/Microsoft.ML.FastTree/TreeEnsemble/TreeEnsemble.cs b/src/Microsoft.ML.FastTree/TreeEnsemble/TreeEnsemble.cs index 3ce93dfb9a..746882f51c 100644 --- a/src/Microsoft.ML.FastTree/TreeEnsemble/TreeEnsemble.cs +++ b/src/Microsoft.ML.FastTree/TreeEnsemble/TreeEnsemble.cs @@ -2,17 +2,17 @@ // 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.Data; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; -using Microsoft.ML.Model.Pfa; -using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; +using Microsoft.ML.Model.Pfa; +using Newtonsoft.Json.Linq; namespace Microsoft.ML.Trainers.FastTree.Internal { diff --git a/src/Microsoft.ML.FastTree/TreeEnsemble/TreeEnsembleCombiner.cs b/src/Microsoft.ML.FastTree/TreeEnsemble/TreeEnsembleCombiner.cs index 405876bd04..46ee38d566 100644 --- a/src/Microsoft.ML.FastTree/TreeEnsemble/TreeEnsembleCombiner.cs +++ b/src/Microsoft.ML.FastTree/TreeEnsemble/TreeEnsembleCombiner.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.Ensemble; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Trainers.FastTree.Internal; -using System.Collections.Generic; [assembly: LoadableClass(typeof(TreeEnsembleCombiner), null, typeof(SignatureModelCombiner), "Fast Tree Model Combiner", "FastTreeCombiner")] diff --git a/src/Microsoft.ML.FastTree/TreeEnsembleFeaturizer.cs b/src/Microsoft.ML.FastTree/TreeEnsembleFeaturizer.cs index dfc55f931d..fd0fbd832c 100644 --- a/src/Microsoft.ML.FastTree/TreeEnsembleFeaturizer.cs +++ b/src/Microsoft.ML.FastTree/TreeEnsembleFeaturizer.cs @@ -2,20 +2,20 @@ // 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.Data; +using System; +using System.Collections.Generic; +using System.IO; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Data.Conversion; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.TreePredictor; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.IO; +using Microsoft.ML.TreePredictor; [assembly: LoadableClass(typeof(ISchemaBindableMapper), typeof(TreeEnsembleFeaturizerTransform), typeof(TreeEnsembleFeaturizerBindableMapper.Arguments), typeof(SignatureBindableMapper), "Tree Ensemble Featurizer Mapper", TreeEnsembleFeaturizerBindableMapper.LoadNameShort)] diff --git a/src/Microsoft.ML.FastTree/TreeTrainersCatalog.cs b/src/Microsoft.ML.FastTree/TreeTrainersCatalog.cs index 8a900adc64..afc670cdb4 100644 --- a/src/Microsoft.ML.FastTree/TreeTrainersCatalog.cs +++ b/src/Microsoft.ML.FastTree/TreeTrainersCatalog.cs @@ -2,10 +2,9 @@ // 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; +using System; using Microsoft.ML.Data; using Microsoft.ML.Trainers.FastTree; -using System; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.FastTree/TreeTrainersStatic.cs b/src/Microsoft.ML.FastTree/TreeTrainersStatic.cs index 375499ad44..1e9ff0f4de 100644 --- a/src/Microsoft.ML.FastTree/TreeTrainersStatic.cs +++ b/src/Microsoft.ML.FastTree/TreeTrainersStatic.cs @@ -2,12 +2,10 @@ // 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; -using Microsoft.ML.Data; -using Microsoft.ML.Trainers.FastTree; +using System; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.StaticPipe.Runtime; -using System; +using Microsoft.ML.Trainers.FastTree; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.FastTree/Utils/Algorithms.cs b/src/Microsoft.ML.FastTree/Utils/Algorithms.cs index 0060ac5270..9ad94b359a 100644 --- a/src/Microsoft.ML.FastTree/Utils/Algorithms.cs +++ b/src/Microsoft.ML.FastTree/Utils/Algorithms.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Linq; diff --git a/src/Microsoft.ML.FastTree/Utils/BufferPoolManager.cs b/src/Microsoft.ML.FastTree/Utils/BufferPoolManager.cs index 112c130f21..cd0d03cfc8 100644 --- a/src/Microsoft.ML.FastTree/Utils/BufferPoolManager.cs +++ b/src/Microsoft.ML.FastTree/Utils/BufferPoolManager.cs @@ -4,7 +4,6 @@ // // ----------------------------------------------------------------------- -using Microsoft.ML; using System; using System.Collections.Concurrent; using System.Collections.Generic; diff --git a/src/Microsoft.ML.FastTree/Utils/MD5Hasher.cs b/src/Microsoft.ML.FastTree/Utils/MD5Hasher.cs index 37792cd30b..fc31ec097e 100644 --- a/src/Microsoft.ML.FastTree/Utils/MD5Hasher.cs +++ b/src/Microsoft.ML.FastTree/Utils/MD5Hasher.cs @@ -2,11 +2,10 @@ // 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; -using Microsoft.ML.Internal.Utilities; using System; using System.IO; using System.Security.Cryptography; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Trainers.FastTree.Internal { diff --git a/src/Microsoft.ML.FastTree/Utils/ThreadTaskManager.cs b/src/Microsoft.ML.FastTree/Utils/ThreadTaskManager.cs index 7cece8ceea..d479c2c53b 100644 --- a/src/Microsoft.ML.FastTree/Utils/ThreadTaskManager.cs +++ b/src/Microsoft.ML.FastTree/Utils/ThreadTaskManager.cs @@ -2,7 +2,6 @@ // 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; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Microsoft.ML.HalLearners.StaticPipe/VectorWhiteningStaticExtensions.cs b/src/Microsoft.ML.HalLearners.StaticPipe/VectorWhiteningStaticExtensions.cs index d1f52bca9c..97e6005bc7 100644 --- a/src/Microsoft.ML.HalLearners.StaticPipe/VectorWhiteningStaticExtensions.cs +++ b/src/Microsoft.ML.HalLearners.StaticPipe/VectorWhiteningStaticExtensions.cs @@ -2,12 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; using Microsoft.ML.Core.Data; using Microsoft.ML.StaticPipe; -using Microsoft.ML; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Projections; -using System.Collections.Generic; namespace Microsoft.ML.HalLearners.StaticPipe { diff --git a/src/Microsoft.ML.HalLearners/ComputeLRTrainingStdThroughHal.cs b/src/Microsoft.ML.HalLearners/ComputeLRTrainingStdThroughHal.cs index a89de8e2aa..bc30deabfc 100644 --- a/src/Microsoft.ML.HalLearners/ComputeLRTrainingStdThroughHal.cs +++ b/src/Microsoft.ML.HalLearners/ComputeLRTrainingStdThroughHal.cs @@ -2,10 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Trainers.HalLearners; -using System; namespace Microsoft.ML.Learners { diff --git a/src/Microsoft.ML.HalLearners/HalLearnersCatalog.cs b/src/Microsoft.ML.HalLearners/HalLearnersCatalog.cs index 42cc1ce797..62420c9b0f 100644 --- a/src/Microsoft.ML.HalLearners/HalLearnersCatalog.cs +++ b/src/Microsoft.ML.HalLearners/HalLearnersCatalog.cs @@ -2,12 +2,11 @@ // 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; +using System; using Microsoft.ML.Data; using Microsoft.ML.Trainers.HalLearners; using Microsoft.ML.Trainers.SymSgd; using Microsoft.ML.Transforms.Projections; -using System; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.HalLearners/OlsLinearRegression.cs b/src/Microsoft.ML.HalLearners/OlsLinearRegression.cs index e0b13c4555..1dd6fa550e 100644 --- a/src/Microsoft.ML.HalLearners/OlsLinearRegression.cs +++ b/src/Microsoft.ML.HalLearners/OlsLinearRegression.cs @@ -2,22 +2,22 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.IO; +using System.Runtime.InteropServices; +using System.Security; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Learners; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.HalLearners; -using System; -using System.Collections.Generic; -using System.IO; -using System.Runtime.InteropServices; -using System.Security; +using Microsoft.ML.Training; [assembly: LoadableClass(OlsLinearRegressionTrainer.Summary, typeof(OlsLinearRegressionTrainer), typeof(OlsLinearRegressionTrainer.Arguments), new[] { typeof(SignatureRegressorTrainer), typeof(SignatureTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.HalLearners/SymSgdClassificationTrainer.cs b/src/Microsoft.ML.HalLearners/SymSgdClassificationTrainer.cs index 7eacb9a972..30fd5410de 100644 --- a/src/Microsoft.ML.HalLearners/SymSgdClassificationTrainer.cs +++ b/src/Microsoft.ML.HalLearners/SymSgdClassificationTrainer.cs @@ -2,23 +2,23 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Runtime.InteropServices; +using System.Security; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Data.Conversion; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Learners; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.SymSgd; +using Microsoft.ML.Training; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security; [assembly: LoadableClass(typeof(SymSgdClassificationTrainer), typeof(SymSgdClassificationTrainer.Arguments), new[] { typeof(SignatureBinaryClassifierTrainer), typeof(SignatureTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.HalLearners/VectorWhitening.cs b/src/Microsoft.ML.HalLearners/VectorWhitening.cs index 0a784065d6..9d7daf09ec 100644 --- a/src/Microsoft.ML.HalLearners/VectorWhitening.cs +++ b/src/Microsoft.ML.HalLearners/VectorWhitening.cs @@ -2,21 +2,21 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.InteropServices; +using System.Security; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms.Projections; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.InteropServices; -using System.Security; -using System.Text; [assembly: LoadableClass(VectorWhiteningTransformer.Summary, typeof(IDataTransform), typeof(VectorWhiteningTransformer), typeof(VectorWhiteningTransformer.Arguments), typeof(SignatureDataTransform), VectorWhiteningTransformer.FriendlyName, VectorWhiteningTransformer.LoaderSignature, "Whitening")] diff --git a/src/Microsoft.ML.ImageAnalytics/ExtensionsCatalog.cs b/src/Microsoft.ML.ImageAnalytics/ExtensionsCatalog.cs index c39f0d33a9..ebc9ee1ff3 100644 --- a/src/Microsoft.ML.ImageAnalytics/ExtensionsCatalog.cs +++ b/src/Microsoft.ML.ImageAnalytics/ExtensionsCatalog.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.ImageAnalytics; diff --git a/src/Microsoft.ML.ImageAnalytics/ImageGrayscaleTransform.cs b/src/Microsoft.ML.ImageAnalytics/ImageGrayscaleTransform.cs index 4d14ddd9e8..5cb7642893 100644 --- a/src/Microsoft.ML.ImageAnalytics/ImageGrayscaleTransform.cs +++ b/src/Microsoft.ML.ImageAnalytics/ImageGrayscaleTransform.cs @@ -2,22 +2,22 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Drawing.Imaging; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.ImageAnalytics; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.Drawing.Imaging; -using System.Linq; -using System.Text; [assembly: LoadableClass(ImageGrayscaleTransform.Summary, typeof(IDataTransform), typeof(ImageGrayscaleTransform), typeof(ImageGrayscaleTransform.Arguments), typeof(SignatureDataTransform), ImageGrayscaleTransform.UserName, "ImageGrayscaleTransform", "ImageGrayscale")] diff --git a/src/Microsoft.ML.ImageAnalytics/ImageLoaderTransform.cs b/src/Microsoft.ML.ImageAnalytics/ImageLoaderTransform.cs index 415024d153..a79085b606 100644 --- a/src/Microsoft.ML.ImageAnalytics/ImageLoaderTransform.cs +++ b/src/Microsoft.ML.ImageAnalytics/ImageLoaderTransform.cs @@ -2,22 +2,22 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.ImageAnalytics; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; -using System; -using System.Collections.Generic; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Text; [assembly: LoadableClass(ImageLoaderTransform.Summary, typeof(IDataTransform), typeof(ImageLoaderTransform), typeof(ImageLoaderTransform.Arguments), typeof(SignatureDataTransform), ImageLoaderTransform.UserName, "ImageLoaderTransform", "ImageLoader")] diff --git a/src/Microsoft.ML.ImageAnalytics/ImagePixelExtractorTransform.cs b/src/Microsoft.ML.ImageAnalytics/ImagePixelExtractorTransform.cs index 4d6cc8de22..dd76d71da7 100644 --- a/src/Microsoft.ML.ImageAnalytics/ImagePixelExtractorTransform.cs +++ b/src/Microsoft.ML.ImageAnalytics/ImagePixelExtractorTransform.cs @@ -8,10 +8,10 @@ using System.Linq; using System.Runtime.InteropServices; using System.Text; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.ImageAnalytics; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.ImageAnalytics/ImageResizerTransform.cs b/src/Microsoft.ML.ImageAnalytics/ImageResizerTransform.cs index 469cf69766..3d795846ba 100644 --- a/src/Microsoft.ML.ImageAnalytics/ImageResizerTransform.cs +++ b/src/Microsoft.ML.ImageAnalytics/ImageResizerTransform.cs @@ -7,10 +7,10 @@ using System.Drawing; using System.Linq; using System.Text; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.ImageAnalytics; using Microsoft.ML.Internal.Internallearn; diff --git a/src/Microsoft.ML.ImageAnalytics/ImageType.cs b/src/Microsoft.ML.ImageAnalytics/ImageType.cs index 4b6446e365..270e86a411 100644 --- a/src/Microsoft.ML.ImageAnalytics/ImageType.cs +++ b/src/Microsoft.ML.ImageAnalytics/ImageType.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Drawing; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.KMeansClustering/KMeansCatalog.cs b/src/Microsoft.ML.KMeansClustering/KMeansCatalog.cs index 2e121a61e6..3fa9f16741 100644 --- a/src/Microsoft.ML.KMeansClustering/KMeansCatalog.cs +++ b/src/Microsoft.ML.KMeansClustering/KMeansCatalog.cs @@ -2,10 +2,9 @@ // 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; +using System; using Microsoft.ML.Data; using Microsoft.ML.Trainers.KMeans; -using System; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.KMeansClustering/KMeansModelParameters.cs b/src/Microsoft.ML.KMeansClustering/KMeansModelParameters.cs index b70d6a0f65..9bbf803924 100644 --- a/src/Microsoft.ML.KMeansClustering/KMeansModelParameters.cs +++ b/src/Microsoft.ML.KMeansClustering/KMeansModelParameters.cs @@ -2,8 +2,9 @@ // 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.IO; using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Internal.Internallearn; @@ -12,9 +13,7 @@ using Microsoft.ML.Model.Onnx; using Microsoft.ML.Numeric; using Microsoft.ML.Trainers.KMeans; -using System; -using System.IO; -using System.Collections.Generic; +using Float = System.Single; [assembly: LoadableClass(typeof(KMeansModelParameters), null, typeof(SignatureLoadModel), "KMeans predictor", KMeansModelParameters.LoaderSignature)] diff --git a/src/Microsoft.ML.KMeansClustering/KMeansPlusPlusTrainer.cs b/src/Microsoft.ML.KMeansClustering/KMeansPlusPlusTrainer.cs index eb249d29e3..35f64309d6 100644 --- a/src/Microsoft.ML.KMeansClustering/KMeansPlusPlusTrainer.cs +++ b/src/Microsoft.ML.KMeansClustering/KMeansPlusPlusTrainer.cs @@ -2,20 +2,20 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Linq; +using System.Threading.Tasks; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Numeric; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.KMeans; -using System; -using System.Linq; -using System.Threading.Tasks; +using Microsoft.ML.Training; [assembly: LoadableClass(KMeansPlusPlusTrainer.Summary, typeof(KMeansPlusPlusTrainer), typeof(KMeansPlusPlusTrainer.Arguments), new[] { typeof(SignatureClusteringTrainer), typeof(SignatureTrainer) }, diff --git a/src/Microsoft.ML.KMeansClustering/KMeansStatic.cs b/src/Microsoft.ML.KMeansClustering/KMeansStatic.cs index 7022cd8e6e..7a7aef03ba 100644 --- a/src/Microsoft.ML.KMeansClustering/KMeansStatic.cs +++ b/src/Microsoft.ML.KMeansClustering/KMeansStatic.cs @@ -2,11 +2,9 @@ // 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; -using Microsoft.ML.Data; +using System; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Trainers.KMeans; -using System; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.Legacy/AssemblyRegistration.cs b/src/Microsoft.ML.Legacy/AssemblyRegistration.cs index f8e6a855c3..72e2debc77 100644 --- a/src/Microsoft.ML.Legacy/AssemblyRegistration.cs +++ b/src/Microsoft.ML.Legacy/AssemblyRegistration.cs @@ -2,6 +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 System; +using System.Reflection; using Microsoft.ML.Data; using Microsoft.ML.Ensemble; using Microsoft.ML.Sweeper; @@ -10,8 +12,6 @@ using Microsoft.ML.Trainers.KMeans; using Microsoft.ML.Trainers.PCA; using Microsoft.ML.Transforms.Categorical; -using System; -using System.Reflection; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Legacy/Data/CollectionDataSource.cs b/src/Microsoft.ML.Legacy/Data/CollectionDataSource.cs index e95aa0cb56..33f973c411 100644 --- a/src/Microsoft.ML.Legacy/Data/CollectionDataSource.cs +++ b/src/Microsoft.ML.Legacy/Data/CollectionDataSource.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; -using System; -using System.Collections.Generic; namespace Microsoft.ML.Legacy.Data { diff --git a/src/Microsoft.ML.Legacy/Data/TextLoader.cs b/src/Microsoft.ML.Legacy/Data/TextLoader.cs index b4f2960e58..0800bd3bf6 100644 --- a/src/Microsoft.ML.Legacy/Data/TextLoader.cs +++ b/src/Microsoft.ML.Legacy/Data/TextLoader.cs @@ -2,16 +2,16 @@ // 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.Data; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; +using Microsoft.ML.Data; namespace Microsoft.ML.Legacy.Data { - public sealed partial class TextLoaderRange + public sealed partial class TextLoaderRange { public TextLoaderRange() { diff --git a/src/Microsoft.ML.Legacy/ILearningPipelineItem.cs b/src/Microsoft.ML.Legacy/ILearningPipelineItem.cs index 4a7d452963..341b936420 100644 --- a/src/Microsoft.ML.Legacy/ILearningPipelineItem.cs +++ b/src/Microsoft.ML.Legacy/ILearningPipelineItem.cs @@ -2,10 +2,9 @@ // 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; +using System; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; -using System; namespace Microsoft.ML.Legacy { diff --git a/src/Microsoft.ML.Legacy/LearningPipeline.cs b/src/Microsoft.ML.Legacy/LearningPipeline.cs index 701fa5721d..a4bc9e0027 100644 --- a/src/Microsoft.ML.Legacy/LearningPipeline.cs +++ b/src/Microsoft.ML.Legacy/LearningPipeline.cs @@ -2,13 +2,13 @@ // 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.Data; -using Microsoft.ML.EntryPoints; using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.IO; +using Microsoft.ML.Data; +using Microsoft.ML.EntryPoints; namespace Microsoft.ML.Legacy { diff --git a/src/Microsoft.ML.Legacy/LearningPipelineDebugProxy.cs b/src/Microsoft.ML.Legacy/LearningPipelineDebugProxy.cs index da4cb8da1f..150c1634f9 100644 --- a/src/Microsoft.ML.Legacy/LearningPipelineDebugProxy.cs +++ b/src/Microsoft.ML.Legacy/LearningPipelineDebugProxy.cs @@ -2,13 +2,13 @@ // 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.Data; -using Microsoft.ML.Legacy.Transforms; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; +using Microsoft.ML.Data; +using Microsoft.ML.Legacy.Transforms; namespace Microsoft.ML.Legacy { diff --git a/src/Microsoft.ML.Legacy/Models/BinaryClassificationEvaluator.cs b/src/Microsoft.ML.Legacy/Models/BinaryClassificationEvaluator.cs index 9fecd9a73d..bde112057d 100644 --- a/src/Microsoft.ML.Legacy/Models/BinaryClassificationEvaluator.cs +++ b/src/Microsoft.ML.Legacy/Models/BinaryClassificationEvaluator.cs @@ -2,9 +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 Microsoft.ML.Legacy.Transforms; -using Microsoft.ML; using Microsoft.ML.Data; +using Microsoft.ML.Legacy.Transforms; namespace Microsoft.ML.Legacy.Models { diff --git a/src/Microsoft.ML.Legacy/Models/BinaryClassificationMetrics.cs b/src/Microsoft.ML.Legacy/Models/BinaryClassificationMetrics.cs index 9dfc3f4083..ac8aa0bfbd 100644 --- a/src/Microsoft.ML.Legacy/Models/BinaryClassificationMetrics.cs +++ b/src/Microsoft.ML.Legacy/Models/BinaryClassificationMetrics.cs @@ -2,9 +2,9 @@ // 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.Data; using System; using System.Collections.Generic; +using Microsoft.ML.Data; using static Microsoft.ML.Data.MetricKinds; namespace Microsoft.ML.Legacy.Models diff --git a/src/Microsoft.ML.Legacy/Models/ClassificationEvaluator.cs b/src/Microsoft.ML.Legacy/Models/ClassificationEvaluator.cs index 77cbf0818e..97e034d4b5 100644 --- a/src/Microsoft.ML.Legacy/Models/ClassificationEvaluator.cs +++ b/src/Microsoft.ML.Legacy/Models/ClassificationEvaluator.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Legacy.Transforms; diff --git a/src/Microsoft.ML.Legacy/Models/ClassificationMetrics.cs b/src/Microsoft.ML.Legacy/Models/ClassificationMetrics.cs index 88e765a363..cf594a354c 100644 --- a/src/Microsoft.ML.Legacy/Models/ClassificationMetrics.cs +++ b/src/Microsoft.ML.Legacy/Models/ClassificationMetrics.cs @@ -2,9 +2,9 @@ // 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.Data; using System; using System.Collections.Generic; +using Microsoft.ML.Data; using static Microsoft.ML.Data.MetricKinds; namespace Microsoft.ML.Legacy.Models diff --git a/src/Microsoft.ML.Legacy/Models/ClusterEvaluator.cs b/src/Microsoft.ML.Legacy/Models/ClusterEvaluator.cs index 0c41f78413..92ae134872 100644 --- a/src/Microsoft.ML.Legacy/Models/ClusterEvaluator.cs +++ b/src/Microsoft.ML.Legacy/Models/ClusterEvaluator.cs @@ -2,9 +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 Microsoft.ML.Legacy.Transforms; -using Microsoft.ML; using Microsoft.ML.Data; +using Microsoft.ML.Legacy.Transforms; namespace Microsoft.ML.Legacy.Models { diff --git a/src/Microsoft.ML.Legacy/Models/ClusterMetrics.cs b/src/Microsoft.ML.Legacy/Models/ClusterMetrics.cs index 1a797342d3..b9432ad646 100644 --- a/src/Microsoft.ML.Legacy/Models/ClusterMetrics.cs +++ b/src/Microsoft.ML.Legacy/Models/ClusterMetrics.cs @@ -2,9 +2,9 @@ // 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.Data; using System; using System.Collections.Generic; +using Microsoft.ML.Data; using static Microsoft.ML.Data.MetricKinds; namespace Microsoft.ML.Legacy.Models diff --git a/src/Microsoft.ML.Legacy/Models/ConfusionMatrix.cs b/src/Microsoft.ML.Legacy/Models/ConfusionMatrix.cs index 5197342c7b..0931e2ff7e 100644 --- a/src/Microsoft.ML.Legacy/Models/ConfusionMatrix.cs +++ b/src/Microsoft.ML.Legacy/Models/ConfusionMatrix.cs @@ -2,9 +2,9 @@ // 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.Data; using System; using System.Collections.Generic; +using Microsoft.ML.Data; namespace Microsoft.ML.Legacy.Models { diff --git a/src/Microsoft.ML.Legacy/Models/OneVersusAll.cs b/src/Microsoft.ML.Legacy/Models/OneVersusAll.cs index f5e0728a83..8020cebaa8 100644 --- a/src/Microsoft.ML.Legacy/Models/OneVersusAll.cs +++ b/src/Microsoft.ML.Legacy/Models/OneVersusAll.cs @@ -2,10 +2,9 @@ // 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; +using System; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; -using System; using static Microsoft.ML.EntryPoints.CommonInputs; namespace Microsoft.ML.Legacy.Models diff --git a/src/Microsoft.ML.Legacy/Models/OnnxConverter.cs b/src/Microsoft.ML.Legacy/Models/OnnxConverter.cs index 499adc722e..96d74db10e 100644 --- a/src/Microsoft.ML.Legacy/Models/OnnxConverter.cs +++ b/src/Microsoft.ML.Legacy/Models/OnnxConverter.cs @@ -2,8 +2,6 @@ // 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; - namespace Microsoft.ML.Legacy.Models { public sealed partial class OnnxConverter diff --git a/src/Microsoft.ML.Legacy/Models/RegressionEvaluator.cs b/src/Microsoft.ML.Legacy/Models/RegressionEvaluator.cs index 89c8801f29..9c57886401 100644 --- a/src/Microsoft.ML.Legacy/Models/RegressionEvaluator.cs +++ b/src/Microsoft.ML.Legacy/Models/RegressionEvaluator.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Legacy.Transforms; diff --git a/src/Microsoft.ML.Legacy/Models/RegressionMetrics.cs b/src/Microsoft.ML.Legacy/Models/RegressionMetrics.cs index 9cbee20457..b98578a3a5 100644 --- a/src/Microsoft.ML.Legacy/Models/RegressionMetrics.cs +++ b/src/Microsoft.ML.Legacy/Models/RegressionMetrics.cs @@ -2,9 +2,9 @@ // 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.Data; using System; using System.Collections.Generic; +using Microsoft.ML.Data; using static Microsoft.ML.Data.MetricKinds; namespace Microsoft.ML.Legacy.Models diff --git a/src/Microsoft.ML.Legacy/PredictionModel.cs b/src/Microsoft.ML.Legacy/PredictionModel.cs index c00f648e94..251e5927ea 100644 --- a/src/Microsoft.ML.Legacy/PredictionModel.cs +++ b/src/Microsoft.ML.Legacy/PredictionModel.cs @@ -2,12 +2,12 @@ // 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.Data; -using Microsoft.ML.EntryPoints; using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; +using Microsoft.ML.Data; +using Microsoft.ML.EntryPoints; namespace Microsoft.ML.Legacy { diff --git a/src/Microsoft.ML.Legacy/Properties/AssemblyInfo.cs b/src/Microsoft.ML.Legacy/Properties/AssemblyInfo.cs index 70fe21adb6..297305755a 100644 --- a/src/Microsoft.ML.Legacy/Properties/AssemblyInfo.cs +++ b/src/Microsoft.ML.Legacy/Properties/AssemblyInfo.cs @@ -2,8 +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 Microsoft.ML; using System.Runtime.CompilerServices; +using Microsoft.ML; [assembly: InternalsVisibleTo("Microsoft.ML.Tests" + PublicKey.TestValue)] [assembly: InternalsVisibleTo("Microsoft.ML.Core.Tests" + PublicKey.TestValue)] diff --git a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/EntryPointGeneratorBase.cs b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/EntryPointGeneratorBase.cs index 4e22f089ac..62c45a3a58 100644 --- a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/EntryPointGeneratorBase.cs +++ b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/EntryPointGeneratorBase.cs @@ -5,7 +5,6 @@ using System; using System.CodeDom.Compiler; using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.EntryPoints.CodeGen { diff --git a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/GeneratorBase.cs b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/GeneratorBase.cs index abed47e26a..8a0effcad6 100644 --- a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/GeneratorBase.cs +++ b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/GeneratorBase.cs @@ -2,16 +2,16 @@ // 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.CSharp; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Data; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Transforms; using System; using System.CodeDom; using System.CodeDom.Compiler; using System.Collections.Generic; using System.Reflection; +using Microsoft.CSharp; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Transforms; namespace Microsoft.ML.EntryPoints.CodeGen { diff --git a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/ImplGeneratorBase.cs b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/ImplGeneratorBase.cs index 6d427cb7a3..7bdf29276d 100644 --- a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/ImplGeneratorBase.cs +++ b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/ImplGeneratorBase.cs @@ -6,7 +6,6 @@ using System.CodeDom.Compiler; using System.Linq; using Microsoft.ML.CommandLine; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.EntryPoints.CodeGen diff --git a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/ModuleGenerator.cs b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/ModuleGenerator.cs index 4d571c2e40..918318b266 100644 --- a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/ModuleGenerator.cs +++ b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/ModuleGenerator.cs @@ -14,7 +14,6 @@ using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints.CodeGen; -using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Tools; [assembly: LoadableClass(typeof(ModuleGenerator), typeof(ModuleGenerator.Arguments), typeof(SignatureModuleGenerator), diff --git a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/TransformGenerators.cs b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/TransformGenerators.cs index e6bb58b14f..fb1c40aa16 100644 --- a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/TransformGenerators.cs +++ b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/CodeGen/TransformGenerators.cs @@ -9,7 +9,6 @@ using System.Linq; using System.Text; using Microsoft.ML.CommandLine; -using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.EntryPoints.CodeGen diff --git a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/ImportTextData.cs b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/ImportTextData.cs index fcd6272090..bf4faadbf2 100644 --- a/src/Microsoft.ML.Legacy/Runtime/EntryPoints/ImportTextData.cs +++ b/src/Microsoft.ML.Legacy/Runtime/EntryPoints/ImportTextData.cs @@ -2,8 +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 Microsoft.ML.Data; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; [assembly: EntryPointModule(typeof(Microsoft.ML.Legacy.EntryPoints.ImportTextData))] diff --git a/src/Microsoft.ML.LightGBM.StaticPipe/LightGbmStaticExtensions.cs b/src/Microsoft.ML.LightGBM.StaticPipe/LightGbmStaticExtensions.cs index 89fe638c6b..c7fde436a1 100644 --- a/src/Microsoft.ML.LightGBM.StaticPipe/LightGbmStaticExtensions.cs +++ b/src/Microsoft.ML.LightGBM.StaticPipe/LightGbmStaticExtensions.cs @@ -2,15 +2,11 @@ // 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.StaticPipe; -using Microsoft.ML; -using Microsoft.ML.Data; +using System; using Microsoft.ML.Internal.Internallearn; -using Microsoft.ML.Learners; -using Microsoft.ML.LightGBM; +using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Trainers; -using System; namespace Microsoft.ML.LightGBM.StaticPipe { diff --git a/src/Microsoft.ML.LightGBM/LightGbmArguments.cs b/src/Microsoft.ML.LightGBM/LightGbmArguments.cs index 1f709d4639..13d959d08a 100644 --- a/src/Microsoft.ML.LightGBM/LightGbmArguments.cs +++ b/src/Microsoft.ML.LightGBM/LightGbmArguments.cs @@ -3,8 +3,8 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using System.Text; using System.Reflection; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.EntryPoints; diff --git a/src/Microsoft.ML.LightGBM/LightGbmBinaryTrainer.cs b/src/Microsoft.ML.LightGBM/LightGbmBinaryTrainer.cs index 9d70bd2c03..7e2895856d 100644 --- a/src/Microsoft.ML.LightGBM/LightGbmBinaryTrainer.cs +++ b/src/Microsoft.ML.LightGBM/LightGbmBinaryTrainer.cs @@ -2,19 +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 System; +using Microsoft.ML; using Microsoft.ML.Calibrator; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.LightGBM; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; +using Microsoft.ML.Training; [assembly: LoadableClass(LightGbmBinaryTrainer.Summary, typeof(LightGbmBinaryTrainer), typeof(LightGbmArguments), new[] { typeof(SignatureBinaryClassifierTrainer), typeof(SignatureTrainer), typeof(SignatureTreeEnsembleTrainer) }, diff --git a/src/Microsoft.ML.LightGBM/LightGbmCatalog.cs b/src/Microsoft.ML.LightGBM/LightGbmCatalog.cs index d5d45cea0e..a83ddf61f8 100644 --- a/src/Microsoft.ML.LightGBM/LightGbmCatalog.cs +++ b/src/Microsoft.ML.LightGBM/LightGbmCatalog.cs @@ -2,10 +2,9 @@ // 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; +using System; using Microsoft.ML.Data; using Microsoft.ML.LightGBM; -using System; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.LightGBM/LightGbmMulticlassTrainer.cs b/src/Microsoft.ML.LightGBM/LightGbmMulticlassTrainer.cs index 5ebfe4a621..80776030d1 100644 --- a/src/Microsoft.ML.LightGBM/LightGbmMulticlassTrainer.cs +++ b/src/Microsoft.ML.LightGBM/LightGbmMulticlassTrainer.cs @@ -2,17 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.LightGBM; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; using Microsoft.ML.Trainers.FastTree.Internal; -using System; -using System.Linq; +using Microsoft.ML.Training; [assembly: LoadableClass(LightGbmMulticlassTrainer.Summary, typeof(LightGbmMulticlassTrainer), typeof(LightGbmArguments), new[] { typeof(SignatureMultiClassClassifierTrainer), typeof(SignatureTrainer) }, diff --git a/src/Microsoft.ML.LightGBM/LightGbmRankingTrainer.cs b/src/Microsoft.ML.LightGBM/LightGbmRankingTrainer.cs index 5abc50bae2..1aeca6a725 100644 --- a/src/Microsoft.ML.LightGBM/LightGbmRankingTrainer.cs +++ b/src/Microsoft.ML.LightGBM/LightGbmRankingTrainer.cs @@ -2,16 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.LightGBM; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; +using Microsoft.ML.Training; [assembly: LoadableClass(LightGbmRankingTrainer.UserName, typeof(LightGbmRankingTrainer), typeof(LightGbmArguments), new[] { typeof(SignatureRankerTrainer), typeof(SignatureTrainer), typeof(SignatureTreeEnsembleTrainer) }, diff --git a/src/Microsoft.ML.LightGBM/LightGbmRegressionTrainer.cs b/src/Microsoft.ML.LightGBM/LightGbmRegressionTrainer.cs index 73ae3db649..159b95b243 100644 --- a/src/Microsoft.ML.LightGBM/LightGbmRegressionTrainer.cs +++ b/src/Microsoft.ML.LightGBM/LightGbmRegressionTrainer.cs @@ -2,16 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.LightGBM; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.FastTree.Internal; -using System; +using Microsoft.ML.Training; [assembly: LoadableClass(LightGbmRegressorTrainer.Summary, typeof(LightGbmRegressorTrainer), typeof(LightGbmArguments), new[] { typeof(SignatureRegressorTrainer), typeof(SignatureTrainer), typeof(SignatureTreeEnsembleTrainer) }, diff --git a/src/Microsoft.ML.LightGBM/LightGbmTrainerBase.cs b/src/Microsoft.ML.LightGBM/LightGbmTrainerBase.cs index 904a164b90..ec25a73c30 100644 --- a/src/Microsoft.ML.LightGBM/LightGbmTrainerBase.cs +++ b/src/Microsoft.ML.LightGBM/LightGbmTrainerBase.cs @@ -2,14 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.FastTree.Internal; -using System; -using System.Collections.Generic; +using Microsoft.ML.Training; namespace Microsoft.ML.LightGBM { diff --git a/src/Microsoft.ML.LightGBM/WrappedLightGbmDataset.cs b/src/Microsoft.ML.LightGBM/WrappedLightGbmDataset.cs index c666d070e0..2580dee492 100644 --- a/src/Microsoft.ML.LightGBM/WrappedLightGbmDataset.cs +++ b/src/Microsoft.ML.LightGBM/WrappedLightGbmDataset.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using System.Threading.Tasks; using System.Runtime.InteropServices; namespace Microsoft.ML.LightGBM diff --git a/src/Microsoft.ML.LightGBM/WrappedLightGbmTraining.cs b/src/Microsoft.ML.LightGBM/WrappedLightGbmTraining.cs index e7a726d6da..79b0b96660 100644 --- a/src/Microsoft.ML.LightGBM/WrappedLightGbmTraining.cs +++ b/src/Microsoft.ML.LightGBM/WrappedLightGbmTraining.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; using System.Collections.Generic; namespace Microsoft.ML.LightGBM diff --git a/src/Microsoft.ML.Maml/MAML.cs b/src/Microsoft.ML.Maml/MAML.cs index c71f16099e..93d4aeb2c6 100644 --- a/src/Microsoft.ML.Maml/MAML.cs +++ b/src/Microsoft.ML.Maml/MAML.cs @@ -14,7 +14,6 @@ using Microsoft.ML.Data; #if CORECLR -using Microsoft.ML.Internal.Utilities; #endif #if !CORECLR diff --git a/src/Microsoft.ML.Onnx/OnnxContextImpl.cs b/src/Microsoft.ML.Onnx/OnnxContextImpl.cs index e33896e811..af621e221a 100644 --- a/src/Microsoft.ML.Onnx/OnnxContextImpl.cs +++ b/src/Microsoft.ML.Onnx/OnnxContextImpl.cs @@ -5,8 +5,8 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML.UniversalModelFormat.Onnx; using Microsoft.ML.Data; +using Microsoft.ML.UniversalModelFormat.Onnx; namespace Microsoft.ML.Model.Onnx { diff --git a/src/Microsoft.ML.Onnx/OnnxMl.cs b/src/Microsoft.ML.Onnx/OnnxMl.cs index 3f9f8171d4..320b017b49 100644 --- a/src/Microsoft.ML.Onnx/OnnxMl.cs +++ b/src/Microsoft.ML.Onnx/OnnxMl.cs @@ -8,7 +8,6 @@ using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; -using scg = global::System.Collections.Generic; namespace Microsoft.ML.UniversalModelFormat.Onnx { diff --git a/src/Microsoft.ML.Onnx/OnnxNodeImpl.cs b/src/Microsoft.ML.Onnx/OnnxNodeImpl.cs index 095ed1f891..35f56c683f 100644 --- a/src/Microsoft.ML.Onnx/OnnxNodeImpl.cs +++ b/src/Microsoft.ML.Onnx/OnnxNodeImpl.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; -using Microsoft.ML.Data; using Microsoft.ML.UniversalModelFormat.Onnx; namespace Microsoft.ML.Model.Onnx diff --git a/src/Microsoft.ML.Onnx/OnnxUtils.cs b/src/Microsoft.ML.Onnx/OnnxUtils.cs index 7519fd9b8d..0ea66b93c1 100644 --- a/src/Microsoft.ML.Onnx/OnnxUtils.cs +++ b/src/Microsoft.ML.Onnx/OnnxUtils.cs @@ -2,13 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Google.Protobuf; -using Microsoft.ML.Data; -using Microsoft.ML.UniversalModelFormat.Onnx; using System; using System.Collections.Generic; using System.Linq; using System.Text; +using Google.Protobuf; +using Microsoft.ML.Data; +using Microsoft.ML.UniversalModelFormat.Onnx; namespace Microsoft.ML.Model.Onnx { diff --git a/src/Microsoft.ML.OnnxTransform.StaticPipe/DnnImageFeaturizerStaticExtensions.cs b/src/Microsoft.ML.OnnxTransform.StaticPipe/DnnImageFeaturizerStaticExtensions.cs index 5a524008d8..21b769db8b 100644 --- a/src/Microsoft.ML.OnnxTransform.StaticPipe/DnnImageFeaturizerStaticExtensions.cs +++ b/src/Microsoft.ML.OnnxTransform.StaticPipe/DnnImageFeaturizerStaticExtensions.cs @@ -2,13 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; namespace Microsoft.ML.OnnxTransform.StaticPipe { diff --git a/src/Microsoft.ML.OnnxTransform.StaticPipe/OnnxStaticExtensions.cs b/src/Microsoft.ML.OnnxTransform.StaticPipe/OnnxStaticExtensions.cs index 656a25a915..a7606d063f 100644 --- a/src/Microsoft.ML.OnnxTransform.StaticPipe/OnnxStaticExtensions.cs +++ b/src/Microsoft.ML.OnnxTransform.StaticPipe/OnnxStaticExtensions.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; using Microsoft.ML.Core.Data; using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms; -using System.Collections.Generic; namespace Microsoft.ML.OnnxTransform.StaticPipe { diff --git a/src/Microsoft.ML.OnnxTransform/DnnImageFeaturizerTransform.cs b/src/Microsoft.ML.OnnxTransform/DnnImageFeaturizerTransform.cs index fd146afef6..0f0a6b31f6 100644 --- a/src/Microsoft.ML.OnnxTransform/DnnImageFeaturizerTransform.cs +++ b/src/Microsoft.ML.OnnxTransform/DnnImageFeaturizerTransform.cs @@ -2,12 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.StaticPipe.Runtime; -using System; -using System.Collections.Generic; namespace Microsoft.ML.Transforms { diff --git a/src/Microsoft.ML.OnnxTransform/OnnxCatalog.cs b/src/Microsoft.ML.OnnxTransform/OnnxCatalog.cs index 45ec66fb3e..56d45bd6da 100644 --- a/src/Microsoft.ML.OnnxTransform/OnnxCatalog.cs +++ b/src/Microsoft.ML.OnnxTransform/OnnxCatalog.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms; diff --git a/src/Microsoft.ML.OnnxTransform/OnnxTransform.cs b/src/Microsoft.ML.OnnxTransform/OnnxTransform.cs index 0e3fd104c8..91ae1d81d7 100644 --- a/src/Microsoft.ML.OnnxTransform/OnnxTransform.cs +++ b/src/Microsoft.ML.OnnxTransform/OnnxTransform.cs @@ -8,15 +8,13 @@ using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.OnnxRuntime; using Microsoft.ML.Transforms; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.StaticPipe.Runtime; -using Microsoft.ML.Core.Data; using OnnxShape = System.Collections.Generic.List; [assembly: LoadableClass(OnnxTransform.Summary, typeof(IDataTransform), typeof(OnnxTransform), diff --git a/src/Microsoft.ML.OnnxTransform/OnnxUtils.cs b/src/Microsoft.ML.OnnxTransform/OnnxUtils.cs index af9ae4f13a..2c18a495bf 100644 --- a/src/Microsoft.ML.OnnxTransform/OnnxUtils.cs +++ b/src/Microsoft.ML.OnnxTransform/OnnxUtils.cs @@ -2,15 +2,13 @@ // 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; -using Microsoft.ML.Data; -using Microsoft.ML.OnnxRuntime; -using System.Numerics.Tensors; using System; using System.Collections.Generic; using System.IO; using System.Linq; - +using System.Numerics.Tensors; +using Microsoft.ML.Data; +using Microsoft.ML.OnnxRuntime; using OnnxShape = System.Collections.Generic.List; namespace Microsoft.ML.Transforms diff --git a/src/Microsoft.ML.PCA/PCACatalog.cs b/src/Microsoft.ML.PCA/PCACatalog.cs index 4c5c02cd1f..c697422142 100644 --- a/src/Microsoft.ML.PCA/PCACatalog.cs +++ b/src/Microsoft.ML.PCA/PCACatalog.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms.Projections; diff --git a/src/Microsoft.ML.PCA/PcaTrainer.cs b/src/Microsoft.ML.PCA/PcaTrainer.cs index 21dab10a7a..9749391909 100644 --- a/src/Microsoft.ML.PCA/PcaTrainer.cs +++ b/src/Microsoft.ML.PCA/PcaTrainer.cs @@ -2,21 +2,21 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.IO; +using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Numeric; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.PCA; -using System; -using System.IO; -using System.Linq; +using Microsoft.ML.Training; [assembly: LoadableClass(RandomizedPcaTrainer.Summary, typeof(RandomizedPcaTrainer), typeof(RandomizedPcaTrainer.Arguments), new[] { typeof(SignatureAnomalyDetectorTrainer), typeof(SignatureTrainer) }, diff --git a/src/Microsoft.ML.PCA/PcaTransform.cs b/src/Microsoft.ML.PCA/PcaTransform.cs index f3ed85f647..eafe60eb97 100644 --- a/src/Microsoft.ML.PCA/PcaTransform.cs +++ b/src/Microsoft.ML.PCA/PcaTransform.cs @@ -2,10 +2,14 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Utilities; @@ -14,10 +18,6 @@ using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Projections; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(PcaTransform.Summary, typeof(IDataTransform), typeof(PcaTransform), typeof(PcaTransform.Arguments), typeof(SignatureDataTransform), PcaTransform.UserName, PcaTransform.LoaderSignature, PcaTransform.ShortName)] diff --git a/src/Microsoft.ML.Parquet/ParquetLoader.cs b/src/Microsoft.ML.Parquet/ParquetLoader.cs index 1a34711da1..67a9f626e5 100644 --- a/src/Microsoft.ML.Parquet/ParquetLoader.cs +++ b/src/Microsoft.ML.Parquet/ParquetLoader.cs @@ -9,9 +9,9 @@ using System.Linq; using System.Numerics; using System.Text; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Recommender/MatrixFactorizationPredictor.cs b/src/Microsoft.ML.Recommender/MatrixFactorizationPredictor.cs index e4917ba0eb..bcb32b9e0a 100644 --- a/src/Microsoft.ML.Recommender/MatrixFactorizationPredictor.cs +++ b/src/Microsoft.ML.Recommender/MatrixFactorizationPredictor.cs @@ -5,8 +5,8 @@ using System; using System.Collections.Generic; using System.IO; -using Microsoft.ML.Data; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.Recommender/MatrixFactorizationStatic.cs b/src/Microsoft.ML.Recommender/MatrixFactorizationStatic.cs index c33af5f612..3a9128ad73 100644 --- a/src/Microsoft.ML.Recommender/MatrixFactorizationStatic.cs +++ b/src/Microsoft.ML.Recommender/MatrixFactorizationStatic.cs @@ -2,14 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML.Core.Data; -using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Trainers; using Microsoft.ML.Trainers.Recommender; -using System; -using System.Collections.Generic; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.Recommender/MatrixFactorizationTrainer.cs b/src/Microsoft.ML.Recommender/MatrixFactorizationTrainer.cs index 1bd4253e58..c5f41a9c28 100644 --- a/src/Microsoft.ML.Recommender/MatrixFactorizationTrainer.cs +++ b/src/Microsoft.ML.Recommender/MatrixFactorizationTrainer.cs @@ -2,20 +2,20 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Recommender; using Microsoft.ML.Recommender.Internal; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; using Microsoft.ML.Trainers.Recommender; -using System; -using System.Collections.Generic; -using System.Linq; +using Microsoft.ML.Training; [assembly: LoadableClass(MatrixFactorizationTrainer.Summary, typeof(MatrixFactorizationTrainer), typeof(MatrixFactorizationTrainer.Arguments), new Type[] { typeof(SignatureTrainer), typeof(SignatureMatrixRecommendingTrainer) }, diff --git a/src/Microsoft.ML.Recommender/RecommenderCatalog.cs b/src/Microsoft.ML.Recommender/RecommenderCatalog.cs index 55bc159217..29a6329472 100644 --- a/src/Microsoft.ML.Recommender/RecommenderCatalog.cs +++ b/src/Microsoft.ML.Recommender/RecommenderCatalog.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.Trainers; -using System.Linq; -using System; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Recommender/RecommenderUtils.cs b/src/Microsoft.ML.Recommender/RecommenderUtils.cs index 79a9bf2f54..78f69464e6 100644 --- a/src/Microsoft.ML.Recommender/RecommenderUtils.cs +++ b/src/Microsoft.ML.Recommender/RecommenderUtils.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Threading; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; diff --git a/src/Microsoft.ML.SamplesUtils/SamplesDatasetUtils.cs b/src/Microsoft.ML.SamplesUtils/SamplesDatasetUtils.cs index 76357ff264..041d4d10be 100644 --- a/src/Microsoft.ML.SamplesUtils/SamplesDatasetUtils.cs +++ b/src/Microsoft.ML.SamplesUtils/SamplesDatasetUtils.cs @@ -2,10 +2,10 @@ // 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.Data; using System; using System.Collections.Generic; using System.Net; +using Microsoft.ML.Data; namespace Microsoft.ML.SamplesUtils { diff --git a/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineCatalog.cs b/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineCatalog.cs index c5899db003..116ad702cd 100644 --- a/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineCatalog.cs +++ b/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineCatalog.cs @@ -2,10 +2,9 @@ // 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; +using System; using Microsoft.ML.Data; using Microsoft.ML.FactorizationMachine; -using System; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineInterface.cs b/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineInterface.cs index cc99488891..a850c90ff2 100644 --- a/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineInterface.cs +++ b/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineInterface.cs @@ -2,10 +2,9 @@ // 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.Internal.CpuMath; using System.Runtime.InteropServices; - using System.Security; +using Microsoft.ML.Internal.CpuMath; namespace Microsoft.ML.FactorizationMachine { diff --git a/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineStatic.cs b/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineStatic.cs index 97a0a9f1f7..77efaff552 100644 --- a/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineStatic.cs +++ b/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineStatic.cs @@ -2,14 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.FactorizationMachine; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.StaticPipe.Runtime; -using System; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineTrainer.cs b/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineTrainer.cs index 828614ac9c..d0d9601dac 100644 --- a/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineTrainer.cs +++ b/src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineTrainer.cs @@ -2,18 +2,18 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.FactorizationMachine; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Training; -using System; -using System.Collections.Generic; -using System.Linq; [assembly: LoadableClass(FieldAwareFactorizationMachineTrainer.Summary, typeof(FieldAwareFactorizationMachineTrainer), typeof(FieldAwareFactorizationMachineTrainer.Arguments), new[] { typeof(SignatureBinaryClassifierTrainer), typeof(SignatureTrainer) } diff --git a/src/Microsoft.ML.StandardLearners/FactorizationMachine/FieldAwareFactorizationMachineModelParameters.cs b/src/Microsoft.ML.StandardLearners/FactorizationMachine/FieldAwareFactorizationMachineModelParameters.cs index 69f156fc74..ff952aad3a 100644 --- a/src/Microsoft.ML.StandardLearners/FactorizationMachine/FieldAwareFactorizationMachineModelParameters.cs +++ b/src/Microsoft.ML.StandardLearners/FactorizationMachine/FieldAwareFactorizationMachineModelParameters.cs @@ -4,8 +4,8 @@ using System; using System.Collections.Generic; -using Microsoft.ML.Data; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.FactorizationMachine; using Microsoft.ML.Internal.CpuMath; diff --git a/src/Microsoft.ML.StandardLearners/Optimizer/DifferentiableFunction.cs b/src/Microsoft.ML.StandardLearners/Optimizer/DifferentiableFunction.cs index 0f1552ba46..b348fa3b9f 100644 --- a/src/Microsoft.ML.StandardLearners/Optimizer/DifferentiableFunction.cs +++ b/src/Microsoft.ML.StandardLearners/Optimizer/DifferentiableFunction.cs @@ -2,13 +2,12 @@ // 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.Threading; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; +using Float = System.Single; namespace Microsoft.ML.Numeric { diff --git a/src/Microsoft.ML.StandardLearners/Optimizer/L1Optimizer.cs b/src/Microsoft.ML.StandardLearners/Optimizer/L1Optimizer.cs index 84ef6e5b86..68609878ad 100644 --- a/src/Microsoft.ML.StandardLearners/Optimizer/L1Optimizer.cs +++ b/src/Microsoft.ML.StandardLearners/Optimizer/L1Optimizer.cs @@ -2,11 +2,10 @@ // 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 Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; +using Float = System.Single; namespace Microsoft.ML.Numeric { diff --git a/src/Microsoft.ML.StandardLearners/Optimizer/LineSearch.cs b/src/Microsoft.ML.StandardLearners/Optimizer/LineSearch.cs index 311a8007cd..0504d23824 100644 --- a/src/Microsoft.ML.StandardLearners/Optimizer/LineSearch.cs +++ b/src/Microsoft.ML.StandardLearners/Optimizer/LineSearch.cs @@ -2,11 +2,10 @@ // 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 Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; +using Float = System.Single; namespace Microsoft.ML.Numeric { diff --git a/src/Microsoft.ML.StandardLearners/Optimizer/OptimizationMonitor.cs b/src/Microsoft.ML.StandardLearners/Optimizer/OptimizationMonitor.cs index cf117ffc1d..b7d735a6e4 100644 --- a/src/Microsoft.ML.StandardLearners/Optimizer/OptimizationMonitor.cs +++ b/src/Microsoft.ML.StandardLearners/Optimizer/OptimizationMonitor.cs @@ -2,12 +2,11 @@ // 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 Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; +using Float = System.Single; namespace Microsoft.ML.Numeric { diff --git a/src/Microsoft.ML.StandardLearners/Optimizer/Optimizer.cs b/src/Microsoft.ML.StandardLearners/Optimizer/Optimizer.cs index 8d070670c3..6b2f3e4d9a 100644 --- a/src/Microsoft.ML.StandardLearners/Optimizer/Optimizer.cs +++ b/src/Microsoft.ML.StandardLearners/Optimizer/Optimizer.cs @@ -2,12 +2,11 @@ // 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 Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; +using Float = System.Single; namespace Microsoft.ML.Numeric { diff --git a/src/Microsoft.ML.StandardLearners/Optimizer/SgdOptimizer.cs b/src/Microsoft.ML.StandardLearners/Optimizer/SgdOptimizer.cs index 53d5236bac..9d65b3e448 100644 --- a/src/Microsoft.ML.StandardLearners/Optimizer/SgdOptimizer.cs +++ b/src/Microsoft.ML.StandardLearners/Optimizer/SgdOptimizer.cs @@ -2,11 +2,10 @@ // 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 Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; +using Float = System.Single; namespace Microsoft.ML.Numeric { diff --git a/src/Microsoft.ML.StandardLearners/Standard/LinearModelParameters.cs b/src/Microsoft.ML.StandardLearners/Standard/LinearModelParameters.cs index 7eb4f5d980..8bf4438ad6 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/LinearModelParameters.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/LinearModelParameters.cs @@ -2,9 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using Microsoft.ML; using Microsoft.ML.Calibrator; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; @@ -14,11 +19,6 @@ using Microsoft.ML.Model.Pfa; using Microsoft.ML.Numeric; using Newtonsoft.Json.Linq; -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Linq; // This is for deserialization from a model repository. [assembly: LoadableClass(typeof(IPredictorProducing), typeof(LinearBinaryModelParameters), null, typeof(SignatureLoadModel), diff --git a/src/Microsoft.ML.StandardLearners/Standard/LinearPredictorUtils.cs b/src/Microsoft.ML.StandardLearners/Standard/LinearPredictorUtils.cs index 6d359eabed..f9f64f3689 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/LinearPredictorUtils.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/LinearPredictorUtils.cs @@ -2,17 +2,16 @@ // 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.IO; using System.Linq; using System.Text; -using System.IO; using System.Text.RegularExpressions; using Microsoft.ML.Data; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Utilities; +using Float = System.Single; namespace Microsoft.ML.Learners { diff --git a/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LbfgsPredictorBase.cs b/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LbfgsPredictorBase.cs index 4392896e17..194780e59d 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LbfgsPredictorBase.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LbfgsPredictorBase.cs @@ -5,14 +5,14 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using Microsoft.ML.Core.Data; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; +using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Numeric; using Microsoft.ML.Training; -using Microsoft.ML.Internal.Internallearn; namespace Microsoft.ML.Learners { diff --git a/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LbfgsStatic.cs b/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LbfgsStatic.cs index e192adeae4..4ee64f9ff6 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LbfgsStatic.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LbfgsStatic.cs @@ -2,13 +2,11 @@ // 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; -using Microsoft.ML.Data; +using System; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Learners; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Trainers; -using System; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LogisticRegression.cs b/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LogisticRegression.cs index 22b5aba502..a9d7c00ab1 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LogisticRegression.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LogisticRegression.cs @@ -4,10 +4,10 @@ using System; using System.Collections.Generic; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Internallearn; diff --git a/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/MulticlassLogisticRegression.cs b/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/MulticlassLogisticRegression.cs index f057c5b9ce..5d524f5393 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/MulticlassLogisticRegression.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/MulticlassLogisticRegression.cs @@ -2,10 +2,14 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; @@ -14,13 +18,9 @@ using Microsoft.ML.Model.Onnx; using Microsoft.ML.Model.Pfa; using Microsoft.ML.Numeric; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; +using Microsoft.ML.Training; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; [assembly: LoadableClass(typeof(MulticlassLogisticRegression), typeof(MulticlassLogisticRegression.Arguments), new[] { typeof(SignatureMultiClassClassifierTrainer), typeof(SignatureTrainer) }, diff --git a/src/Microsoft.ML.StandardLearners/Standard/ModelStatistics.cs b/src/Microsoft.ML.StandardLearners/Standard/ModelStatistics.cs index 8a781561ee..09b6974b01 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/ModelStatistics.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/ModelStatistics.cs @@ -2,17 +2,17 @@ // 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.Data; -using Microsoft.ML.Internal.Internallearn; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; using Microsoft.ML; +using Microsoft.ML.Data; using Microsoft.ML.Internal.CpuMath; +using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Learners; using Microsoft.ML.Model; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; // This is for deserialization from a model repository. [assembly: LoadableClass(typeof(LinearModelStatistics), null, typeof(SignatureLoadModel), diff --git a/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MetaMulticlassTrainer.cs b/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MetaMulticlassTrainer.cs index b02a33956b..e241f1b587 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MetaMulticlassTrainer.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MetaMulticlassTrainer.cs @@ -2,16 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; +using System.Linq; +using Microsoft.ML.CommandLine; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML.CommandLine; using Microsoft.ML.Data.Conversion; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Internallearn; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.Online; -using System.Collections.Generic; -using System.Linq; +using Microsoft.ML.Training; namespace Microsoft.ML.Learners { diff --git a/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MultiClassNaiveBayesStatic.cs b/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MultiClassNaiveBayesStatic.cs index b32a6cbe9d..172728c4c2 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MultiClassNaiveBayesStatic.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MultiClassNaiveBayesStatic.cs @@ -2,11 +2,9 @@ // 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; -using Microsoft.ML.Data; +using System; using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; -using System; namespace Microsoft.ML.Trainers { diff --git a/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MultiClassNaiveBayesTrainer.cs b/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MultiClassNaiveBayesTrainer.cs index 77b9d82c53..fbfacb4257 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MultiClassNaiveBayesTrainer.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/MultiClass/MultiClassNaiveBayesTrainer.cs @@ -2,18 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; -using System; -using System.Collections.Generic; -using System.Linq; +using Microsoft.ML.Training; [assembly: LoadableClass(MultiClassNaiveBayesTrainer.Summary, typeof(MultiClassNaiveBayesTrainer), typeof(MultiClassNaiveBayesTrainer.Arguments), new[] { typeof(SignatureMultiClassClassifierTrainer), typeof(SignatureTrainer) }, diff --git a/src/Microsoft.ML.StandardLearners/Standard/MultiClass/Ova.cs b/src/Microsoft.ML.StandardLearners/Standard/MultiClass/Ova.cs index 6fdf68d78d..b1426d5d2e 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/MultiClass/Ova.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/MultiClass/Ova.cs @@ -2,6 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.IO; +using System.Linq; +using System.Threading.Tasks; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; @@ -12,15 +18,9 @@ using Microsoft.ML.Learners; using Microsoft.ML.Model; using Microsoft.ML.Model.Pfa; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; +using Microsoft.ML.Training; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.IO; -using System.Linq; -using System.Threading.Tasks; [assembly: LoadableClass(Ova.Summary, typeof(Ova), typeof(Ova.Arguments), new[] { typeof(SignatureMultiClassClassifierTrainer), typeof(SignatureTrainer) }, diff --git a/src/Microsoft.ML.StandardLearners/Standard/MultiClass/Pkpd.cs b/src/Microsoft.ML.StandardLearners/Standard/MultiClass/Pkpd.cs index 2ba6863aef..7d3045714b 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/MultiClass/Pkpd.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/MultiClass/Pkpd.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Threading.Tasks; using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Internal.Calibration; @@ -9,11 +12,8 @@ using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Learners; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; +using Microsoft.ML.Training; [assembly: LoadableClass(Pkpd.Summary, typeof(Pkpd), typeof(Pkpd.Arguments), new[] { typeof(SignatureMultiClassClassifierTrainer), typeof(SignatureTrainer) }, diff --git a/src/Microsoft.ML.StandardLearners/Standard/Online/AveragedLinear.cs b/src/Microsoft.ML.StandardLearners/Standard/Online/AveragedLinear.cs index 78cb423301..ebcc3742e5 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/Online/AveragedLinear.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/Online/AveragedLinear.cs @@ -2,18 +2,16 @@ // 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 Microsoft.ML.Core.Data; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Numeric; using Microsoft.ML.Internal.Internallearn; +using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Learners; -using Microsoft.ML; +using Microsoft.ML.Numeric; +using Float = System.Single; // TODO: Check if it works properly if Averaged is set to false diff --git a/src/Microsoft.ML.StandardLearners/Standard/Online/AveragedPerceptron.cs b/src/Microsoft.ML.StandardLearners/Standard/Online/AveragedPerceptron.cs index e77f1fa970..6df0bde35d 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/Online/AveragedPerceptron.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/Online/AveragedPerceptron.cs @@ -2,18 +2,18 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Learners; using Microsoft.ML.Numeric; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.Online; -using System; +using Microsoft.ML.Training; [assembly: LoadableClass(AveragedPerceptronTrainer.Summary, typeof(AveragedPerceptronTrainer), typeof(AveragedPerceptronTrainer.Arguments), new[] { typeof(SignatureBinaryClassifierTrainer), typeof(SignatureTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.StandardLearners/Standard/Online/LinearSvm.cs b/src/Microsoft.ML.StandardLearners/Standard/Online/LinearSvm.cs index 6beeeccb6d..d1c192821e 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/Online/LinearSvm.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/Online/LinearSvm.cs @@ -2,19 +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 Microsoft.ML.Core.Data; -using Microsoft.ML.Data; +using System; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +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.Learners; using Microsoft.ML.Numeric; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.Online; -using System; +using Microsoft.ML.Training; using Float = System.Single; [assembly: LoadableClass(LinearSvm.Summary, typeof(LinearSvm), typeof(LinearSvm.Arguments), diff --git a/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineGradientDescent.cs b/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineGradientDescent.cs index eb599cc6d7..dd3395f3ee 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineGradientDescent.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineGradientDescent.cs @@ -2,17 +2,17 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Learners; using Microsoft.ML.Numeric; -using Microsoft.ML.Training; using Microsoft.ML.Trainers.Online; -using System; +using Microsoft.ML.Training; [assembly: LoadableClass(OnlineGradientDescentTrainer.Summary, typeof(OnlineGradientDescentTrainer), typeof(OnlineGradientDescentTrainer.Arguments), new[] { typeof(SignatureRegressorTrainer), typeof(SignatureTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineLearnerStatic.cs b/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineLearnerStatic.cs index 8e4884eda3..bdfd2c88db 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineLearnerStatic.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineLearnerStatic.cs @@ -2,12 +2,10 @@ // 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; -using Microsoft.ML.Data; +using System; using Microsoft.ML.Learners; -using Microsoft.ML.Trainers.Online; using Microsoft.ML.StaticPipe.Runtime; -using System; +using Microsoft.ML.Trainers.Online; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineLinear.cs b/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineLinear.cs index 97047913fe..89de8a964f 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineLinear.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/Online/OnlineLinear.cs @@ -2,9 +2,10 @@ // 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.Core.Data; -using Microsoft.ML; +using System; +using System.Globalization; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; @@ -13,8 +14,6 @@ using Microsoft.ML.Learners; using Microsoft.ML.Numeric; using Microsoft.ML.Training; -using System; -using System.Globalization; namespace Microsoft.ML.Trainers.Online { diff --git a/src/Microsoft.ML.StandardLearners/Standard/PoissonRegression/PoissonRegression.cs b/src/Microsoft.ML.StandardLearners/Standard/PoissonRegression/PoissonRegression.cs index e310d13336..402bf135d8 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/PoissonRegression/PoissonRegression.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/PoissonRegression/PoissonRegression.cs @@ -2,17 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Learners; using Microsoft.ML.Numeric; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; -using System; +using Microsoft.ML.Training; [assembly: LoadableClass(PoissonRegression.Summary, typeof(PoissonRegression), typeof(PoissonRegression.Arguments), new[] { typeof(SignatureRegressorTrainer), typeof(SignatureTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.StandardLearners/Standard/SdcaBinary.cs b/src/Microsoft.ML.StandardLearners/Standard/SdcaBinary.cs index f86ec5d200..24feb7fb40 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/SdcaBinary.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/SdcaBinary.cs @@ -2,10 +2,15 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Data.Conversion; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Calibration; @@ -14,14 +19,9 @@ using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Learners; using Microsoft.ML.Numeric; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; +using Microsoft.ML.Training; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; [assembly: LoadableClass(typeof(SdcaBinaryTrainer), typeof(SdcaBinaryTrainer.Arguments), new[] { typeof(SignatureBinaryClassifierTrainer), typeof(SignatureTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.StandardLearners/Standard/SdcaMultiClass.cs b/src/Microsoft.ML.StandardLearners/Standard/SdcaMultiClass.cs index 5bf8bfd715..0a069f5d8c 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/SdcaMultiClass.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/SdcaMultiClass.cs @@ -2,21 +2,21 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Linq; +using System.Threading; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Learners; using Microsoft.ML.Numeric; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; -using System; -using System.Linq; -using System.Threading; +using Microsoft.ML.Training; using Float = System.Single; [assembly: LoadableClass(SdcaMultiClassTrainer.Summary, typeof(SdcaMultiClassTrainer), typeof(SdcaMultiClassTrainer.Arguments), diff --git a/src/Microsoft.ML.StandardLearners/Standard/SdcaRegression.cs b/src/Microsoft.ML.StandardLearners/Standard/SdcaRegression.cs index cea366dbc6..8700f69605 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/SdcaRegression.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/SdcaRegression.cs @@ -2,18 +2,18 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Data.Conversion; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Learners; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; -using System; +using Microsoft.ML.Training; [assembly: LoadableClass(SdcaRegressionTrainer.Summary, typeof(SdcaRegressionTrainer), typeof(SdcaRegressionTrainer.Arguments), new[] { typeof(SignatureRegressorTrainer), typeof(SignatureTrainer), typeof(SignatureFeatureScorerTrainer) }, diff --git a/src/Microsoft.ML.StandardLearners/Standard/SgdStatic.cs b/src/Microsoft.ML.StandardLearners/Standard/SgdStatic.cs index c66138a596..a49ab88106 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/SgdStatic.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/SgdStatic.cs @@ -2,12 +2,10 @@ // 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; -using Microsoft.ML.Data; +using System; using Microsoft.ML.Internal.Internallearn; -using Microsoft.ML.Trainers; using Microsoft.ML.StaticPipe.Runtime; -using System; +using Microsoft.ML.Trainers; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StandardLearners/Standard/Simple/SimpleTrainers.cs b/src/Microsoft.ML.StandardLearners/Standard/Simple/SimpleTrainers.cs index 796a82514a..83351d5d66 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/Simple/SimpleTrainers.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/Simple/SimpleTrainers.cs @@ -2,16 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; -using System; -using System.Linq; +using Microsoft.ML.Training; [assembly: LoadableClass(RandomTrainer.Summary, typeof(RandomTrainer), typeof(RandomTrainer.Arguments), new[] { typeof(SignatureBinaryClassifierTrainer), typeof(SignatureTrainer) }, diff --git a/src/Microsoft.ML.StandardLearners/Standard/StochasticTrainerBase.cs b/src/Microsoft.ML.StandardLearners/Standard/StochasticTrainerBase.cs index be9c00dbcb..2376145f50 100644 --- a/src/Microsoft.ML.StandardLearners/Standard/StochasticTrainerBase.cs +++ b/src/Microsoft.ML.StandardLearners/Standard/StochasticTrainerBase.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Training; using Microsoft.ML.Transforms; -using System; namespace Microsoft.ML.Learners { diff --git a/src/Microsoft.ML.StandardLearners/StandardLearnersCatalog.cs b/src/Microsoft.ML.StandardLearners/StandardLearnersCatalog.cs index 3337eaf7c7..726c606eeb 100644 --- a/src/Microsoft.ML.StandardLearners/StandardLearnersCatalog.cs +++ b/src/Microsoft.ML.StandardLearners/StandardLearnersCatalog.cs @@ -2,19 +2,18 @@ // 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; +using System; using Microsoft.ML.Data; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Learners; -using Microsoft.ML.Training; using Microsoft.ML.Trainers; using Microsoft.ML.Trainers.Online; -using System; +using Microsoft.ML.Training; namespace Microsoft.ML { - using SgdArguments = StochasticGradientDescentClassificationTrainer.Arguments; using LRArguments = LogisticRegression.Arguments; + using SgdArguments = StochasticGradientDescentClassificationTrainer.Arguments; /// /// TrainerEstimator extension methods. diff --git a/src/Microsoft.ML.StaticPipe/CategoricalHashStaticExtensions.cs b/src/Microsoft.ML.StaticPipe/CategoricalHashStaticExtensions.cs index a5da9fff76..4b46d32739 100644 --- a/src/Microsoft.ML.StaticPipe/CategoricalHashStaticExtensions.cs +++ b/src/Microsoft.ML.StaticPipe/CategoricalHashStaticExtensions.cs @@ -2,10 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; using Microsoft.ML.Core.Data; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Categorical; -using System.Collections.Generic; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/CategoricalStaticExtensions.cs b/src/Microsoft.ML.StaticPipe/CategoricalStaticExtensions.cs index 17486a01a6..cb0688befc 100644 --- a/src/Microsoft.ML.StaticPipe/CategoricalStaticExtensions.cs +++ b/src/Microsoft.ML.StaticPipe/CategoricalStaticExtensions.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML.Core.Data; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Categorical; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Collections.Generic; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/ConvertStaticExtensions.cs b/src/Microsoft.ML.StaticPipe/ConvertStaticExtensions.cs index a160e5ea7d..464ee1a0b2 100644 --- a/src/Microsoft.ML.StaticPipe/ConvertStaticExtensions.cs +++ b/src/Microsoft.ML.StaticPipe/ConvertStaticExtensions.cs @@ -2,9 +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; using Microsoft.ML.Data; -using Microsoft.ML.StaticPipe; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/LdaStaticExtensions.cs b/src/Microsoft.ML.StaticPipe/LdaStaticExtensions.cs index aedceb009b..7a940e4b57 100644 --- a/src/Microsoft.ML.StaticPipe/LdaStaticExtensions.cs +++ b/src/Microsoft.ML.StaticPipe/LdaStaticExtensions.cs @@ -2,14 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML.Core.Data; - -using Microsoft.ML; -using Microsoft.ML.Data; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/LpNormalizerStaticExtensions.cs b/src/Microsoft.ML.StaticPipe/LpNormalizerStaticExtensions.cs index a9ab5f2e5f..a48d587e96 100644 --- a/src/Microsoft.ML.StaticPipe/LpNormalizerStaticExtensions.cs +++ b/src/Microsoft.ML.StaticPipe/LpNormalizerStaticExtensions.cs @@ -2,10 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; using Microsoft.ML.Core.Data; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Projections; -using System.Collections.Generic; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/NormalizerStaticExtensions.cs b/src/Microsoft.ML.StaticPipe/NormalizerStaticExtensions.cs index 2c81fa0304..65a6004d47 100644 --- a/src/Microsoft.ML.StaticPipe/NormalizerStaticExtensions.cs +++ b/src/Microsoft.ML.StaticPipe/NormalizerStaticExtensions.cs @@ -2,15 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Collections.Immutable; using Microsoft.ML.Core.Data; -using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Normalizers; -using System; -using System.Collections.Generic; -using System.Collections.Immutable; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/SdcaStaticExtensions.cs b/src/Microsoft.ML.StaticPipe/SdcaStaticExtensions.cs index 846d169b8f..8743d8e77c 100644 --- a/src/Microsoft.ML.StaticPipe/SdcaStaticExtensions.cs +++ b/src/Microsoft.ML.StaticPipe/SdcaStaticExtensions.cs @@ -2,13 +2,11 @@ // 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; -using Microsoft.ML.Data; +using System; using Microsoft.ML.Internal.Calibration; using Microsoft.ML.Learners; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Trainers; -using System; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/TermStaticExtensions.cs b/src/Microsoft.ML.StaticPipe/TermStaticExtensions.cs index 11a8568898..a879757239 100644 --- a/src/Microsoft.ML.StaticPipe/TermStaticExtensions.cs +++ b/src/Microsoft.ML.StaticPipe/TermStaticExtensions.cs @@ -3,9 +3,9 @@ // See the LICENSE file in the project root for more information. using System; +using Microsoft.ML; using Microsoft.ML.StaticPipe; using Microsoft.ML.Transforms.Conversions; -using Microsoft.ML; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/TermStaticExtensions.tt b/src/Microsoft.ML.StaticPipe/TermStaticExtensions.tt index a38b6087c4..fef9abf45a 100644 --- a/src/Microsoft.ML.StaticPipe/TermStaticExtensions.tt +++ b/src/Microsoft.ML.StaticPipe/TermStaticExtensions.tt @@ -9,9 +9,9 @@ // See the LICENSE file in the project root for more information. using System; +using Microsoft.ML; using Microsoft.ML.StaticPipe; using Microsoft.ML.Transforms.Conversions; -using Microsoft.ML; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/TextStaticExtensions.cs b/src/Microsoft.ML.StaticPipe/TextStaticExtensions.cs index 039fee4c00..7aac7bb6e8 100644 --- a/src/Microsoft.ML.StaticPipe/TextStaticExtensions.cs +++ b/src/Microsoft.ML.StaticPipe/TextStaticExtensions.cs @@ -2,12 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML.Core.Data; -using Microsoft.ML; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/TransformsStatic.cs b/src/Microsoft.ML.StaticPipe/TransformsStatic.cs index 5ae35d788f..6a219a4362 100644 --- a/src/Microsoft.ML.StaticPipe/TransformsStatic.cs +++ b/src/Microsoft.ML.StaticPipe/TransformsStatic.cs @@ -2,19 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; -using Microsoft.ML; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; using Microsoft.ML.Transforms.FeatureSelection; using Microsoft.ML.Transforms.Projections; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; -using System.Linq; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.StaticPipe/WordEmbeddingsStaticExtensions.cs b/src/Microsoft.ML.StaticPipe/WordEmbeddingsStaticExtensions.cs index 74ff183bce..f928045c4e 100644 --- a/src/Microsoft.ML.StaticPipe/WordEmbeddingsStaticExtensions.cs +++ b/src/Microsoft.ML.StaticPipe/WordEmbeddingsStaticExtensions.cs @@ -2,10 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; using Microsoft.ML.Core.Data; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Text; -using System.Collections.Generic; namespace Microsoft.ML.StaticPipe { diff --git a/src/Microsoft.ML.Sweeper/Algorithms/Grid.cs b/src/Microsoft.ML.Sweeper/Algorithms/Grid.cs index a067db7cd7..1466b78ae4 100644 --- a/src/Microsoft.ML.Sweeper/Algorithms/Grid.cs +++ b/src/Microsoft.ML.Sweeper/Algorithms/Grid.cs @@ -6,7 +6,6 @@ using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; -using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Sweeper; diff --git a/src/Microsoft.ML.Sweeper/Algorithms/KdoSweeper.cs b/src/Microsoft.ML.Sweeper/Algorithms/KdoSweeper.cs index dffca8ca3b..7e0ca2c035 100644 --- a/src/Microsoft.ML.Sweeper/Algorithms/KdoSweeper.cs +++ b/src/Microsoft.ML.Sweeper/Algorithms/KdoSweeper.cs @@ -2,17 +2,15 @@ // 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.CommandLine; -using Microsoft.ML.EntryPoints; -using Microsoft.ML.Trainers.FastTree.Internal; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Sweeper.Algorithms; +using Microsoft.ML.Trainers.FastTree.Internal; +using Float = System.Single; [assembly: LoadableClass(typeof(KdoSweeper), typeof(KdoSweeper.Arguments), typeof(SignatureSweeper), "KDO Sweeper", "KDOSweeper", "KDO")] diff --git a/src/Microsoft.ML.Sweeper/Algorithms/NelderMead.cs b/src/Microsoft.ML.Sweeper/Algorithms/NelderMead.cs index 8b82be28d0..51dd6c91f0 100644 --- a/src/Microsoft.ML.Sweeper/Algorithms/NelderMead.cs +++ b/src/Microsoft.ML.Sweeper/Algorithms/NelderMead.cs @@ -2,16 +2,14 @@ // 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.CommandLine; -using Microsoft.ML.EntryPoints; using Microsoft.ML.Numeric; using Microsoft.ML.Sweeper; +using Float = System.Single; [assembly: LoadableClass(typeof(NelderMeadSweeper), typeof(NelderMeadSweeper.Arguments), typeof(SignatureSweeper), "Nelder Mead Sweeper", "NelderMeadSweeper", "NelderMead", "NM")] diff --git a/src/Microsoft.ML.Sweeper/Algorithms/SmacSweeper.cs b/src/Microsoft.ML.Sweeper/Algorithms/SmacSweeper.cs index 07aac5d94f..730573b73b 100644 --- a/src/Microsoft.ML.Sweeper/Algorithms/SmacSweeper.cs +++ b/src/Microsoft.ML.Sweeper/Algorithms/SmacSweeper.cs @@ -2,20 +2,18 @@ // 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.CommandLine; -using Microsoft.ML.Sweeper; - using Microsoft.ML.Data; -using Microsoft.ML.Trainers.FastTree; -using Microsoft.ML.Trainers.FastTree.Internal; using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Sweeper; using Microsoft.ML.Sweeper.Algorithms; +using Microsoft.ML.Trainers.FastTree; +using Microsoft.ML.Trainers.FastTree.Internal; +using Float = System.Single; [assembly: LoadableClass(typeof(SmacSweeper), typeof(SmacSweeper.Arguments), typeof(SignatureSweeper), "SMAC Sweeper", "SMACSweeper", "SMAC")] diff --git a/src/Microsoft.ML.Sweeper/ISweeper.cs b/src/Microsoft.ML.Sweeper/ISweeper.cs index ec51599ba6..f81318fd7f 100644 --- a/src/Microsoft.ML.Sweeper/ISweeper.cs +++ b/src/Microsoft.ML.Sweeper/ISweeper.cs @@ -2,13 +2,12 @@ // 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; using System.Collections.Generic; using System.Linq; using Microsoft.ML.Internal.Utilities; +using Float = System.Single; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Sweeper/Parameters.cs b/src/Microsoft.ML.Sweeper/Parameters.cs index 2a563858ac..c9de3d2914 100644 --- a/src/Microsoft.ML.Sweeper/Parameters.cs +++ b/src/Microsoft.ML.Sweeper/Parameters.cs @@ -2,8 +2,6 @@ // 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.Globalization; @@ -13,6 +11,7 @@ using Microsoft.ML.CommandLine; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Sweeper; +using Float = System.Single; [assembly: LoadableClass(typeof(LongValueGenerator), typeof(LongParamArguments), typeof(SignatureSweeperParameter), "Long parameter", "lp")] diff --git a/src/Microsoft.ML.Sweeper/SweepCommand.cs b/src/Microsoft.ML.Sweeper/SweepCommand.cs index eed99bdbbe..c1959272fb 100644 --- a/src/Microsoft.ML.Sweeper/SweepCommand.cs +++ b/src/Microsoft.ML.Sweeper/SweepCommand.cs @@ -6,10 +6,10 @@ using System.Collections.Generic; using System.IO; using Microsoft.ML; +using Microsoft.ML.Command; using Microsoft.ML.CommandLine; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Sweeper; -using Microsoft.ML.Command; [assembly: LoadableClass(SweepCommand.Summary, typeof(SweepCommand), typeof(SweepCommand.Arguments), typeof(SignatureCommand), SweepCommand.LoadName, SweepCommand.LoadName, DocName = "command/Sweep.md")] diff --git a/src/Microsoft.ML.Sweeper/SweepResultEvaluator.cs b/src/Microsoft.ML.Sweeper/SweepResultEvaluator.cs index dae1214b11..8b03b89cb9 100644 --- a/src/Microsoft.ML.Sweeper/SweepResultEvaluator.cs +++ b/src/Microsoft.ML.Sweeper/SweepResultEvaluator.cs @@ -5,10 +5,9 @@ using System; using System.Text; using Microsoft.ML; -using Microsoft.ML.Data; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Sweeper; - using ResultProcessor = Microsoft.ML.Internal.Internallearn.ResultProcessor; [assembly: LoadableClass(typeof(InternalSweepResultEvaluator), typeof(InternalSweepResultEvaluator.Arguments), typeof(SignatureSweepResultEvaluator), diff --git a/src/Microsoft.ML.TensorFlow.StaticPipe/TensorFlowStaticExtensions.cs b/src/Microsoft.ML.TensorFlow.StaticPipe/TensorFlowStaticExtensions.cs index a7e88930fc..a80e7802ff 100644 --- a/src/Microsoft.ML.TensorFlow.StaticPipe/TensorFlowStaticExtensions.cs +++ b/src/Microsoft.ML.TensorFlow.StaticPipe/TensorFlowStaticExtensions.cs @@ -1,10 +1,8 @@ -using Microsoft.ML.Core.Data; +using System.Collections.Generic; +using Microsoft.ML.Core.Data; using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.Text; namespace Microsoft.ML.TensorFlow.StaticPipe { diff --git a/src/Microsoft.ML.TensorFlow/TensorFlow/Buffer.cs b/src/Microsoft.ML.TensorFlow/TensorFlow/Buffer.cs index 46665e0643..39f1b6e4dc 100644 --- a/src/Microsoft.ML.TensorFlow/TensorFlow/Buffer.cs +++ b/src/Microsoft.ML.TensorFlow/TensorFlow/Buffer.cs @@ -4,7 +4,6 @@ using System; using System.Runtime.InteropServices; -using System.Text; using size_t = System.UIntPtr; #pragma warning disable MSML_GeneralName diff --git a/src/Microsoft.ML.TensorFlow/TensorFlow/Tensor.cs b/src/Microsoft.ML.TensorFlow/TensorFlow/Tensor.cs index 30a8d7eeac..56bf8686eb 100644 --- a/src/Microsoft.ML.TensorFlow/TensorFlow/Tensor.cs +++ b/src/Microsoft.ML.TensorFlow/TensorFlow/Tensor.cs @@ -3,15 +3,12 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; using System.Numerics; using System.Runtime.InteropServices; using System.Text; using size_t = System.UIntPtr; -using TF_Tensor = System.IntPtr; using TF_Status = System.IntPtr; +using TF_Tensor = System.IntPtr; #pragma warning disable MSML_ParameterLocalVarName diff --git a/src/Microsoft.ML.TensorFlow/TensorFlow/Tensorflow.cs b/src/Microsoft.ML.TensorFlow/TensorFlow/Tensorflow.cs index 1320ab0992..b8eef46910 100644 --- a/src/Microsoft.ML.TensorFlow/TensorFlow/Tensorflow.cs +++ b/src/Microsoft.ML.TensorFlow/TensorFlow/Tensorflow.cs @@ -3,27 +3,21 @@ // See the LICENSE file in the project root for more information. using System; -using System.Runtime.InteropServices; +using System.Collections; +using System.Collections.Generic; using System.Linq; +using System.Runtime.InteropServices; +using size_t = System.UIntPtr; // We use this TF_Xxx as the native "TF_Xxx *" as those are opaque -using TF_Status = System.IntPtr; -using TF_SessionOptions = System.IntPtr; +using TF_DeviceList = System.IntPtr; using TF_Graph = System.IntPtr; -using TF_OperationDescription = System.IntPtr; +using TF_ImportGraphDefOptions = System.IntPtr; using TF_Operation = System.IntPtr; using TF_Session = System.IntPtr; -using TF_DeprecatedSession = System.IntPtr; +using TF_SessionOptions = System.IntPtr; +using TF_Status = System.IntPtr; using TF_Tensor = System.IntPtr; -using TF_ImportGraphDefOptions = System.IntPtr; -using TF_Library = System.IntPtr; -using TF_BufferPtr = System.IntPtr; -using TF_Function = System.IntPtr; -using TF_DeviceList = System.IntPtr; - -using size_t = System.UIntPtr; -using System.Collections.Generic; -using System.Collections; #pragma warning disable MSML_GeneralName #pragma warning disable MSML_PrivateFieldName diff --git a/src/Microsoft.ML.TensorFlow/TensorFlow/TensorflowUtils.cs b/src/Microsoft.ML.TensorFlow/TensorFlow/TensorflowUtils.cs index 72ef459492..341790d15b 100644 --- a/src/Microsoft.ML.TensorFlow/TensorFlow/TensorflowUtils.cs +++ b/src/Microsoft.ML.TensorFlow/TensorFlow/TensorflowUtils.cs @@ -2,14 +2,14 @@ // 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.Data; -using Microsoft.ML.Internal.Utilities; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.AccessControl; using System.Security.Principal; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Transforms.TensorFlow { diff --git a/src/Microsoft.ML.TensorFlow/TensorFlowModelInfo.cs b/src/Microsoft.ML.TensorFlow/TensorFlowModelInfo.cs index fd43ea8bac..ae450bd308 100644 --- a/src/Microsoft.ML.TensorFlow/TensorFlowModelInfo.cs +++ b/src/Microsoft.ML.TensorFlow/TensorFlowModelInfo.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms.TensorFlow; diff --git a/src/Microsoft.ML.TensorFlow/TensorflowCatalog.cs b/src/Microsoft.ML.TensorFlow/TensorflowCatalog.cs index 079458713d..f83a2b5bd2 100644 --- a/src/Microsoft.ML.TensorFlow/TensorflowCatalog.cs +++ b/src/Microsoft.ML.TensorFlow/TensorflowCatalog.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms; diff --git a/src/Microsoft.ML.TensorFlow/TensorflowTransform.cs b/src/Microsoft.ML.TensorFlow/TensorflowTransform.cs index efc4f4fcf7..dbbf46f126 100644 --- a/src/Microsoft.ML.TensorFlow/TensorflowTransform.cs +++ b/src/Microsoft.ML.TensorFlow/TensorflowTransform.cs @@ -5,18 +5,15 @@ using System; using System.Collections.Generic; using System.IO; -using System.IO.Compression; using System.Linq; using System.Text; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.TensorFlow; diff --git a/src/Microsoft.ML.TimeSeries/AdaptiveSingularSpectrumSequenceModeler.cs b/src/Microsoft.ML.TimeSeries/AdaptiveSingularSpectrumSequenceModeler.cs index 8cac3bdc5e..fff3edb9c9 100644 --- a/src/Microsoft.ML.TimeSeries/AdaptiveSingularSpectrumSequenceModeler.cs +++ b/src/Microsoft.ML.TimeSeries/AdaptiveSingularSpectrumSequenceModeler.cs @@ -10,8 +10,8 @@ using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.TimeSeriesProcessing; using Microsoft.ML.TimeSeries; +using Microsoft.ML.TimeSeriesProcessing; [assembly: LoadableClass(typeof(AdaptiveSingularSpectrumSequenceModeler), typeof(AdaptiveSingularSpectrumSequenceModeler), null, typeof(SignatureLoadModel), "SSA Sequence Modeler", diff --git a/src/Microsoft.ML.TimeSeries/ExponentialAverageTransform.cs b/src/Microsoft.ML.TimeSeries/ExponentialAverageTransform.cs index 6d6a9ffd2a..8260d37034 100644 --- a/src/Microsoft.ML.TimeSeries/ExponentialAverageTransform.cs +++ b/src/Microsoft.ML.TimeSeries/ExponentialAverageTransform.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; diff --git a/src/Microsoft.ML.TimeSeries/FftUtils.cs b/src/Microsoft.ML.TimeSeries/FftUtils.cs index 2d657e8457..a02575c031 100644 --- a/src/Microsoft.ML.TimeSeries/FftUtils.cs +++ b/src/Microsoft.ML.TimeSeries/FftUtils.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using System.Reflection; using System.Runtime.InteropServices; using System.Security; diff --git a/src/Microsoft.ML.TimeSeries/IidChangePointDetector.cs b/src/Microsoft.ML.TimeSeries/IidChangePointDetector.cs index 1fe419a5db..b2466f9acd 100644 --- a/src/Microsoft.ML.TimeSeries/IidChangePointDetector.cs +++ b/src/Microsoft.ML.TimeSeries/IidChangePointDetector.cs @@ -5,14 +5,14 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Model; -using Microsoft.ML.TimeSeriesProcessing; using Microsoft.ML.TimeSeries; +using Microsoft.ML.TimeSeriesProcessing; using static Microsoft.ML.TimeSeriesProcessing.SequentialAnomalyDetectionTransformBase; [assembly: LoadableClass(IidChangePointDetector.Summary, typeof(IDataTransform), typeof(IidChangePointDetector), typeof(IidChangePointDetector.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.TimeSeries/IidSpikeDetector.cs b/src/Microsoft.ML.TimeSeries/IidSpikeDetector.cs index 46db68c459..463b20d2ae 100644 --- a/src/Microsoft.ML.TimeSeries/IidSpikeDetector.cs +++ b/src/Microsoft.ML.TimeSeries/IidSpikeDetector.cs @@ -4,14 +4,14 @@ using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Model; -using Microsoft.ML.TimeSeriesProcessing; using Microsoft.ML.TimeSeries; +using Microsoft.ML.TimeSeriesProcessing; using static Microsoft.ML.TimeSeriesProcessing.SequentialAnomalyDetectionTransformBase; [assembly: LoadableClass(IidSpikeDetector.Summary, typeof(IDataTransform), typeof(IidSpikeDetector), typeof(IidSpikeDetector.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.TimeSeries/MovingAverageTransform.cs b/src/Microsoft.ML.TimeSeries/MovingAverageTransform.cs index 37df2a7421..83bd6ecea4 100644 --- a/src/Microsoft.ML.TimeSeries/MovingAverageTransform.cs +++ b/src/Microsoft.ML.TimeSeries/MovingAverageTransform.cs @@ -4,7 +4,6 @@ using System; using System.Linq; -using System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; diff --git a/src/Microsoft.ML.TimeSeries/PredictionFunction.cs b/src/Microsoft.ML.TimeSeries/PredictionFunction.cs index 717665cfea..4ddd94e8f5 100644 --- a/src/Microsoft.ML.TimeSeries/PredictionFunction.cs +++ b/src/Microsoft.ML.TimeSeries/PredictionFunction.cs @@ -2,12 +2,12 @@ // 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.Core.Data; -using Microsoft.ML.Data; using System; using System.Collections.Generic; using System.IO; using System.Linq; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; namespace Microsoft.ML.TimeSeries { diff --git a/src/Microsoft.ML.TimeSeries/SequentialAnomalyDetectionTransformBase.cs b/src/Microsoft.ML.TimeSeries/SequentialAnomalyDetectionTransformBase.cs index 25d2e66778..103c292bdd 100644 --- a/src/Microsoft.ML.TimeSeries/SequentialAnomalyDetectionTransformBase.cs +++ b/src/Microsoft.ML.TimeSeries/SequentialAnomalyDetectionTransformBase.cs @@ -5,8 +5,8 @@ using System; using System.IO; using System.Threading; -using Microsoft.ML.Data; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.TimeSeries/SequentialTransformBase.cs b/src/Microsoft.ML.TimeSeries/SequentialTransformBase.cs index aab02b09fe..205935bdf0 100644 --- a/src/Microsoft.ML.TimeSeries/SequentialTransformBase.cs +++ b/src/Microsoft.ML.TimeSeries/SequentialTransformBase.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; namespace Microsoft.ML.TimeSeriesProcessing { diff --git a/src/Microsoft.ML.TimeSeries/SequentialTransformerBase.cs b/src/Microsoft.ML.TimeSeries/SequentialTransformerBase.cs index 494714da56..a56edb6ff7 100644 --- a/src/Microsoft.ML.TimeSeries/SequentialTransformerBase.cs +++ b/src/Microsoft.ML.TimeSeries/SequentialTransformerBase.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; @@ -10,9 +13,6 @@ using Microsoft.ML.Model.Pfa; using Microsoft.ML.TimeSeries; using Microsoft.ML.Transforms; -using System; -using System.IO; -using System.Linq; namespace Microsoft.ML.TimeSeriesProcessing { diff --git a/src/Microsoft.ML.TimeSeries/SlidingWindowTransformBase.cs b/src/Microsoft.ML.TimeSeries/SlidingWindowTransformBase.cs index 92d0108e3d..89d83112a5 100644 --- a/src/Microsoft.ML.TimeSeries/SlidingWindowTransformBase.cs +++ b/src/Microsoft.ML.TimeSeries/SlidingWindowTransformBase.cs @@ -2,6 +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 System; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.Data.Conversion; @@ -9,7 +10,6 @@ using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; namespace Microsoft.ML.TimeSeriesProcessing { diff --git a/src/Microsoft.ML.TimeSeries/SsaAnomalyDetectionBase.cs b/src/Microsoft.ML.TimeSeries/SsaAnomalyDetectionBase.cs index 4596fc3994..527120e66a 100644 --- a/src/Microsoft.ML.TimeSeries/SsaAnomalyDetectionBase.cs +++ b/src/Microsoft.ML.TimeSeries/SsaAnomalyDetectionBase.cs @@ -4,8 +4,8 @@ using System; using System.IO; -using Microsoft.ML.Data; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.TimeSeries; diff --git a/src/Microsoft.ML.TimeSeries/SsaChangePointDetector.cs b/src/Microsoft.ML.TimeSeries/SsaChangePointDetector.cs index 440c8fbba4..40b4c7f675 100644 --- a/src/Microsoft.ML.TimeSeries/SsaChangePointDetector.cs +++ b/src/Microsoft.ML.TimeSeries/SsaChangePointDetector.cs @@ -5,14 +5,14 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Model; -using Microsoft.ML.TimeSeriesProcessing; using Microsoft.ML.TimeSeries; +using Microsoft.ML.TimeSeriesProcessing; using static Microsoft.ML.TimeSeriesProcessing.SequentialAnomalyDetectionTransformBase; [assembly: LoadableClass(SsaChangePointDetector.Summary, typeof(IDataTransform), typeof(SsaChangePointDetector), typeof(SsaChangePointDetector.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.TimeSeries/SsaSpikeDetector.cs b/src/Microsoft.ML.TimeSeries/SsaSpikeDetector.cs index d1176e85ac..cf8a609e66 100644 --- a/src/Microsoft.ML.TimeSeries/SsaSpikeDetector.cs +++ b/src/Microsoft.ML.TimeSeries/SsaSpikeDetector.cs @@ -4,14 +4,14 @@ using System.Collections.Generic; using System.Linq; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Model; -using Microsoft.ML.TimeSeriesProcessing; using Microsoft.ML.TimeSeries; +using Microsoft.ML.TimeSeriesProcessing; using static Microsoft.ML.TimeSeriesProcessing.SequentialAnomalyDetectionTransformBase; [assembly: LoadableClass(SsaSpikeDetector.Summary, typeof(IDataTransform), typeof(SsaSpikeDetector), typeof(SsaSpikeDetector.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.TimeSeries/TimeSeriesUtils.cs b/src/Microsoft.ML.TimeSeries/TimeSeriesUtils.cs index 81baa8b687..82334f7976 100644 --- a/src/Microsoft.ML.TimeSeries/TimeSeriesUtils.cs +++ b/src/Microsoft.ML.TimeSeries/TimeSeriesUtils.cs @@ -1,9 +1,6 @@ -using Microsoft.ML; -using Microsoft.ML.Internal.Utilities; -using System; -using System.Collections.Generic; +using System; using System.IO; -using System.Text; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.TimeSeries { diff --git a/src/Microsoft.ML.Transforms/BootstrapSamplingTransformer.cs b/src/Microsoft.ML.Transforms/BootstrapSamplingTransformer.cs index c3de29d2a6..01a2c0b7f2 100644 --- a/src/Microsoft.ML.Transforms/BootstrapSamplingTransformer.cs +++ b/src/Microsoft.ML.Transforms/BootstrapSamplingTransformer.cs @@ -2,14 +2,14 @@ // 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.Data; +using System; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; [assembly: LoadableClass(BootstrapSamplingTransformer.Summary, typeof(BootstrapSamplingTransformer), typeof(BootstrapSamplingTransformer.Arguments), typeof(SignatureDataTransform), BootstrapSamplingTransformer.UserName, "BootstrapSampleTransform", "BootstrapSample")] diff --git a/src/Microsoft.ML.Transforms/CategoricalCatalog.cs b/src/Microsoft.ML.Transforms/CategoricalCatalog.cs index 5d1cbfa9eb..1b29befae2 100644 --- a/src/Microsoft.ML.Transforms/CategoricalCatalog.cs +++ b/src/Microsoft.ML.Transforms/CategoricalCatalog.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms.Categorical; diff --git a/src/Microsoft.ML.Transforms/ConversionsCatalog.cs b/src/Microsoft.ML.Transforms/ConversionsCatalog.cs index 72fc05dadb..53c9e5aca5 100644 --- a/src/Microsoft.ML.Transforms/ConversionsCatalog.cs +++ b/src/Microsoft.ML.Transforms/ConversionsCatalog.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms.Conversions; diff --git a/src/Microsoft.ML.Transforms/CountFeatureSelection.cs b/src/Microsoft.ML.Transforms/CountFeatureSelection.cs index e3ab50f842..b56253ae53 100644 --- a/src/Microsoft.ML.Transforms/CountFeatureSelection.cs +++ b/src/Microsoft.ML.Transforms/CountFeatureSelection.cs @@ -2,17 +2,17 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms.FeatureSelection; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; [assembly: LoadableClass(CountFeatureSelectingEstimator.Summary, typeof(IDataTransform), typeof(CountFeatureSelectingEstimator), typeof(CountFeatureSelectingEstimator.Arguments), typeof(SignatureDataTransform), CountFeatureSelectingEstimator.UserName, "CountFeatureSelectionTransform", "CountFeatureSelection")] diff --git a/src/Microsoft.ML.Transforms/CustomMappingCatalog.cs b/src/Microsoft.ML.Transforms/CustomMappingCatalog.cs index 534558cf6f..5cb04bddf1 100644 --- a/src/Microsoft.ML.Transforms/CustomMappingCatalog.cs +++ b/src/Microsoft.ML.Transforms/CustomMappingCatalog.cs @@ -2,9 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML.Data; using Microsoft.ML.Transforms; -using System; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Transforms/CustomMappingTransformer.cs b/src/Microsoft.ML.Transforms/CustomMappingTransformer.cs index 655b53e9b7..b549f9359d 100644 --- a/src/Microsoft.ML.Transforms/CustomMappingTransformer.cs +++ b/src/Microsoft.ML.Transforms/CustomMappingTransformer.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using System; -using System.Linq; namespace Microsoft.ML.Transforms { diff --git a/src/Microsoft.ML.Transforms/EntryPoints/TextAnalytics.cs b/src/Microsoft.ML.Transforms/EntryPoints/TextAnalytics.cs index c6009feb2c..80070cd05d 100644 --- a/src/Microsoft.ML.Transforms/EntryPoints/TextAnalytics.cs +++ b/src/Microsoft.ML.Transforms/EntryPoints/TextAnalytics.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Linq; using Microsoft.ML; using Microsoft.ML.EntryPoints; using Microsoft.ML.Transforms.Conversions; using Microsoft.ML.Transforms.Text; -using System.Linq; [assembly: LoadableClass(typeof(void), typeof(TextAnalytics), null, typeof(SignatureEntryPointModule), "TextAnalytics")] diff --git a/src/Microsoft.ML.Transforms/ExtensionsCatalog.cs b/src/Microsoft.ML.Transforms/ExtensionsCatalog.cs index 91e794b8b4..11acd22eae 100644 --- a/src/Microsoft.ML.Transforms/ExtensionsCatalog.cs +++ b/src/Microsoft.ML.Transforms/ExtensionsCatalog.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms; diff --git a/src/Microsoft.ML.Transforms/FeatureSelectionCatalog.cs b/src/Microsoft.ML.Transforms/FeatureSelectionCatalog.cs index 0de5a41f5c..e6e5e524b5 100644 --- a/src/Microsoft.ML.Transforms/FeatureSelectionCatalog.cs +++ b/src/Microsoft.ML.Transforms/FeatureSelectionCatalog.cs @@ -2,14 +2,13 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms.FeatureSelection; namespace Microsoft.ML { - using MutualInfoSelectDefaults = MutualInformationFeatureSelectingEstimator.Defaults; using CountSelectDefaults = CountFeatureSelectingEstimator.Defaults; + using MutualInfoSelectDefaults = MutualInformationFeatureSelectingEstimator.Defaults; public static class FeatureSelectionCatalog { diff --git a/src/Microsoft.ML.Transforms/FourierDistributionSampler.cs b/src/Microsoft.ML.Transforms/FourierDistributionSampler.cs index 2d57aade4c..af04cd10d5 100644 --- a/src/Microsoft.ML.Transforms/FourierDistributionSampler.cs +++ b/src/Microsoft.ML.Transforms/FourierDistributionSampler.cs @@ -2,13 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; [assembly: LoadableClass(typeof(GaussianFourierSampler), typeof(GaussianFourierSampler.Arguments), typeof(SignatureFourierDistributionSampler), "Gaussian Kernel", GaussianFourierSampler.LoadName, "Gaussian")] diff --git a/src/Microsoft.ML.Transforms/GcnTransform.cs b/src/Microsoft.ML.Transforms/GcnTransform.cs index 32e90ebe90..7c2692e6ed 100644 --- a/src/Microsoft.ML.Transforms/GcnTransform.cs +++ b/src/Microsoft.ML.Transforms/GcnTransform.cs @@ -2,19 +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 Microsoft.ML.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms.Projections; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(LpNormalizingTransformer.GcnSummary, typeof(IDataTransform), typeof(LpNormalizingTransformer), typeof(LpNormalizingTransformer.GcnArguments), typeof(SignatureDataTransform), LpNormalizingTransformer.UserNameGn, "GcnTransform", LpNormalizingTransformer.ShortNameGn)] diff --git a/src/Microsoft.ML.Transforms/GroupTransform.cs b/src/Microsoft.ML.Transforms/GroupTransform.cs index 7a4f429e91..48c6529ea9 100644 --- a/src/Microsoft.ML.Transforms/GroupTransform.cs +++ b/src/Microsoft.ML.Transforms/GroupTransform.cs @@ -6,9 +6,9 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Microsoft.ML.Transforms/HashJoiningTransform.cs b/src/Microsoft.ML.Transforms/HashJoiningTransform.cs index 716cca24a7..121885a34e 100644 --- a/src/Microsoft.ML.Transforms/HashJoiningTransform.cs +++ b/src/Microsoft.ML.Transforms/HashJoiningTransform.cs @@ -2,18 +2,18 @@ // 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.Data; +using System; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading; [assembly: LoadableClass(HashJoiningTransform.Summary, typeof(HashJoiningTransform), typeof(HashJoiningTransform.Arguments), typeof(SignatureDataTransform), HashJoiningTransform.UserName, "HashJoinTransform", HashJoiningTransform.RegistrationName)] diff --git a/src/Microsoft.ML.Transforms/KeyToVectorMapping.cs b/src/Microsoft.ML.Transforms/KeyToVectorMapping.cs index c3a8f9db3b..62fa259d66 100644 --- a/src/Microsoft.ML.Transforms/KeyToVectorMapping.cs +++ b/src/Microsoft.ML.Transforms/KeyToVectorMapping.cs @@ -2,17 +2,17 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(KeyToBinaryVectorMappingTransformer.Summary, typeof(IDataTransform), typeof(KeyToBinaryVectorMappingTransformer), typeof(KeyToBinaryVectorMappingTransformer.Arguments), typeof(SignatureDataTransform), "Key To Binary Vector Transform", KeyToBinaryVectorMappingTransformer.UserName, "KeyToBinary", "ToBinaryVector", DocName = "transform/KeyToBinaryVectorTransform.md")] diff --git a/src/Microsoft.ML.Transforms/LambdaTransform.cs b/src/Microsoft.ML.Transforms/LambdaTransform.cs index 3f5c55a74f..5815e65953 100644 --- a/src/Microsoft.ML.Transforms/LambdaTransform.cs +++ b/src/Microsoft.ML.Transforms/LambdaTransform.cs @@ -5,12 +5,12 @@ using System; using System.IO; using System.Text; -using Microsoft.ML.Core.Data; using Microsoft.ML; -using Microsoft.ML.Transforms; +using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; +using Microsoft.ML.Transforms; [assembly: LoadableClass(typeof(ITransformer), typeof(LambdaTransform), null, typeof(SignatureLoadModel), "", LambdaTransform.LoaderSignature)] diff --git a/src/Microsoft.ML.Transforms/LearnerFeatureSelection.cs b/src/Microsoft.ML.Transforms/LearnerFeatureSelection.cs index b87b6a3b30..b76d105178 100644 --- a/src/Microsoft.ML.Transforms/LearnerFeatureSelection.cs +++ b/src/Microsoft.ML.Transforms/LearnerFeatureSelection.cs @@ -2,6 +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 System; +using System.Collections.Generic; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; @@ -9,8 +11,6 @@ using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.FeatureSelection; -using System; -using System.Collections.Generic; [assembly: LoadableClass(LearnerFeatureSelectionTransform.Summary, typeof(IDataTransform), typeof(LearnerFeatureSelectionTransform), typeof(LearnerFeatureSelectionTransform.Arguments), typeof(SignatureDataTransform), "Learner Feature Selection Transform", "LearnerFeatureSelectionTransform", "LearnerFeatureSelection")] diff --git a/src/Microsoft.ML.Transforms/LoadTransform.cs b/src/Microsoft.ML.Transforms/LoadTransform.cs index 023998f982..dbef1a43e0 100644 --- a/src/Microsoft.ML.Transforms/LoadTransform.cs +++ b/src/Microsoft.ML.Transforms/LoadTransform.cs @@ -2,15 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.IO; [assembly: LoadableClass(LoadTransform.Summary, typeof(IDataTransform), typeof(LoadTransform), typeof(LoadTransform.Arguments), typeof(SignatureDataTransform), "Load Transform", "LoadTransform", "Load")] diff --git a/src/Microsoft.ML.Transforms/MissingValueDroppingTransformer.cs b/src/Microsoft.ML.Transforms/MissingValueDroppingTransformer.cs index ddf89ca6fa..e01c58daba 100644 --- a/src/Microsoft.ML.Transforms/MissingValueDroppingTransformer.cs +++ b/src/Microsoft.ML.Transforms/MissingValueDroppingTransformer.cs @@ -2,19 +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 Microsoft.ML.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; -using System.Text; [assembly: LoadableClass(MissingValueDroppingTransformer.Summary, typeof(IDataTransform), typeof(MissingValueDroppingTransformer), typeof(MissingValueDroppingTransformer.Arguments), typeof(SignatureDataTransform), MissingValueDroppingTransformer.FriendlyName, MissingValueDroppingTransformer.ShortName, "NADropTransform")] diff --git a/src/Microsoft.ML.Transforms/MissingValueHandlingTransformer.cs b/src/Microsoft.ML.Transforms/MissingValueHandlingTransformer.cs index aaa7dfa284..b9f3a3b0b0 100644 --- a/src/Microsoft.ML.Transforms/MissingValueHandlingTransformer.cs +++ b/src/Microsoft.ML.Transforms/MissingValueHandlingTransformer.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; @@ -9,9 +12,6 @@ using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Collections.Generic; -using System.Text; [assembly: LoadableClass(MissingValueHandlingTransformer.Summary, typeof(IDataTransform), typeof(MissingValueHandlingTransformer), typeof(MissingValueHandlingTransformer.Arguments), typeof(SignatureDataTransform), MissingValueHandlingTransformer.FriendlyName, "NAHandleTransform", MissingValueHandlingTransformer.ShortName, "NA", DocName = "transform/NAHandle.md")] diff --git a/src/Microsoft.ML.Transforms/MissingValueIndicatorTransform.cs b/src/Microsoft.ML.Transforms/MissingValueIndicatorTransform.cs index d53014f13b..3d43776377 100644 --- a/src/Microsoft.ML.Transforms/MissingValueIndicatorTransform.cs +++ b/src/Microsoft.ML.Transforms/MissingValueIndicatorTransform.cs @@ -2,16 +2,15 @@ // 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.Text; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; +using Float = System.Single; [assembly: LoadableClass(typeof(MissingValueIndicatorTransform), typeof(MissingValueIndicatorTransform.Arguments), typeof(SignatureDataTransform), "", "MissingValueIndicatorTransform", "MissingValueTransform", "MissingTransform", "Missing")] diff --git a/src/Microsoft.ML.Transforms/MissingValueIndicatorTransformer.cs b/src/Microsoft.ML.Transforms/MissingValueIndicatorTransformer.cs index 2d70d92cb9..16009b0b38 100644 --- a/src/Microsoft.ML.Transforms/MissingValueIndicatorTransformer.cs +++ b/src/Microsoft.ML.Transforms/MissingValueIndicatorTransformer.cs @@ -6,15 +6,13 @@ using System.Collections.Generic; using System.Linq; using System.Text; -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms; [assembly: LoadableClass(MissingValueIndicatorTransformer.Summary, typeof(IDataTransform), typeof(MissingValueIndicatorTransformer), typeof(MissingValueIndicatorTransformer.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.Transforms/MissingValueReplacing.cs b/src/Microsoft.ML.Transforms/MissingValueReplacing.cs index 836085db91..43e18a9126 100644 --- a/src/Microsoft.ML.Transforms/MissingValueReplacing.cs +++ b/src/Microsoft.ML.Transforms/MissingValueReplacing.cs @@ -2,23 +2,23 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; using Microsoft.ML.Transforms; -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Reflection; -using System.Text; [assembly: LoadableClass(MissingValueReplacingTransformer.Summary, typeof(IDataTransform), typeof(MissingValueReplacingTransformer), typeof(MissingValueReplacingTransformer.Arguments), typeof(SignatureDataTransform), MissingValueReplacingTransformer.FriendlyName, MissingValueReplacingTransformer.LoadName, "NAReplace", MissingValueReplacingTransformer.ShortName, DocName = "transform/NAHandle.md")] diff --git a/src/Microsoft.ML.Transforms/MissingValueReplacingUtils.cs b/src/Microsoft.ML.Transforms/MissingValueReplacingUtils.cs index 9e13762ec6..fb5f6eaea4 100644 --- a/src/Microsoft.ML.Transforms/MissingValueReplacingUtils.cs +++ b/src/Microsoft.ML.Transforms/MissingValueReplacingUtils.cs @@ -2,11 +2,10 @@ // 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; +using System; using Microsoft.ML.Data; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Utilities; -using System; namespace Microsoft.ML.Transforms { diff --git a/src/Microsoft.ML.Transforms/MutualInformationFeatureSelection.cs b/src/Microsoft.ML.Transforms/MutualInformationFeatureSelection.cs index f1a7fd5795..ec8cdb1709 100644 --- a/src/Microsoft.ML.Transforms/MutualInformationFeatureSelection.cs +++ b/src/Microsoft.ML.Transforms/MutualInformationFeatureSelection.cs @@ -4,18 +4,18 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.EntryPoints; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Transforms.FeatureSelection; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; +using Microsoft.ML; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.EntryPoints; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Transforms.FeatureSelection; [assembly: LoadableClass(MutualInformationFeatureSelectingEstimator.Summary, typeof(IDataTransform), typeof(MutualInformationFeatureSelectingEstimator), typeof(MutualInformationFeatureSelectingEstimator.Arguments), typeof(SignatureDataTransform), MutualInformationFeatureSelectingEstimator.UserName, "MutualInformationFeatureSelection", "MutualInformationFeatureSelectionTransform", MutualInformationFeatureSelectingEstimator.ShortName)] diff --git a/src/Microsoft.ML.Transforms/NAHandling.cs b/src/Microsoft.ML.Transforms/NAHandling.cs index 3d78ce45fc..cc0c6e5758 100644 --- a/src/Microsoft.ML.Transforms/NAHandling.cs +++ b/src/Microsoft.ML.Transforms/NAHandling.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.EntryPoints; using Microsoft.ML.Transforms; diff --git a/src/Microsoft.ML.Transforms/OneHotEncoding.cs b/src/Microsoft.ML.Transforms/OneHotEncoding.cs index a22de5809d..8dfea35395 100644 --- a/src/Microsoft.ML.Transforms/OneHotEncoding.cs +++ b/src/Microsoft.ML.Transforms/OneHotEncoding.cs @@ -2,20 +2,20 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms.Categorical; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(OneHotEncodingTransformer.Summary, typeof(IDataTransform), typeof(OneHotEncodingTransformer), typeof(OneHotEncodingTransformer.Arguments), typeof(SignatureDataTransform), OneHotEncodingTransformer.UserName, "CategoricalTransform", "CatTransform", "Categorical", "Cat")] diff --git a/src/Microsoft.ML.Transforms/OneHotHashEncoding.cs b/src/Microsoft.ML.Transforms/OneHotHashEncoding.cs index 779bf955b0..07fdebc581 100644 --- a/src/Microsoft.ML.Transforms/OneHotHashEncoding.cs +++ b/src/Microsoft.ML.Transforms/OneHotHashEncoding.cs @@ -2,20 +2,18 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Categorical; using Microsoft.ML.Transforms.Conversions; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(OneHotHashEncoding.Summary, typeof(IDataTransform), typeof(OneHotHashEncoding), typeof(OneHotHashEncoding.Arguments), typeof(SignatureDataTransform), OneHotHashEncoding.UserName, "CategoricalHashTransform", "CatHashTransform", "CategoricalHash", "CatHash")] diff --git a/src/Microsoft.ML.Transforms/OptionalColumnTransform.cs b/src/Microsoft.ML.Transforms/OptionalColumnTransform.cs index 5c83f4ecd3..ae76e16122 100644 --- a/src/Microsoft.ML.Transforms/OptionalColumnTransform.cs +++ b/src/Microsoft.ML.Transforms/OptionalColumnTransform.cs @@ -10,10 +10,10 @@ using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; -using Microsoft.ML.Transforms; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; +using Microsoft.ML.Transforms; [assembly: LoadableClass(OptionalColumnTransform.Summary, typeof(OptionalColumnTransform), typeof(OptionalColumnTransform.Arguments), typeof(SignatureDataTransform), diff --git a/src/Microsoft.ML.Transforms/PermutationFeatureImportance.cs b/src/Microsoft.ML.Transforms/PermutationFeatureImportance.cs index 538511cb2e..e4600c4591 100644 --- a/src/Microsoft.ML.Transforms/PermutationFeatureImportance.cs +++ b/src/Microsoft.ML.Transforms/PermutationFeatureImportance.cs @@ -2,14 +2,14 @@ // 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.Data; -using Microsoft.ML.Internal.Internallearn; -using Microsoft.ML.Internal.Utilities; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Text; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Internallearn; +using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.Transforms { diff --git a/src/Microsoft.ML.Transforms/PermutationFeatureImportanceExtensions.cs b/src/Microsoft.ML.Transforms/PermutationFeatureImportanceExtensions.cs index 025cfecaad..c14fb83363 100644 --- a/src/Microsoft.ML.Transforms/PermutationFeatureImportanceExtensions.cs +++ b/src/Microsoft.ML.Transforms/PermutationFeatureImportanceExtensions.cs @@ -2,12 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Immutable; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms; -using System; -using System.Collections.Immutable; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Transforms/ProduceIdTransform.cs b/src/Microsoft.ML.Transforms/ProduceIdTransform.cs index 310c58a3ce..8a537c7aa5 100644 --- a/src/Microsoft.ML.Transforms/ProduceIdTransform.cs +++ b/src/Microsoft.ML.Transforms/ProduceIdTransform.cs @@ -3,9 +3,9 @@ // See the LICENSE file in the project root for more information. using System; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.Model; using Microsoft.ML.Transforms; diff --git a/src/Microsoft.ML.Transforms/ProjectionCatalog.cs b/src/Microsoft.ML.Transforms/ProjectionCatalog.cs index beefe3dede..50eff9b01c 100644 --- a/src/Microsoft.ML.Transforms/ProjectionCatalog.cs +++ b/src/Microsoft.ML.Transforms/ProjectionCatalog.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Transforms.Projections; diff --git a/src/Microsoft.ML.Transforms/Properties/Resources.Designer.cs b/src/Microsoft.ML.Transforms/Properties/Resources.Designer.cs index 772151fc4f..9ef619686e 100644 --- a/src/Microsoft.ML.Transforms/Properties/Resources.Designer.cs +++ b/src/Microsoft.ML.Transforms/Properties/Resources.Designer.cs @@ -8,10 +8,10 @@ // //------------------------------------------------------------------------------ -namespace Microsoft.ML.Transforms.Properties { - using System; - - +namespace Microsoft.ML.Transforms.Properties +{ + + /// /// A strongly-typed resource class, for looking up localized strings, etc. /// diff --git a/src/Microsoft.ML.Transforms/RandomFourierFeaturizing.cs b/src/Microsoft.ML.Transforms/RandomFourierFeaturizing.cs index e668c681f7..5b65dda65a 100644 --- a/src/Microsoft.ML.Transforms/RandomFourierFeaturizing.cs +++ b/src/Microsoft.ML.Transforms/RandomFourierFeaturizing.cs @@ -2,10 +2,14 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Internal.CpuMath; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; @@ -13,10 +17,6 @@ using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Projections; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(RandomFourierFeaturizingTransformer.Summary, typeof(IDataTransform), typeof(RandomFourierFeaturizingTransformer), typeof(RandomFourierFeaturizingTransformer.Arguments), typeof(SignatureDataTransform), "Random Fourier Features Transform", "RffTransform", "Rff")] diff --git a/src/Microsoft.ML.Transforms/SerializableLambdaTransform.cs b/src/Microsoft.ML.Transforms/SerializableLambdaTransform.cs index 4ec70efb27..fc38fa97e7 100644 --- a/src/Microsoft.ML.Transforms/SerializableLambdaTransform.cs +++ b/src/Microsoft.ML.Transforms/SerializableLambdaTransform.cs @@ -2,15 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; +using System.Reflection; +using System.Runtime.Serialization.Formatters.Binary; using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms; -using System; -using System.IO; -using System.Reflection; -using System.Runtime.Serialization.Formatters.Binary; [assembly: LoadableClass(SerializableLambdaTransform.Summary, typeof(ITransformTemplate), typeof(SerializableLambdaTransform), null, typeof(SignatureLoadDataTransform), "", SerializableLambdaTransform.LoaderSignature)] diff --git a/src/Microsoft.ML.Transforms/StatefulFilterTransform.cs b/src/Microsoft.ML.Transforms/StatefulFilterTransform.cs index 6b36bcf5e4..7fbce10c97 100644 --- a/src/Microsoft.ML.Transforms/StatefulFilterTransform.cs +++ b/src/Microsoft.ML.Transforms/StatefulFilterTransform.cs @@ -2,10 +2,9 @@ // 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.Data; -using Microsoft.ML; using System; using System.IO; +using Microsoft.ML.Data; namespace Microsoft.ML.Transforms { diff --git a/src/Microsoft.ML.Transforms/Text/LdaTransform.cs b/src/Microsoft.ML.Transforms/Text/LdaTransform.cs index 14a1f6e34a..9a2bc1adfa 100644 --- a/src/Microsoft.ML.Transforms/Text/LdaTransform.cs +++ b/src/Microsoft.ML.Transforms/Text/LdaTransform.cs @@ -2,21 +2,21 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.TextAnalytics; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.Linq; -using System.Text; [assembly: LoadableClass(LatentDirichletAllocationTransformer.Summary, typeof(IDataTransform), typeof(LatentDirichletAllocationTransformer), typeof(LatentDirichletAllocationTransformer.Arguments), typeof(SignatureDataTransform), "Latent Dirichlet Allocation Transform", LatentDirichletAllocationTransformer.LoaderSignature, "Lda")] diff --git a/src/Microsoft.ML.Transforms/Text/NgramHashingTransformer.cs b/src/Microsoft.ML.Transforms/Text/NgramHashingTransformer.cs index 06ad0604e5..047ebdcd05 100644 --- a/src/Microsoft.ML.Transforms/Text/NgramHashingTransformer.cs +++ b/src/Microsoft.ML.Transforms/Text/NgramHashingTransformer.cs @@ -2,19 +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 Microsoft.ML.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; -using Microsoft.ML.Transforms.Text; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Text; +using Microsoft.ML; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; +using Microsoft.ML.Transforms.Text; [assembly: LoadableClass(NgramHashingTransformer.Summary, typeof(IDataTransform), typeof(NgramHashingTransformer), typeof(NgramHashingTransformer.Arguments), typeof(SignatureDataTransform), "Ngram Hash Transform", "NgramHashTransform", "NgramHash")] diff --git a/src/Microsoft.ML.Transforms/Text/NgramTransform.cs b/src/Microsoft.ML.Transforms/Text/NgramTransform.cs index a9956e2c77..f7dafb0b80 100644 --- a/src/Microsoft.ML.Transforms/Text/NgramTransform.cs +++ b/src/Microsoft.ML.Transforms/Text/NgramTransform.cs @@ -2,20 +2,20 @@ // 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.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.EntryPoints; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; -using Microsoft.ML.Transforms.Text; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Text; +using Microsoft.ML; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.EntryPoints; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; +using Microsoft.ML.Transforms.Text; [assembly: LoadableClass(NgramExtractingTransformer.Summary, typeof(IDataTransform), typeof(NgramExtractingTransformer), typeof(NgramExtractingTransformer.Arguments), typeof(SignatureDataTransform), "Ngram Transform", "NgramTransform", "Ngram")] diff --git a/src/Microsoft.ML.Transforms/Text/NgramUtils.cs b/src/Microsoft.ML.Transforms/Text/NgramUtils.cs index b272b0e368..4443451323 100644 --- a/src/Microsoft.ML.Transforms/Text/NgramUtils.cs +++ b/src/Microsoft.ML.Transforms/Text/NgramUtils.cs @@ -2,10 +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 Microsoft.ML.Internal.Utilities; +using Float = System.Single; namespace Microsoft.ML.Data { diff --git a/src/Microsoft.ML.Transforms/Text/SentimentAnalyzingTransform.cs b/src/Microsoft.ML.Transforms/Text/SentimentAnalyzingTransform.cs index 8b25aff70d..41e7364859 100644 --- a/src/Microsoft.ML.Transforms/Text/SentimentAnalyzingTransform.cs +++ b/src/Microsoft.ML.Transforms/Text/SentimentAnalyzingTransform.cs @@ -2,6 +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 System.Collections.Generic; +using System.Linq; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; @@ -9,8 +11,6 @@ using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms.Text; -using System.Collections.Generic; -using System.Linq; [assembly: LoadableClass(TextFeaturizingEstimator.Summary, typeof(IDataTransform), typeof(SentimentAnalyzingTransformer), typeof(SentimentAnalyzingTransformer.Arguments), typeof(SignatureDataTransform), SentimentAnalyzingTransformer.UserName, "SentimentAnalyzingTransform", SentimentAnalyzingTransformer.LoaderSignature, SentimentAnalyzingTransformer.ShortName, DocName = "transform/SentimentAnalyzingTransform.md")] diff --git a/src/Microsoft.ML.Transforms/Text/StopWordsRemovingTransformer.cs b/src/Microsoft.ML.Transforms/Text/StopWordsRemovingTransformer.cs index 583447628a..adb667d0ae 100644 --- a/src/Microsoft.ML.Transforms/Text/StopWordsRemovingTransformer.cs +++ b/src/Microsoft.ML.Transforms/Text/StopWordsRemovingTransformer.cs @@ -4,15 +4,6 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Data.IO; -using Microsoft.ML.EntryPoints; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; -using Microsoft.ML.Transforms.Text; using System; using System.Collections.Generic; using System.IO; @@ -20,6 +11,15 @@ using System.Reflection; using System.Text; using System.Threading; +using Microsoft.ML; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.Data.IO; +using Microsoft.ML.EntryPoints; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; +using Microsoft.ML.Transforms.Text; [assembly: LoadableClass(StopWordsRemovingTransformer.Summary, typeof(IDataTransform), typeof(StopWordsRemovingTransformer), typeof(StopWordsRemovingTransformer.Arguments), typeof(SignatureDataTransform), "Stopwords Remover Transform", "StopWordsRemoverTransform", "StopWordsRemover", "StopWords")] diff --git a/src/Microsoft.ML.Transforms/Text/TextCatalog.cs b/src/Microsoft.ML.Transforms/Text/TextCatalog.cs index e2273a9767..2499b27e4e 100644 --- a/src/Microsoft.ML.Transforms/Text/TextCatalog.cs +++ b/src/Microsoft.ML.Transforms/Text/TextCatalog.cs @@ -2,11 +2,10 @@ // 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; -using Microsoft.ML.Data; -using Microsoft.ML.Transforms.Text; using System; using System.Collections.Generic; +using Microsoft.ML.Data; +using Microsoft.ML.Transforms.Text; namespace Microsoft.ML { diff --git a/src/Microsoft.ML.Transforms/Text/TextFeaturizingEstimator.cs b/src/Microsoft.ML.Transforms/Text/TextFeaturizingEstimator.cs index 53bb1d67af..7a3d9cc97d 100644 --- a/src/Microsoft.ML.Transforms/Text/TextFeaturizingEstimator.cs +++ b/src/Microsoft.ML.Transforms/Text/TextFeaturizingEstimator.cs @@ -2,10 +2,14 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; @@ -15,10 +19,6 @@ using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Projections; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(TextFeaturizingEstimator.Summary, typeof(IDataTransform), typeof(TextFeaturizingEstimator), typeof(TextFeaturizingEstimator.Arguments), typeof(SignatureDataTransform), TextFeaturizingEstimator.UserName, "TextTransform", TextFeaturizingEstimator.LoaderSignature)] diff --git a/src/Microsoft.ML.Transforms/Text/TextNormalizing.cs b/src/Microsoft.ML.Transforms/Text/TextNormalizing.cs index 198cf76099..ec7b809af8 100644 --- a/src/Microsoft.ML.Transforms/Text/TextNormalizing.cs +++ b/src/Microsoft.ML.Transforms/Text/TextNormalizing.cs @@ -4,18 +4,18 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Model; -using Microsoft.ML.Transforms.Text; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; +using Microsoft.ML; +using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.Model; +using Microsoft.ML.Transforms.Text; [assembly: LoadableClass(TextNormalizingTransformer.Summary, typeof(IDataTransform), typeof(TextNormalizingTransformer), typeof(TextNormalizingTransformer.Arguments), typeof(SignatureDataTransform), "Text Normalizer Transform", "TextNormalizerTransform", "TextNormalizer", "TextNorm")] diff --git a/src/Microsoft.ML.Transforms/Text/TokenizingByCharacters.cs b/src/Microsoft.ML.Transforms/Text/TokenizingByCharacters.cs index 486bd09f7e..44474cd83c 100644 --- a/src/Microsoft.ML.Transforms/Text/TokenizingByCharacters.cs +++ b/src/Microsoft.ML.Transforms/Text/TokenizingByCharacters.cs @@ -4,19 +4,19 @@ #pragma warning disable 420 // volatile with Interlocked.CompareExchange -using Microsoft.ML.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading; [assembly: LoadableClass(TokenizingByCharactersTransformer.Summary, typeof(IDataTransform), typeof(TokenizingByCharactersTransformer), typeof(TokenizingByCharactersTransformer.Arguments), typeof(SignatureDataTransform), TokenizingByCharactersTransformer.UserName, "CharTokenize", TokenizingByCharactersTransformer.LoaderSignature)] diff --git a/src/Microsoft.ML.Transforms/Text/WordBagTransform.cs b/src/Microsoft.ML.Transforms/Text/WordBagTransform.cs index ec36d67aef..5ed2440b3c 100644 --- a/src/Microsoft.ML.Transforms/Text/WordBagTransform.cs +++ b/src/Microsoft.ML.Transforms/Text/WordBagTransform.cs @@ -2,16 +2,16 @@ // 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.Data; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms.Conversions; using Microsoft.ML.Transforms.Text; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(WordBagBuildingTransformer.Summary, typeof(IDataTransform), typeof(WordBagBuildingTransformer), typeof(WordBagBuildingTransformer.Arguments), typeof(SignatureDataTransform), "Word Bag Transform", "WordBagTransform", "WordBag")] diff --git a/src/Microsoft.ML.Transforms/Text/WordEmbeddingsExtractor.cs b/src/Microsoft.ML.Transforms/Text/WordEmbeddingsExtractor.cs index 5e4b20a07e..13ec4b694d 100644 --- a/src/Microsoft.ML.Transforms/Text/WordEmbeddingsExtractor.cs +++ b/src/Microsoft.ML.Transforms/Text/WordEmbeddingsExtractor.cs @@ -2,25 +2,23 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.Model.Onnx; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.StaticPipe.Runtime; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; [assembly: LoadableClass(WordEmbeddingsExtractingTransformer.Summary, typeof(IDataTransform), typeof(WordEmbeddingsExtractingTransformer), typeof(WordEmbeddingsExtractingTransformer.Arguments), typeof(SignatureDataTransform), WordEmbeddingsExtractingTransformer.UserName, "WordEmbeddingsTransform", WordEmbeddingsExtractingTransformer.ShortName, DocName = "transform/WordEmbeddingsTransform.md")] diff --git a/src/Microsoft.ML.Transforms/Text/WordHashBagProducingTransform.cs b/src/Microsoft.ML.Transforms/Text/WordHashBagProducingTransform.cs index 11daf83b9a..08b9f2b1e7 100644 --- a/src/Microsoft.ML.Transforms/Text/WordHashBagProducingTransform.cs +++ b/src/Microsoft.ML.Transforms/Text/WordHashBagProducingTransform.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; @@ -9,9 +12,6 @@ using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms.Conversions; using Microsoft.ML.Transforms.Text; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(WordHashBagProducingTransformer.Summary, typeof(IDataTransform), typeof(WordHashBagProducingTransformer), typeof(WordHashBagProducingTransformer.Arguments), typeof(SignatureDataTransform), "Word Hash Bag Transform", "WordHashBagTransform", "WordHashBag")] diff --git a/src/Microsoft.ML.Transforms/Text/WordTokenizing.cs b/src/Microsoft.ML.Transforms/Text/WordTokenizing.cs index 6237a7fc49..a14fd70eba 100644 --- a/src/Microsoft.ML.Transforms/Text/WordTokenizing.cs +++ b/src/Microsoft.ML.Transforms/Text/WordTokenizing.cs @@ -2,10 +2,14 @@ // 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.Core.Data; -using Microsoft.ML.Data; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; @@ -13,10 +17,6 @@ using Microsoft.ML.Model.Pfa; using Microsoft.ML.Transforms.Text; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; [assembly: LoadableClass(WordTokenizingTransformer.Summary, typeof(IDataTransform), typeof(WordTokenizingTransformer), typeof(WordTokenizingTransformer.Arguments), typeof(SignatureDataTransform), "Word Tokenizer Transform", "WordTokenizeTransform", "DelimitedTokenizeTransform", "WordToken", "DelimitedTokenize", "Token")] diff --git a/src/Microsoft.ML.Transforms/Text/WrappedTextTransformers.cs b/src/Microsoft.ML.Transforms/Text/WrappedTextTransformers.cs index 1e997294ed..2924651115 100644 --- a/src/Microsoft.ML.Transforms/Text/WrappedTextTransformers.cs +++ b/src/Microsoft.ML.Transforms/Text/WrappedTextTransformers.cs @@ -2,10 +2,9 @@ // 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; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; -using System.Linq; namespace Microsoft.ML.Transforms.Text { diff --git a/src/Microsoft.ML.Transforms/UngroupTransform.cs b/src/Microsoft.ML.Transforms/UngroupTransform.cs index d912087bce..51d1c4a569 100644 --- a/src/Microsoft.ML.Transforms/UngroupTransform.cs +++ b/src/Microsoft.ML.Transforms/UngroupTransform.cs @@ -6,9 +6,9 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -using Microsoft.ML.Data; using Microsoft.ML; using Microsoft.ML.CommandLine; +using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; diff --git a/src/Source.ruleset b/src/Source.ruleset index 0668aec49c..379dc7a8be 100644 --- a/src/Source.ruleset +++ b/src/Source.ruleset @@ -145,15 +145,9 @@ - - - - - - diff --git a/src/stylecop.json b/src/stylecop.json new file mode 100644 index 0000000000..7a611b8230 --- /dev/null +++ b/src/stylecop.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": { + "orderingRules": { + "usingDirectivesPlacement": "outsideNamespace" + } + } +} \ No newline at end of file diff --git a/test/Microsoft.ML.Benchmarks.Tests/BenchmarksTest.cs b/test/Microsoft.ML.Benchmarks.Tests/BenchmarksTest.cs index 2003969d76..9f2a1b36e2 100644 --- a/test/Microsoft.ML.Benchmarks.Tests/BenchmarksTest.cs +++ b/test/Microsoft.ML.Benchmarks.Tests/BenchmarksTest.cs @@ -2,14 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Jobs; using BenchmarkDotNet.Loggers; using BenchmarkDotNet.Running; using Microsoft.ML.Internal.CpuMath; -using System; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Benchmarks/CacheDataViewBench.cs b/test/Microsoft.ML.Benchmarks/CacheDataViewBench.cs index 1fbb452f10..c2b1de8959 100644 --- a/test/Microsoft.ML.Benchmarks/CacheDataViewBench.cs +++ b/test/Microsoft.ML.Benchmarks/CacheDataViewBench.cs @@ -2,9 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using BenchmarkDotNet.Attributes; using Microsoft.ML.Data; -using System; namespace Microsoft.ML.Benchmarks { diff --git a/test/Microsoft.ML.Benchmarks/Harness/Metrics.cs b/test/Microsoft.ML.Benchmarks/Harness/Metrics.cs index 11b670cdcd..72f0f0468b 100644 --- a/test/Microsoft.ML.Benchmarks/Harness/Metrics.cs +++ b/test/Microsoft.ML.Benchmarks/Harness/Metrics.cs @@ -2,14 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using BenchmarkDotNet.Attributes; -using BenchmarkDotNet.Columns; -using BenchmarkDotNet.Reports; -using BenchmarkDotNet.Running; using System; using System.Collections.Generic; using System.Linq; using System.Text; +using BenchmarkDotNet.Attributes; +using BenchmarkDotNet.Columns; +using BenchmarkDotNet.Reports; +using BenchmarkDotNet.Running; namespace Microsoft.ML.Benchmarks { diff --git a/test/Microsoft.ML.Benchmarks/Harness/ProjectGenerator.cs b/test/Microsoft.ML.Benchmarks/Harness/ProjectGenerator.cs index 563933914b..c7cf22ab3c 100644 --- a/test/Microsoft.ML.Benchmarks/Harness/ProjectGenerator.cs +++ b/test/Microsoft.ML.Benchmarks/Harness/ProjectGenerator.cs @@ -2,15 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using BenchmarkDotNet.Extensions; +using System; +using System.IO; +using System.Linq; using BenchmarkDotNet.Loggers; using BenchmarkDotNet.Running; using BenchmarkDotNet.Toolchains; using BenchmarkDotNet.Toolchains.CsProj; -using System; -using System.IO; -using System.Linq; -using System.Text; namespace Microsoft.ML.Benchmarks.Harness { diff --git a/test/Microsoft.ML.Benchmarks/HashBench.cs b/test/Microsoft.ML.Benchmarks/HashBench.cs index 0973e5d430..324137256b 100644 --- a/test/Microsoft.ML.Benchmarks/HashBench.cs +++ b/test/Microsoft.ML.Benchmarks/HashBench.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; using BenchmarkDotNet.Attributes; using Microsoft.ML.Data; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Linq; namespace Microsoft.ML.Benchmarks { diff --git a/test/Microsoft.ML.Benchmarks/Helpers/EnvironmentFactory.cs b/test/Microsoft.ML.Benchmarks/Helpers/EnvironmentFactory.cs index 505ab91252..76df72a1f5 100644 --- a/test/Microsoft.ML.Benchmarks/Helpers/EnvironmentFactory.cs +++ b/test/Microsoft.ML.Benchmarks/Helpers/EnvironmentFactory.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using Microsoft.ML.Core.Data; -using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Training; using Microsoft.ML.Transforms; diff --git a/test/Microsoft.ML.Benchmarks/Numeric/Ranking.cs b/test/Microsoft.ML.Benchmarks/Numeric/Ranking.cs index 19d66a87ed..08ce77a8ec 100644 --- a/test/Microsoft.ML.Benchmarks/Numeric/Ranking.cs +++ b/test/Microsoft.ML.Benchmarks/Numeric/Ranking.cs @@ -2,14 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using BenchmarkDotNet.Attributes; using Microsoft.ML.Data; -using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.LightGBM; using Microsoft.ML.RunTests; using Microsoft.ML.Tools; +using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Transforms.Conversions; -using System.IO; namespace Microsoft.ML.Benchmarks { diff --git a/test/Microsoft.ML.Benchmarks/Program.cs b/test/Microsoft.ML.Benchmarks/Program.cs index 937300ffa2..a5c5e15aed 100644 --- a/test/Microsoft.ML.Benchmarks/Program.cs +++ b/test/Microsoft.ML.Benchmarks/Program.cs @@ -2,10 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using BenchmarkDotNet.Running; using System.Globalization; using System.IO; using System.Threading; +using BenchmarkDotNet.Running; namespace Microsoft.ML.Benchmarks { diff --git a/test/Microsoft.ML.Benchmarks/RffTransform.cs b/test/Microsoft.ML.Benchmarks/RffTransform.cs index 1d6861a338..1b486a1551 100644 --- a/test/Microsoft.ML.Benchmarks/RffTransform.cs +++ b/test/Microsoft.ML.Benchmarks/RffTransform.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using BenchmarkDotNet.Attributes; using Microsoft.ML.Data; using Microsoft.ML.RunTests; using Microsoft.ML.Transforms.Conversions; -using System.IO; namespace Microsoft.ML.Benchmarks { diff --git a/test/Microsoft.ML.Benchmarks/StochasticDualCoordinateAscentClassifierBench.cs b/test/Microsoft.ML.Benchmarks/StochasticDualCoordinateAscentClassifierBench.cs index 6395d8312d..fe16701fe7 100644 --- a/test/Microsoft.ML.Benchmarks/StochasticDualCoordinateAscentClassifierBench.cs +++ b/test/Microsoft.ML.Benchmarks/StochasticDualCoordinateAscentClassifierBench.cs @@ -2,6 +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 System.Collections.Generic; +using System.Globalization; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Engines; using Microsoft.ML.Data; @@ -10,8 +12,6 @@ using Microsoft.ML.Legacy.Transforms; using Microsoft.ML.Trainers; using Microsoft.ML.Transforms.Text; -using System.Collections.Generic; -using System.Globalization; namespace Microsoft.ML.Benchmarks { diff --git a/test/Microsoft.ML.Benchmarks/Text/MultiClassClassification.cs b/test/Microsoft.ML.Benchmarks/Text/MultiClassClassification.cs index 63472b2864..25d17f85be 100644 --- a/test/Microsoft.ML.Benchmarks/Text/MultiClassClassification.cs +++ b/test/Microsoft.ML.Benchmarks/Text/MultiClassClassification.cs @@ -2,15 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using BenchmarkDotNet.Attributes; using Microsoft.ML.Data; using Microsoft.ML.LightGBM; using Microsoft.ML.RunTests; using Microsoft.ML.Tools; -using Microsoft.ML.Trainers.Online; using Microsoft.ML.Trainers; +using Microsoft.ML.Trainers.Online; using Microsoft.ML.Transforms.Categorical; -using System.IO; namespace Microsoft.ML.Benchmarks { diff --git a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/BestFriendTest.cs b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/BestFriendTest.cs index c97d5740ab..597149eae9 100644 --- a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/BestFriendTest.cs +++ b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/BestFriendTest.cs @@ -2,16 +2,16 @@ // 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.CodeAnalysis; -using Microsoft.CodeAnalysis.CSharp; -using Microsoft.CodeAnalysis.Diagnostics; -using Microsoft.ML.CodeAnalyzer.Tests.Helpers; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Linq; using System.Reflection; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp; +using Microsoft.CodeAnalysis.Diagnostics; +using Microsoft.ML.CodeAnalyzer.Tests.Helpers; using Xunit; namespace Microsoft.ML.InternalCodeAnalyzer.Tests diff --git a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/ContractsCheckTest.cs b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/ContractsCheckTest.cs index da5994ec7a..86f47a9652 100644 --- a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/ContractsCheckTest.cs +++ b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/ContractsCheckTest.cs @@ -2,10 +2,10 @@ // 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.CodeAnalysis; -using Microsoft.ML.CodeAnalyzer.Tests.Helpers; using System; using System.Linq; +using Microsoft.CodeAnalysis; +using Microsoft.ML.CodeAnalyzer.Tests.Helpers; using Xunit; namespace Microsoft.ML.InternalCodeAnalyzer.Tests diff --git a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/InstanceInitializerTest.cs b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/InstanceInitializerTest.cs index 6c2c154bb7..19360a2d82 100644 --- a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/InstanceInitializerTest.cs +++ b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/InstanceInitializerTest.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using Microsoft.ML.CodeAnalyzer.Tests.Helpers; -using Microsoft.ML.InternalCodeAnalyzer; using Xunit; namespace Microsoft.ML.InternalCodeAnalyzer.Tests diff --git a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/NameTest.cs b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/NameTest.cs index 5b79d92e2e..a66948aed3 100644 --- a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/NameTest.cs +++ b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/NameTest.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using Microsoft.ML.CodeAnalyzer.Tests.Helpers; -using Microsoft.ML.InternalCodeAnalyzer; using Xunit; namespace Microsoft.ML.InternalCodeAnalyzer.Tests diff --git a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/ParameterVariableNameTest.cs b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/ParameterVariableNameTest.cs index 3450e25c17..6afd8bec4b 100644 --- a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/ParameterVariableNameTest.cs +++ b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/ParameterVariableNameTest.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using Microsoft.ML.CodeAnalyzer.Tests.Helpers; -using Microsoft.ML.InternalCodeAnalyzer; using Xunit; namespace Microsoft.ML.InternalCodeAnalyzer.Tests diff --git a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/SingleVariableDeclarationTest.cs b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/SingleVariableDeclarationTest.cs index 13a1533217..6b5249502f 100644 --- a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/SingleVariableDeclarationTest.cs +++ b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/SingleVariableDeclarationTest.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using Microsoft.ML.CodeAnalyzer.Tests.Helpers; -using Microsoft.ML.InternalCodeAnalyzer; using Xunit; namespace Microsoft.ML.InternalCodeAnalyzer.Tests diff --git a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/TypeParamNameTest.cs b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/TypeParamNameTest.cs index f7c1c38030..d697b83208 100644 --- a/test/Microsoft.ML.CodeAnalyzer.Tests/Code/TypeParamNameTest.cs +++ b/test/Microsoft.ML.CodeAnalyzer.Tests/Code/TypeParamNameTest.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using Microsoft.ML.CodeAnalyzer.Tests.Helpers; -using Microsoft.ML.InternalCodeAnalyzer; using Xunit; namespace Microsoft.ML.InternalCodeAnalyzer.Tests diff --git a/test/Microsoft.ML.CodeAnalyzer.Tests/Helpers/DiagnosticResult.cs b/test/Microsoft.ML.CodeAnalyzer.Tests/Helpers/DiagnosticResult.cs index dee2ae7fdb..61bc8b7ae6 100644 --- a/test/Microsoft.ML.CodeAnalyzer.Tests/Helpers/DiagnosticResult.cs +++ b/test/Microsoft.ML.CodeAnalyzer.Tests/Helpers/DiagnosticResult.cs @@ -2,8 +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 Microsoft.CodeAnalysis; using System; +using Microsoft.CodeAnalysis; namespace Microsoft.ML.CodeAnalyzer.Tests.Helpers { diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/ColumnTypes.cs b/test/Microsoft.ML.Core.Tests/UnitTests/ColumnTypes.cs index 6ecea0d219..648cdecb78 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/ColumnTypes.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/ColumnTypes.cs @@ -2,9 +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 System; using System.Collections.Generic; -using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.ImageAnalytics; using Xunit; diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/CoreBaseTestClass.cs b/test/Microsoft.ML.Core.Tests/UnitTests/CoreBaseTestClass.cs index 2d0ca7e602..fd03873e18 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/CoreBaseTestClass.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/CoreBaseTestClass.cs @@ -2,12 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.RunTests; -using System; -using System.Collections.Generic; -using Xunit; using Xunit.Abstractions; namespace Microsoft.ML.Core.Tests.UnitTests diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/DataTypes.cs b/test/Microsoft.ML.Core.Tests/UnitTests/DataTypes.cs index 21d616462c..b21b40d0b0 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/DataTypes.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/DataTypes.cs @@ -1,6 +1,4 @@ using System; -using System.IO; -using System.Linq; using System.Text; using Microsoft.ML.Data; using Microsoft.ML.Data.Conversion; diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/FileSource.cs b/test/Microsoft.ML.Core.Tests/UnitTests/FileSource.cs index 8a799738d9..e4e0ad934c 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/FileSource.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/FileSource.cs @@ -2,9 +2,9 @@ // 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.Data; using System; using System.IO; +using Microsoft.ML.Data; using Xunit; namespace Microsoft.ML.RunTests diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/TestCSharpApi.cs b/test/Microsoft.ML.Core.Tests/UnitTests/TestCSharpApi.cs index 0295b0f854..3911f05af3 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/TestCSharpApi.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/TestCSharpApi.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; using Microsoft.ML.Data; -using Microsoft.ML.Legacy.Data; using Microsoft.ML.EntryPoints; +using Microsoft.ML.Legacy.Data; using Microsoft.ML.TestFramework; -using System; -using System.Collections.Generic; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/TestEarlyStoppingCriteria.cs b/test/Microsoft.ML.Core.Tests/UnitTests/TestEarlyStoppingCriteria.cs index f4e8eef24b..24ece262a9 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/TestEarlyStoppingCriteria.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/TestEarlyStoppingCriteria.cs @@ -2,7 +2,6 @@ // 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.Data; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.TestFramework; using Xunit; diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/TestEntryPoints.cs b/test/Microsoft.ML.Core.Tests/UnitTests/TestEntryPoints.cs index 222ec6dc96..a2fc9c0107 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/TestEntryPoints.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/TestEntryPoints.cs @@ -2,9 +2,13 @@ // 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.Data; -using Microsoft.ML.Legacy.EntryPoints; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text.RegularExpressions; using Microsoft.ML.Core.Tests.UnitTests; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Ensemble.EntryPoints; using Microsoft.ML.Ensemble.OutputCombiners; @@ -30,11 +34,6 @@ using Microsoft.ML.Transforms.Text; using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text.RegularExpressions; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/TestHosts.cs b/test/Microsoft.ML.Core.Tests/UnitTests/TestHosts.cs index c17e8e24c7..7963db4267 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/TestHosts.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/TestHosts.cs @@ -6,11 +6,7 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; -using System.Text; using System.Threading; -using System.Threading.Tasks; -using Microsoft.ML; -using Microsoft.ML.Data; using Xunit; namespace Microsoft.ML.RunTests diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/TestLoss.cs b/test/Microsoft.ML.Core.Tests/UnitTests/TestLoss.cs index 18dcfda3c9..ef03fdce16 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/TestLoss.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/TestLoss.cs @@ -2,11 +2,9 @@ // 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 Microsoft.ML; using Xunit; +using Float = System.Single; namespace Microsoft.ML.RunTests { /// diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/TestLruCache.cs b/test/Microsoft.ML.Core.Tests/UnitTests/TestLruCache.cs index ea1a48d2e2..85c1615a34 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/TestLruCache.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/TestLruCache.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Collections.Generic; using System.Linq; using Microsoft.ML.Internal.Utilities; using Xunit; diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/TestModelLoad.cs b/test/Microsoft.ML.Core.Tests/UnitTests/TestModelLoad.cs index 30c64bdb13..60eace57c7 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/TestModelLoad.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/TestModelLoad.cs @@ -2,10 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Model; using Microsoft.ML.TestFramework; -using System.IO; using Xunit; namespace Microsoft.ML.RunTests diff --git a/test/Microsoft.ML.Core.Tests/UnitTests/TestVBuffer.cs b/test/Microsoft.ML.Core.Tests/UnitTests/TestVBuffer.cs index 4c44101d5b..d8119458eb 100644 --- a/test/Microsoft.ML.Core.Tests/UnitTests/TestVBuffer.cs +++ b/test/Microsoft.ML.Core.Tests/UnitTests/TestVBuffer.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Generic; using System.Linq; -using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; diff --git a/test/Microsoft.ML.CpuMath.UnitTests.netcoreapp/UnitTests.cs b/test/Microsoft.ML.CpuMath.UnitTests.netcoreapp/UnitTests.cs index d8d7ebbcb2..ee9ba74ea8 100644 --- a/test/Microsoft.ML.CpuMath.UnitTests.netcoreapp/UnitTests.cs +++ b/test/Microsoft.ML.CpuMath.UnitTests.netcoreapp/UnitTests.cs @@ -2,9 +2,9 @@ // 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.Internal.CpuMath; using System; using System.Collections.Generic; +using Microsoft.ML.Internal.CpuMath; using Xunit; namespace Microsoft.ML.CpuMath.UnitTests diff --git a/test/Microsoft.ML.FSharp.Tests/SmokeTests.fs b/test/Microsoft.ML.FSharp.Tests/SmokeTests.fs index b6060cfc9b..fbd9a468ba 100644 --- a/test/Microsoft.ML.FSharp.Tests/SmokeTests.fs +++ b/test/Microsoft.ML.FSharp.Tests/SmokeTests.fs @@ -57,8 +57,8 @@ namespace Microsoft.ML.FSharp.Tests open System open Microsoft.ML open Microsoft.ML.Legacy.Data -open Microsoft.ML.Legacy.Transforms open Microsoft.ML.Legacy.Trainers +open Microsoft.ML.Legacy.Transforms open Microsoft.ML.Data open Xunit diff --git a/test/Microsoft.ML.OnnxTransformTest/DnnImageFeaturizerTest.cs b/test/Microsoft.ML.OnnxTransformTest/DnnImageFeaturizerTest.cs index e291ae35b5..11580d262f 100644 --- a/test/Microsoft.ML.OnnxTransformTest/DnnImageFeaturizerTest.cs +++ b/test/Microsoft.ML.OnnxTransformTest/DnnImageFeaturizerTest.cs @@ -2,18 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; +using System.Runtime.InteropServices; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML.OnnxTransform.StaticPipe; -using Microsoft.ML; using Microsoft.ML.ImageAnalytics; using Microsoft.ML.Model; +using Microsoft.ML.OnnxTransform.StaticPipe; using Microsoft.ML.RunTests; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.IO; -using System.Runtime.InteropServices; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.OnnxTransformTest/OnnxTransformTests.cs b/test/Microsoft.ML.OnnxTransformTest/OnnxTransformTests.cs index 1cd7894a35..34d5c40b46 100644 --- a/test/Microsoft.ML.OnnxTransformTest/OnnxTransformTests.cs +++ b/test/Microsoft.ML.OnnxTransformTest/OnnxTransformTests.cs @@ -2,20 +2,20 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML.OnnxTransform.StaticPipe; -using Microsoft.ML; using Microsoft.ML.ImageAnalytics; using Microsoft.ML.Model; +using Microsoft.ML.OnnxTransform.StaticPipe; using Microsoft.ML.RunTests; using Microsoft.ML.Tools; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdIndenterTest.cs b/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdIndenterTest.cs index f3be885813..3fe49d07af 100644 --- a/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdIndenterTest.cs +++ b/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdIndenterTest.cs @@ -2,10 +2,10 @@ // 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.Internal.Utilities; using System; using System.CodeDom.Compiler; using System.IO; +using Microsoft.ML.Internal.Utilities; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdLine.cs b/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdLine.cs index b591f49e56..a87fa8171c 100644 --- a/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdLine.cs +++ b/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdLine.cs @@ -12,7 +12,6 @@ using System.Text; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; -using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdLineReverseTest.cs b/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdLineReverseTest.cs index 2ae5ac834c..f5d8c9e18d 100644 --- a/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdLineReverseTest.cs +++ b/test/Microsoft.ML.Predictor.Tests/CmdLine/CmdLineReverseTest.cs @@ -2,10 +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 Microsoft.ML.CommandLine; -using Microsoft.ML.Data; -using Microsoft.ML.EntryPoints; using System.Reflection; +using Microsoft.ML.CommandLine; using Xunit; namespace Microsoft.ML.RunTests diff --git a/test/Microsoft.ML.Predictor.Tests/CompareBaselines.cs b/test/Microsoft.ML.Predictor.Tests/CompareBaselines.cs index f40e7ecf5d..654dd97ee7 100644 --- a/test/Microsoft.ML.Predictor.Tests/CompareBaselines.cs +++ b/test/Microsoft.ML.Predictor.Tests/CompareBaselines.cs @@ -2,11 +2,11 @@ // 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.Internal.Utilities; using System; using System.IO; using System.Linq; using System.Text.RegularExpressions; +using Microsoft.ML.Internal.Utilities; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Predictor.Tests/ResultProcessor/TestResultProcessor.cs b/test/Microsoft.ML.Predictor.Tests/ResultProcessor/TestResultProcessor.cs index 40002c1caf..904b446581 100644 --- a/test/Microsoft.ML.Predictor.Tests/ResultProcessor/TestResultProcessor.cs +++ b/test/Microsoft.ML.Predictor.Tests/ResultProcessor/TestResultProcessor.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.IO; using System.Collections.Generic; +using System.IO; using System.Reflection; -using Xunit.Abstractions; using Xunit; +using Xunit.Abstractions; namespace Microsoft.ML.RunTests { diff --git a/test/Microsoft.ML.Predictor.Tests/Test-API.cs b/test/Microsoft.ML.Predictor.Tests/Test-API.cs index 776ef996bf..2a7c61d215 100644 --- a/test/Microsoft.ML.Predictor.Tests/Test-API.cs +++ b/test/Microsoft.ML.Predictor.Tests/Test-API.cs @@ -2,18 +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 Float = System.Single; - -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading; -using Microsoft.ML; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Data; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Learners; -using Microsoft.ML.Model; + namespace Microsoft.ML.Internal.Internallearn.Test { diff --git a/test/Microsoft.ML.Predictor.Tests/TestCreateInstances.cs b/test/Microsoft.ML.Predictor.Tests/TestCreateInstances.cs index 90dfd3a417..1116e337fb 100644 --- a/test/Microsoft.ML.Predictor.Tests/TestCreateInstances.cs +++ b/test/Microsoft.ML.Predictor.Tests/TestCreateInstances.cs @@ -2,12 +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 Float = System.Single; -using System; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Trainers.PCA; namespace Microsoft.ML.Internal.Internallearn.Test { diff --git a/test/Microsoft.ML.Predictor.Tests/TestCrossValidation.cs b/test/Microsoft.ML.Predictor.Tests/TestCrossValidation.cs index 4bf444725b..0b7540bbd5 100644 --- a/test/Microsoft.ML.Predictor.Tests/TestCrossValidation.cs +++ b/test/Microsoft.ML.Predictor.Tests/TestCrossValidation.cs @@ -2,15 +2,10 @@ // 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 Microsoft.ML.Numeric; -using Microsoft.ML.CommandLine; namespace Microsoft.ML.RunTests { - using TestLearners = TestLearnersBase; #if OLD_TESTS // REVIEW: Do these add any value? public class TestCrossValidation : BaseTestPredictorsOld diff --git a/test/Microsoft.ML.Predictor.Tests/TestIniModels.cs b/test/Microsoft.ML.Predictor.Tests/TestIniModels.cs index f2a2eb83c8..58332208a3 100644 --- a/test/Microsoft.ML.Predictor.Tests/TestIniModels.cs +++ b/test/Microsoft.ML.Predictor.Tests/TestIniModels.cs @@ -2,16 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.IO; -using System.Threading; -using Microsoft.ML; -using Microsoft.ML.Internal.Utilities; namespace Microsoft.ML.RunTests { - using TestLearners = TestLearnersBase; #if OLD_TESTS // REVIEW: Need to port the INI stuff. /// diff --git a/test/Microsoft.ML.Predictor.Tests/TestParallelFasttreeInterface.cs b/test/Microsoft.ML.Predictor.Tests/TestParallelFasttreeInterface.cs index 7094aaacba..1df6f956be 100644 --- a/test/Microsoft.ML.Predictor.Tests/TestParallelFasttreeInterface.cs +++ b/test/Microsoft.ML.Predictor.Tests/TestParallelFasttreeInterface.cs @@ -4,9 +4,9 @@ using System; using Microsoft.ML; -using Microsoft.ML.Trainers.FastTree.Internal; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.RunTests; +using Microsoft.ML.Trainers.FastTree.Internal; using Xunit; using Xunit.Abstractions; @@ -15,8 +15,8 @@ namespace Microsoft.ML.RunTests { - using SplitInfo = Microsoft.ML.Trainers.FastTree.Internal.LeastSquaresRegressionTreeLearner.SplitInfo; using LeafSplitCandidates = Microsoft.ML.Trainers.FastTree.Internal.LeastSquaresRegressionTreeLearner.LeafSplitCandidates; + using SplitInfo = Microsoft.ML.Trainers.FastTree.Internal.LeastSquaresRegressionTreeLearner.SplitInfo; public sealed class FastTreeParallelInterfaceChecker : Microsoft.ML.Trainers.FastTree.IParallelTraining { diff --git a/test/Microsoft.ML.Predictor.Tests/TestPredictors.cs b/test/Microsoft.ML.Predictor.Tests/TestPredictors.cs index efcc52f20c..223fb683cf 100644 --- a/test/Microsoft.ML.Predictor.Tests/TestPredictors.cs +++ b/test/Microsoft.ML.Predictor.Tests/TestPredictors.cs @@ -9,10 +9,12 @@ namespace Microsoft.ML.RunTests { + using System.Linq; + using System.Runtime.InteropServices; using Microsoft.ML; using Microsoft.ML.Data; - using Microsoft.ML.EntryPoints; using Microsoft.ML.Ensemble; + using Microsoft.ML.EntryPoints; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Learners; using Microsoft.ML.LightGBM; @@ -22,8 +24,6 @@ namespace Microsoft.ML.RunTests using Microsoft.ML.Trainers.Online; using Microsoft.ML.Trainers.SymSgd; using Microsoft.ML.Transforms.Categorical; - using System.Linq; - using System.Runtime.InteropServices; using Xunit; using Xunit.Abstractions; using TestLearners = TestLearnersBase; diff --git a/test/Microsoft.ML.Predictor.Tests/TestTrivialPredictors.cs b/test/Microsoft.ML.Predictor.Tests/TestTrivialPredictors.cs index 0dc707e0ed..c95b6d220a 100644 --- a/test/Microsoft.ML.Predictor.Tests/TestTrivialPredictors.cs +++ b/test/Microsoft.ML.Predictor.Tests/TestTrivialPredictors.cs @@ -2,15 +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 Float = System.Single; -using System; -using System.IO; -using Microsoft.ML; -using Microsoft.ML.Learners; -using Microsoft.ML.Internal.Internallearn; -using Microsoft.ML.Internal.Internallearn.Test; -using Microsoft.ML.Model; namespace Microsoft.ML.RunTests { diff --git a/test/Microsoft.ML.StaticPipelineTesting/StaticPipeFakes.cs b/test/Microsoft.ML.StaticPipelineTesting/StaticPipeFakes.cs index 145ed514f4..efb1ee1928 100644 --- a/test/Microsoft.ML.StaticPipelineTesting/StaticPipeFakes.cs +++ b/test/Microsoft.ML.StaticPipelineTesting/StaticPipeFakes.cs @@ -1,12 +1,11 @@ -using Microsoft.ML.Core.Data; +using System; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML; +using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.StaticPipe; using Microsoft.ML.StaticPipe.Runtime; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; // Holds some classes that superficially represent classes, at least sufficiently to give the idea of the // statically typed columnar estimator helper API. As more "real" examples of the static functions get diff --git a/test/Microsoft.ML.StaticPipelineTesting/StaticPipeTests.cs b/test/Microsoft.ML.StaticPipelineTesting/StaticPipeTests.cs index 90446f9150..9061dbaa09 100644 --- a/test/Microsoft.ML.StaticPipelineTesting/StaticPipeTests.cs +++ b/test/Microsoft.ML.StaticPipelineTesting/StaticPipeTests.cs @@ -2,9 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.IO; +using System.Linq; +using System.Text; using Microsoft.ML.Data; -using Microsoft.ML.HalLearners.StaticPipe; using Microsoft.ML.Data.IO; +using Microsoft.ML.HalLearners.StaticPipe; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.RunTests; using Microsoft.ML.StaticPipe; @@ -12,12 +18,6 @@ using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Projections; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.IO; -using System.Linq; -using System.Text; using Xunit; using Xunit.Abstractions; using static Microsoft.ML.Transforms.Text.LatentDirichletAllocationTransformer; diff --git a/test/Microsoft.ML.StaticPipelineTesting/Training.cs b/test/Microsoft.ML.StaticPipelineTesting/Training.cs index 56cc035241..e1ed6e9810 100644 --- a/test/Microsoft.ML.StaticPipelineTesting/Training.cs +++ b/test/Microsoft.ML.StaticPipelineTesting/Training.cs @@ -2,7 +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 Microsoft.ML.LightGBM.StaticPipe; +using System; +using System.Linq; using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.FactorizationMachine; @@ -10,14 +11,13 @@ using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Learners; using Microsoft.ML.LightGBM; +using Microsoft.ML.LightGBM.StaticPipe; using Microsoft.ML.RunTests; using Microsoft.ML.StaticPipe; using Microsoft.ML.Trainers; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Trainers.KMeans; using Microsoft.ML.Trainers.Recommender; -using System; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Sweeper.Tests/SweeperTest.cs b/test/Microsoft.ML.Sweeper.Tests/SweeperTest.cs index 28968fcabe..077ed5104c 100644 --- a/test/Microsoft.ML.Sweeper.Tests/SweeperTest.cs +++ b/test/Microsoft.ML.Sweeper.Tests/SweeperTest.cs @@ -2,13 +2,6 @@ // 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; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Data; -using Microsoft.ML.RunTests; -using Microsoft.ML.Sweeper; -using System; -using System.IO; using Xunit; namespace Microsoft.ML.Sweeper.Tests diff --git a/test/Microsoft.ML.Sweeper.Tests/TestSweeper.cs b/test/Microsoft.ML.Sweeper.Tests/TestSweeper.cs index 1ea3a5cb3a..11bd4ae0db 100644 --- a/test/Microsoft.ML.Sweeper.Tests/TestSweeper.cs +++ b/test/Microsoft.ML.Sweeper.Tests/TestSweeper.cs @@ -2,20 +2,15 @@ // 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; -using Microsoft.ML.CommandLine; -using Microsoft.ML.Data; -using Microsoft.ML.EntryPoints; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.RunTests; -using Microsoft.ML.Sweeper; -using Microsoft.ML.Sweeper.Algorithms; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.RunTests; +using Microsoft.ML.Sweeper.Algorithms; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.TestFramework/BaseTestBaseline.cs b/test/Microsoft.ML.TestFramework/BaseTestBaseline.cs index 92ac41e1d9..b1674d7b10 100644 --- a/test/Microsoft.ML.TestFramework/BaseTestBaseline.cs +++ b/test/Microsoft.ML.TestFramework/BaseTestBaseline.cs @@ -2,16 +2,16 @@ // 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.Data; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.Tools; -using Microsoft.ML.TestFramework; using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Threading; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.TestFramework; +using Microsoft.ML.Tools; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.TestFramework/BaseTestClass.cs b/test/Microsoft.ML.TestFramework/BaseTestClass.cs index ec5dfdc67c..77ac3a3de0 100644 --- a/test/Microsoft.ML.TestFramework/BaseTestClass.cs +++ b/test/Microsoft.ML.TestFramework/BaseTestClass.cs @@ -2,12 +2,12 @@ // 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.Internal.Internallearn.Test; using System; using System.Globalization; using System.IO; using System.Reflection; using System.Threading; +using Microsoft.ML.Internal.Internallearn.Test; using Xunit.Abstractions; namespace Microsoft.ML.TestFramework diff --git a/test/Microsoft.ML.TestFramework/BytesStreamSource.cs b/test/Microsoft.ML.TestFramework/BytesStreamSource.cs index 4e63cc9402..9e6cde69f2 100644 --- a/test/Microsoft.ML.TestFramework/BytesStreamSource.cs +++ b/test/Microsoft.ML.TestFramework/BytesStreamSource.cs @@ -4,7 +4,6 @@ using System.IO; using System.Text; -using Microsoft.ML; using Microsoft.ML.Data; namespace Microsoft.ML.TestFramework diff --git a/test/Microsoft.ML.TestFramework/DataPipe/Parquet.cs b/test/Microsoft.ML.TestFramework/DataPipe/Parquet.cs index e12dfe2c54..53c44e1a67 100644 --- a/test/Microsoft.ML.TestFramework/DataPipe/Parquet.cs +++ b/test/Microsoft.ML.TestFramework/DataPipe/Parquet.cs @@ -2,8 +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 Microsoft.ML.Data; using System; +using Microsoft.ML.Data; using Xunit; namespace Microsoft.ML.RunTests diff --git a/test/Microsoft.ML.TestFramework/DataPipe/TestDataPipe.cs b/test/Microsoft.ML.TestFramework/DataPipe/TestDataPipe.cs index ba616f146a..4a5f657948 100644 --- a/test/Microsoft.ML.TestFramework/DataPipe/TestDataPipe.cs +++ b/test/Microsoft.ML.TestFramework/DataPipe/TestDataPipe.cs @@ -2,15 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; using Microsoft.ML.CommandLine; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; -using System.IO; using Xunit; using Float = System.Single; diff --git a/test/Microsoft.ML.TestFramework/DataPipe/TestDataPipeBase.cs b/test/Microsoft.ML.TestFramework/DataPipe/TestDataPipeBase.cs index e9c870ef56..a9bef25f93 100644 --- a/test/Microsoft.ML.TestFramework/DataPipe/TestDataPipeBase.cs +++ b/test/Microsoft.ML.TestFramework/DataPipe/TestDataPipeBase.cs @@ -2,18 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using Microsoft.ML.CommandLine; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML.CommandLine; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.TestFramework; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Reflection; using Xunit; namespace Microsoft.ML.RunTests diff --git a/test/Microsoft.ML.TestFramework/Datasets.cs b/test/Microsoft.ML.TestFramework/Datasets.cs index 03b66f9788..6d6ba61191 100644 --- a/test/Microsoft.ML.TestFramework/Datasets.cs +++ b/test/Microsoft.ML.TestFramework/Datasets.cs @@ -2,8 +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 Microsoft.ML.Data; using System; +using Microsoft.ML.Data; namespace Microsoft.ML.RunTests { diff --git a/test/Microsoft.ML.TestFramework/EnvironmentExtensions.cs b/test/Microsoft.ML.TestFramework/EnvironmentExtensions.cs index bb47e4a532..0302b6c2a4 100644 --- a/test/Microsoft.ML.TestFramework/EnvironmentExtensions.cs +++ b/test/Microsoft.ML.TestFramework/EnvironmentExtensions.cs @@ -2,7 +2,6 @@ // 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; using Microsoft.ML.Data; using Microsoft.ML.Ensemble; using Microsoft.ML.EntryPoints; diff --git a/test/Microsoft.ML.TestFramework/Learners.cs b/test/Microsoft.ML.TestFramework/Learners.cs index 863fbfa9d3..01ccfaa274 100644 --- a/test/Microsoft.ML.TestFramework/Learners.cs +++ b/test/Microsoft.ML.TestFramework/Learners.cs @@ -4,8 +4,8 @@ using System.Text; using Microsoft.ML.CommandLine; -using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.TestFramework; +using Microsoft.ML.Trainers.FastTree; namespace Microsoft.ML.RunTests { diff --git a/test/Microsoft.ML.TestFramework/ModelHelper.cs b/test/Microsoft.ML.TestFramework/ModelHelper.cs index 73370065c4..3f6811185e 100644 --- a/test/Microsoft.ML.TestFramework/ModelHelper.cs +++ b/test/Microsoft.ML.TestFramework/ModelHelper.cs @@ -2,12 +2,10 @@ // 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.Legacy.Data; -using Microsoft.ML; -using Microsoft.ML.CommandLine; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.EntryPoints; -using System.IO; +using Microsoft.ML.Legacy.Data; namespace Microsoft.ML.TestFramework { diff --git a/test/Microsoft.ML.TestFramework/SubComponent.cs b/test/Microsoft.ML.TestFramework/SubComponent.cs index 5ef3a8d360..7a3009d369 100644 --- a/test/Microsoft.ML.TestFramework/SubComponent.cs +++ b/test/Microsoft.ML.TestFramework/SubComponent.cs @@ -4,7 +4,6 @@ using System; using System.Text; -using Microsoft.ML; using Microsoft.ML.CommandLine; using Microsoft.ML.Internal.Utilities; diff --git a/test/Microsoft.ML.TestFramework/TestCommandBase.cs b/test/Microsoft.ML.TestFramework/TestCommandBase.cs index 4e253e2020..4afcba206a 100644 --- a/test/Microsoft.ML.TestFramework/TestCommandBase.cs +++ b/test/Microsoft.ML.TestFramework/TestCommandBase.cs @@ -13,8 +13,8 @@ using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; -using Microsoft.ML.Tools; using Microsoft.ML.TestFramework; +using Microsoft.ML.Tools; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.TestFramework/TestInitialization.cs b/test/Microsoft.ML.TestFramework/TestInitialization.cs index bfff800ef1..0684e34e20 100644 --- a/test/Microsoft.ML.TestFramework/TestInitialization.cs +++ b/test/Microsoft.ML.TestFramework/TestInitialization.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Xunit; using Xunit.Abstractions; namespace Microsoft.ML.RunTests diff --git a/test/Microsoft.ML.TestFramework/TestSparseDataView.cs b/test/Microsoft.ML.TestFramework/TestSparseDataView.cs index 104907aa98..c543a7b739 100644 --- a/test/Microsoft.ML.TestFramework/TestSparseDataView.cs +++ b/test/Microsoft.ML.TestFramework/TestSparseDataView.cs @@ -2,8 +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 Microsoft.ML.Data; using System; +using Microsoft.ML.Data; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/CSharpCodeGen.cs b/test/Microsoft.ML.Tests/CSharpCodeGen.cs index f656212d81..cd52060cb5 100644 --- a/test/Microsoft.ML.Tests/CSharpCodeGen.cs +++ b/test/Microsoft.ML.Tests/CSharpCodeGen.cs @@ -2,8 +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 Microsoft.ML.RunTests; using System.IO; +using Microsoft.ML.RunTests; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/CachingTests.cs b/test/Microsoft.ML.Tests/CachingTests.cs index 0493ec4a1b..c0dffd8c4f 100644 --- a/test/Microsoft.ML.Tests/CachingTests.cs +++ b/test/Microsoft.ML.Tests/CachingTests.cs @@ -2,10 +2,10 @@ // 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.Data; -using Microsoft.ML.RunTests; using System.Linq; using System.Threading; +using Microsoft.ML.Data; +using Microsoft.ML.RunTests; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/CollectionDataSourceTests.cs b/test/Microsoft.ML.Tests/CollectionDataSourceTests.cs index 5a7dbd4ca7..1003620157 100644 --- a/test/Microsoft.ML.Tests/CollectionDataSourceTests.cs +++ b/test/Microsoft.ML.Tests/CollectionDataSourceTests.cs @@ -2,15 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; using Microsoft.ML.Data; using Microsoft.ML.Legacy.Data; using Microsoft.ML.Legacy.Trainers; using Microsoft.ML.Legacy.Transforms; using Microsoft.ML.TestFramework; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/FeatureContributionTests.cs b/test/Microsoft.ML.Tests/FeatureContributionTests.cs index 4b6fd6b572..c3396bdd44 100644 --- a/test/Microsoft.ML.Tests/FeatureContributionTests.cs +++ b/test/Microsoft.ML.Tests/FeatureContributionTests.cs @@ -2,17 +2,17 @@ // 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.Data; -using Microsoft.ML.RunTests; -using Microsoft.ML.Training; using System; -using Xunit; -using Xunit.Abstractions; +using System.IO; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.RunTests; +using Microsoft.ML.Training; using Microsoft.ML.Transforms; -using System.IO; +using Xunit; +using Xunit.Abstractions; namespace Microsoft.ML.Tests { diff --git a/test/Microsoft.ML.Tests/ImagesTests.cs b/test/Microsoft.ML.Tests/ImagesTests.cs index 7f4f861cf7..018626bdfd 100644 --- a/test/Microsoft.ML.Tests/ImagesTests.cs +++ b/test/Microsoft.ML.Tests/ImagesTests.cs @@ -2,14 +2,14 @@ // 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.Data; -using Microsoft.ML.ImageAnalytics; -using Microsoft.ML.Model; -using Microsoft.ML.RunTests; using System; using System.Drawing; using System.IO; using System.Linq; +using Microsoft.ML.Data; +using Microsoft.ML.ImageAnalytics; +using Microsoft.ML.Model; +using Microsoft.ML.RunTests; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/LearningPipelineTests.cs b/test/Microsoft.ML.Tests/LearningPipelineTests.cs index 496f8598e2..1d69649fd2 100644 --- a/test/Microsoft.ML.Tests/LearningPipelineTests.cs +++ b/test/Microsoft.ML.Tests/LearningPipelineTests.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Legacy.Data; using Microsoft.ML.Legacy.Trainers; using Microsoft.ML.Legacy.Transforms; using Microsoft.ML.TestFramework; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/OnnxTests.cs b/test/Microsoft.ML.Tests/OnnxTests.cs index fd6a7a0735..117d83ffff 100644 --- a/test/Microsoft.ML.Tests/OnnxTests.cs +++ b/test/Microsoft.ML.Tests/OnnxTests.cs @@ -2,6 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; +using System.Text.RegularExpressions; using Microsoft.ML.Data; using Microsoft.ML.Legacy.Data; using Microsoft.ML.Legacy.Models; @@ -9,10 +13,6 @@ using Microsoft.ML.Legacy.Transforms; using Microsoft.ML.Model.Onnx; using Microsoft.ML.RunTests; -using System; -using System.Collections.Generic; -using System.IO; -using System.Text.RegularExpressions; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/PartitionedFileLoaderTests.cs b/test/Microsoft.ML.Tests/PartitionedFileLoaderTests.cs index b9088d0b0c..7d950c29e1 100644 --- a/test/Microsoft.ML.Tests/PartitionedFileLoaderTests.cs +++ b/test/Microsoft.ML.Tests/PartitionedFileLoaderTests.cs @@ -2,8 +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 Microsoft.ML.RunTests; using System.IO; +using Microsoft.ML.RunTests; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/PermutationFeatureImportanceTests.cs b/test/Microsoft.ML.Tests/PermutationFeatureImportanceTests.cs index 88ef6af527..118145b3b7 100644 --- a/test/Microsoft.ML.Tests/PermutationFeatureImportanceTests.cs +++ b/test/Microsoft.ML.Tests/PermutationFeatureImportanceTests.cs @@ -2,14 +2,12 @@ // 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.Core.Data; -using Microsoft.ML; -using Microsoft.ML.Data; -using Microsoft.ML.Internal.Utilities; -using Microsoft.ML.RunTests; using System; using System.Collections.Immutable; using System.Linq; +using Microsoft.ML.Data; +using Microsoft.ML.Internal.Utilities; +using Microsoft.ML.RunTests; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/PredictionModelTests.cs b/test/Microsoft.ML.Tests/PredictionModelTests.cs index 069823f1ab..7d8d565445 100644 --- a/test/Microsoft.ML.Tests/PredictionModelTests.cs +++ b/test/Microsoft.ML.Tests/PredictionModelTests.cs @@ -2,10 +2,10 @@ // 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.Data; -using Microsoft.ML.TestFramework; using System.IO; using System.Threading.Tasks; +using Microsoft.ML.Data; +using Microsoft.ML.TestFramework; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/RangeFilterTests.cs b/test/Microsoft.ML.Tests/RangeFilterTests.cs index e224cc6997..131bde9fa7 100644 --- a/test/Microsoft.ML.Tests/RangeFilterTests.cs +++ b/test/Microsoft.ML.Tests/RangeFilterTests.cs @@ -2,9 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.RunTests; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/CookbookSamples/CookbookSamples.cs b/test/Microsoft.ML.Tests/Scenarios/Api/CookbookSamples/CookbookSamples.cs index e5e3dd16b9..8964cbb627 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/CookbookSamples/CookbookSamples.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/CookbookSamples/CookbookSamples.cs @@ -2,9 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.IO; +using System.Linq; +using Microsoft.ML; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.Learners; using Microsoft.ML.RunTests; using Microsoft.ML.StaticPipe; @@ -13,11 +18,6 @@ using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; -using System.Collections.Immutable; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/CookbookSamples/CookbookSamplesDynamicApi.cs b/test/Microsoft.ML.Tests/Scenarios/Api/CookbookSamples/CookbookSamplesDynamicApi.cs index 4ef4ec7e1d..2d00f36957 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/CookbookSamples/CookbookSamplesDynamicApi.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/CookbookSamples/CookbookSamplesDynamicApi.cs @@ -2,6 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.ComponentModel.Composition; +using System.ComponentModel.Composition.Hosting; +using System.IO; +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.RunTests; @@ -9,12 +15,6 @@ using Microsoft.ML.Transforms.Categorical; using Microsoft.ML.Transforms.Normalizers; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; -using System.ComponentModel.Composition; -using System.ComponentModel.Composition.Hosting; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/CrossValidation.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/CrossValidation.cs index e1d8c831b0..b8221188a2 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/CrossValidation.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/CrossValidation.cs @@ -2,13 +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 Microsoft.ML.Data; using Microsoft.ML.RunTests; -using Microsoft.ML.Transforms.Categorical; -using Microsoft.ML.Transforms.Conversions; using Xunit; -using System; -using System.Linq; namespace Microsoft.ML.Tests.Scenarios.Api { diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/DecomposableTrainAndPredict.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/DecomposableTrainAndPredict.cs index c74c9f196b..ffdf491876 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/DecomposableTrainAndPredict.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/DecomposableTrainAndPredict.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.RunTests; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; -using System.Linq; using Xunit; namespace Microsoft.ML.Tests.Scenarios.Api diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/Extensibility.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/Extensibility.cs index 0d2da98e63..f3f4d9d7c1 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/Extensibility.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/Extensibility.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.RunTests; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Linq; using Xunit; namespace Microsoft.ML.Tests.Scenarios.Api diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/FileBasedSavingOfData.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/FileBasedSavingOfData.cs index bbff52dcd6..a937b94eae 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/FileBasedSavingOfData.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/FileBasedSavingOfData.cs @@ -2,12 +2,10 @@ // 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; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; -using Microsoft.ML.Learners; using Microsoft.ML.RunTests; -using System.IO; using Xunit; namespace Microsoft.ML.Tests.Scenarios.Api diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/IntrospectiveTraining.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/IntrospectiveTraining.cs index ba01d98244..5783d8e58b 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/IntrospectiveTraining.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/IntrospectiveTraining.cs @@ -3,13 +3,7 @@ // See the LICENSE file in the project root for more information. using Microsoft.ML.Data; -using Microsoft.ML.Trainers.FastTree; -using Microsoft.ML.Internal.Calibration; -using Microsoft.ML.Internal.Internallearn; -using Microsoft.ML.Learners; using Microsoft.ML.RunTests; -using Microsoft.ML.TextAnalytics; -using System.Collections.Generic; using Xunit; namespace Microsoft.ML.Tests.Scenarios.Api diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/MultithreadedPrediction.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/MultithreadedPrediction.cs index 3968dc5e0b..77e8f76133 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/MultithreadedPrediction.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/MultithreadedPrediction.cs @@ -2,9 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Threading.Tasks; using Microsoft.ML.Data; using Microsoft.ML.RunTests; -using System.Threading.Tasks; using Xunit; namespace Microsoft.ML.Tests.Scenarios.Api diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/ReconfigurablePrediction.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/ReconfigurablePrediction.cs index 7447433c2a..1cb4d42350 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/ReconfigurablePrediction.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/ReconfigurablePrediction.cs @@ -2,9 +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; using Microsoft.ML.Data; -using Microsoft.ML.Learners; using Microsoft.ML.RunTests; using Xunit; diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/SimpleTrainAndPredict.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/SimpleTrainAndPredict.cs index 5dbdde466b..8e9ec0e99b 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/SimpleTrainAndPredict.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/SimpleTrainAndPredict.cs @@ -2,10 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Linq; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.RunTests; -using System.Linq; using Xunit; namespace Microsoft.ML.Tests.Scenarios.Api diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainSaveModelAndPredict.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainSaveModelAndPredict.cs index 62821d264b..b322b5f202 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainSaveModelAndPredict.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainSaveModelAndPredict.cs @@ -2,12 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML; using Microsoft.ML.RunTests; -using System.IO; -using System.Linq; using Xunit; namespace Microsoft.ML.Tests.Scenarios.Api diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainWithInitialPredictor.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainWithInitialPredictor.cs index 6e2b798fa6..307aaebf3c 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainWithInitialPredictor.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainWithInitialPredictor.cs @@ -2,9 +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; using Microsoft.ML.Data; -using Microsoft.ML.Learners; using Microsoft.ML.RunTests; using Xunit; diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainWithValidationSet.cs b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainWithValidationSet.cs index 1fa992d1d4..41eb4f91ba 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainWithValidationSet.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/Estimators/TrainWithValidationSet.cs @@ -2,8 +2,6 @@ // 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.Data; -using Microsoft.ML.Learners; using Microsoft.ML.RunTests; using Xunit; diff --git a/test/Microsoft.ML.Tests/Scenarios/Api/TestApi.cs b/test/Microsoft.ML.Tests/Scenarios/Api/TestApi.cs index 32265039d1..ec35d9aa2a 100644 --- a/test/Microsoft.ML.Tests/Scenarios/Api/TestApi.cs +++ b/test/Microsoft.ML.Tests/Scenarios/Api/TestApi.cs @@ -2,16 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.TestFramework; using Microsoft.ML.Trainers.Online; using Microsoft.ML.Transforms; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Scenarios/ClusteringTests.cs b/test/Microsoft.ML.Tests/Scenarios/ClusteringTests.cs index 007b173021..59ca04fcac 100644 --- a/test/Microsoft.ML.Tests/Scenarios/ClusteringTests.cs +++ b/test/Microsoft.ML.Tests/Scenarios/ClusteringTests.cs @@ -1,7 +1,7 @@ -using Microsoft.ML.Data; -using Microsoft.ML.Legacy.Transforms; -using System; +using System; using System.Collections.Generic; +using Microsoft.ML.Data; +using Microsoft.ML.Legacy.Transforms; using Xunit; namespace Microsoft.ML.Scenarios diff --git a/test/Microsoft.ML.Tests/Scenarios/GetColumnTests.cs b/test/Microsoft.ML.Tests/Scenarios/GetColumnTests.cs index 0ed86701c0..e0805bd63c 100644 --- a/test/Microsoft.ML.Tests/Scenarios/GetColumnTests.cs +++ b/test/Microsoft.ML.Tests/Scenarios/GetColumnTests.cs @@ -2,13 +2,13 @@ // 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.Data; -using Microsoft.ML.StaticPipe; -using Microsoft.ML.RunTests; -using Microsoft.ML.TestFramework; using System; using System.Linq; using System.Reflection; +using Microsoft.ML.Data; +using Microsoft.ML.RunTests; +using Microsoft.ML.StaticPipe; +using Microsoft.ML.TestFramework; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Scenarios/PipelineApi/MultithreadedPrediction.cs b/test/Microsoft.ML.Tests/Scenarios/PipelineApi/MultithreadedPrediction.cs index 612f03add0..a05fb9c433 100644 --- a/test/Microsoft.ML.Tests/Scenarios/PipelineApi/MultithreadedPrediction.cs +++ b/test/Microsoft.ML.Tests/Scenarios/PipelineApi/MultithreadedPrediction.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; +using System.Threading.Tasks; using Microsoft.ML.Legacy.Data; using Microsoft.ML.Legacy.Trainers; using Microsoft.ML.Legacy.Transforms; -using System.Collections.Generic; -using System.Threading.Tasks; using Xunit; namespace Microsoft.ML.Tests.Scenarios.PipelineApi diff --git a/test/Microsoft.ML.Tests/Scenarios/PipelineApi/SimpleTrainAndPredict.cs b/test/Microsoft.ML.Tests/Scenarios/PipelineApi/SimpleTrainAndPredict.cs index d04f3a4a1e..2ef096a343 100644 --- a/test/Microsoft.ML.Tests/Scenarios/PipelineApi/SimpleTrainAndPredict.cs +++ b/test/Microsoft.ML.Tests/Scenarios/PipelineApi/SimpleTrainAndPredict.cs @@ -5,7 +5,6 @@ using Microsoft.ML.Legacy.Data; using Microsoft.ML.Legacy.Trainers; using Microsoft.ML.Legacy.Transforms; -using Microsoft.ML; using Xunit; namespace Microsoft.ML.Tests.Scenarios.PipelineApi diff --git a/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs b/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs index bab4403225..731a8ea5e7 100644 --- a/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs +++ b/test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs @@ -2,15 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Legacy; using Microsoft.ML.Legacy.Models; using Microsoft.ML.Legacy.Trainers; using Microsoft.ML.Legacy.Transforms; -using Microsoft.ML; -using System; -using System.Collections.Generic; -using System.Linq; using Xunit; namespace Microsoft.ML.Scenarios diff --git a/test/Microsoft.ML.Tests/Scenarios/TensorflowTests.cs b/test/Microsoft.ML.Tests/Scenarios/TensorflowTests.cs index e72ebea3c4..430ae1c28e 100644 --- a/test/Microsoft.ML.Tests/Scenarios/TensorflowTests.cs +++ b/test/Microsoft.ML.Tests/Scenarios/TensorflowTests.cs @@ -2,13 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.ImageAnalytics; using Microsoft.ML.Trainers; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; -using System; -using System.IO; using Xunit; namespace Microsoft.ML.Scenarios diff --git a/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/IrisPlantClassificationTests.cs b/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/IrisPlantClassificationTests.cs index d51585dba9..01fdfeacdc 100644 --- a/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/IrisPlantClassificationTests.cs +++ b/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/IrisPlantClassificationTests.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Legacy.Models; using Microsoft.ML.Model; using Microsoft.ML.RunTests; -using System.IO; using Xunit; namespace Microsoft.ML.Scenarios diff --git a/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/SentimentPredictionTests.cs b/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/SentimentPredictionTests.cs index 091b9ad5e1..55dcbd6c7f 100644 --- a/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/SentimentPredictionTests.cs +++ b/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/SentimentPredictionTests.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Linq; using Microsoft.ML.Data; +using Microsoft.ML.Internal.Internallearn; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Transforms.Text; -using System.Linq; using Xunit; -using Microsoft.ML.Internal.Internallearn; namespace Microsoft.ML.Scenarios { diff --git a/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/TensorflowTests.cs b/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/TensorflowTests.cs index 05ea13c701..abf8544a4a 100644 --- a/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/TensorflowTests.cs +++ b/test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/TensorflowTests.cs @@ -2,15 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.ImageAnalytics; using Microsoft.ML.RunTests; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Normalizers; using Microsoft.ML.Transforms.TensorFlow; -using System; -using System.Collections.Generic; -using System.IO; using Xunit; namespace Microsoft.ML.Scenarios diff --git a/test/Microsoft.ML.Tests/TensorFlowEstimatorTests.cs b/test/Microsoft.ML.Tests/TensorFlowEstimatorTests.cs index 32566eb8f1..7d226bccff 100644 --- a/test/Microsoft.ML.Tests/TensorFlowEstimatorTests.cs +++ b/test/Microsoft.ML.Tests/TensorFlowEstimatorTests.cs @@ -2,18 +2,18 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML.TensorFlow.StaticPipe; using Microsoft.ML.ImageAnalytics; using Microsoft.ML.Model; using Microsoft.ML.RunTests; +using Microsoft.ML.TensorFlow.StaticPipe; using Microsoft.ML.Tools; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.TensorFlow; -using System; -using System.Collections.Generic; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/TermEstimatorTests.cs b/test/Microsoft.ML.Tests/TermEstimatorTests.cs index 5e0e7a19b5..84bf72e876 100644 --- a/test/Microsoft.ML.Tests/TermEstimatorTests.cs +++ b/test/Microsoft.ML.Tests/TermEstimatorTests.cs @@ -2,6 +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 System; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; @@ -9,8 +11,6 @@ using Microsoft.ML.Tools; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; -using System; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/TextLoaderTests.cs b/test/Microsoft.ML.Tests/TextLoaderTests.cs index 2c1f7da782..145328beb0 100644 --- a/test/Microsoft.ML.Tests/TextLoaderTests.cs +++ b/test/Microsoft.ML.Tests/TextLoaderTests.cs @@ -2,12 +2,12 @@ // 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.Data; -using Microsoft.ML.RunTests; -using Microsoft.ML.TestFramework; using System; using System.Collections.Generic; using System.IO; +using Microsoft.ML.Data; +using Microsoft.ML.RunTests; +using Microsoft.ML.TestFramework; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/TrainerEstimators/FAFMEstimator.cs b/test/Microsoft.ML.Tests/TrainerEstimators/FAFMEstimator.cs index 53a7fcb95c..85b096ad30 100644 --- a/test/Microsoft.ML.Tests/TrainerEstimators/FAFMEstimator.cs +++ b/test/Microsoft.ML.Tests/TrainerEstimators/FAFMEstimator.cs @@ -2,13 +2,10 @@ // 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.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.FactorizationMachine; -using Microsoft.ML.Learners; using Microsoft.ML.RunTests; using Xunit; -using Xunit.Abstractions; namespace Microsoft.ML.Tests.TrainerEstimators { diff --git a/test/Microsoft.ML.Tests/TrainerEstimators/MatrixFactorizationTests.cs b/test/Microsoft.ML.Tests/TrainerEstimators/MatrixFactorizationTests.cs index 24c1ee7536..811cec012a 100644 --- a/test/Microsoft.ML.Tests/TrainerEstimators/MatrixFactorizationTests.cs +++ b/test/Microsoft.ML.Tests/TrainerEstimators/MatrixFactorizationTests.cs @@ -2,12 +2,12 @@ // 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.Data; -using Microsoft.ML.RunTests; -using Microsoft.ML.Trainers; using System; using System.Collections.Generic; using System.Runtime.InteropServices; +using Microsoft.ML.Data; +using Microsoft.ML.RunTests; +using Microsoft.ML.Trainers; using Xunit; namespace Microsoft.ML.Tests.TrainerEstimators diff --git a/test/Microsoft.ML.Tests/TrainerEstimators/PriorRandomTests.cs b/test/Microsoft.ML.Tests/TrainerEstimators/PriorRandomTests.cs index edafd5904f..a5aef45e2f 100644 --- a/test/Microsoft.ML.Tests/TrainerEstimators/PriorRandomTests.cs +++ b/test/Microsoft.ML.Tests/TrainerEstimators/PriorRandomTests.cs @@ -2,9 +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; using Microsoft.ML.Data; -using Microsoft.ML.Learners; using Microsoft.ML.RunTests; using Microsoft.ML.Trainers; using Xunit; diff --git a/test/Microsoft.ML.Tests/TrainerEstimators/SymSgdClassificationTests.cs b/test/Microsoft.ML.Tests/TrainerEstimators/SymSgdClassificationTests.cs index 49d7db7c4a..30dc030aed 100644 --- a/test/Microsoft.ML.Tests/TrainerEstimators/SymSgdClassificationTests.cs +++ b/test/Microsoft.ML.Tests/TrainerEstimators/SymSgdClassificationTests.cs @@ -2,10 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Trainers; using Microsoft.ML.Trainers.SymSgd; -using System.Linq; using Xunit; namespace Microsoft.ML.Tests.TrainerEstimators diff --git a/test/Microsoft.ML.Tests/TrainerEstimators/TreeEstimators.cs b/test/Microsoft.ML.Tests/TrainerEstimators/TreeEstimators.cs index 1ca8ad3b87..4938061b22 100644 --- a/test/Microsoft.ML.Tests/TrainerEstimators/TreeEstimators.cs +++ b/test/Microsoft.ML.Tests/TrainerEstimators/TreeEstimators.cs @@ -2,15 +2,14 @@ // 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; +using System; +using System.Collections.Generic; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.LightGBM; using Microsoft.ML.RunTests; using Microsoft.ML.Trainers.FastTree; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Collections.Generic; using Xunit; namespace Microsoft.ML.Tests.TrainerEstimators diff --git a/test/Microsoft.ML.Tests/Transformers/CategoricalHashTests.cs b/test/Microsoft.ML.Tests/Transformers/CategoricalHashTests.cs index c2208d05cc..55b46c1ca1 100644 --- a/test/Microsoft.ML.Tests/Transformers/CategoricalHashTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/CategoricalHashTests.cs @@ -2,17 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; using Microsoft.ML.RunTests; -using Microsoft.ML.Tools; using Microsoft.ML.StaticPipe; +using Microsoft.ML.Tools; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Categorical; -using System; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/CategoricalTests.cs b/test/Microsoft.ML.Tests/Transformers/CategoricalTests.cs index 70854c6bce..e18cfa5dda 100644 --- a/test/Microsoft.ML.Tests/Transformers/CategoricalTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/CategoricalTests.cs @@ -2,17 +2,17 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; using Microsoft.ML.RunTests; -using Microsoft.ML.Tools; using Microsoft.ML.StaticPipe; +using Microsoft.ML.Tools; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Categorical; -using System; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/CharTokenizeTests.cs b/test/Microsoft.ML.Tests/Transformers/CharTokenizeTests.cs index a1bddbc137..303eedbf55 100644 --- a/test/Microsoft.ML.Tests/Transformers/CharTokenizeTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/CharTokenizeTests.cs @@ -2,12 +2,12 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Model; using Microsoft.ML.RunTests; using Microsoft.ML.Tools; using Microsoft.ML.Transforms.Text; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/ConcatTests.cs b/test/Microsoft.ML.Tests/Transformers/ConcatTests.cs index 84cb52211e..c1b08aaa36 100644 --- a/test/Microsoft.ML.Tests/Transformers/ConcatTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/ConcatTests.cs @@ -2,11 +2,11 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.RunTests; using Microsoft.ML.Transforms; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/ConvertTests.cs b/test/Microsoft.ML.Tests/Transformers/ConvertTests.cs index 14a72a362f..e2a23374b4 100644 --- a/test/Microsoft.ML.Tests/Transformers/ConvertTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/ConvertTests.cs @@ -2,6 +2,9 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; @@ -10,9 +13,6 @@ using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Categorical; using Microsoft.ML.Transforms.Conversions; -using System; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/CopyColumnEstimatorTests.cs b/test/Microsoft.ML.Tests/Transformers/CopyColumnEstimatorTests.cs index 26a8ea510e..775c428b29 100644 --- a/test/Microsoft.ML.Tests/Transformers/CopyColumnEstimatorTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/CopyColumnEstimatorTests.cs @@ -2,13 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Model; using Microsoft.ML.Tools; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Conversions; -using System; -using System.IO; using Xunit; namespace Microsoft.ML.Tests diff --git a/test/Microsoft.ML.Tests/Transformers/CustomMappingTests.cs b/test/Microsoft.ML.Tests/Transformers/CustomMappingTests.cs index 5470f45244..0688a09aea 100644 --- a/test/Microsoft.ML.Tests/Transformers/CustomMappingTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/CustomMappingTests.cs @@ -2,14 +2,14 @@ // 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.Core.Data; -using Microsoft.ML.Data; -using Microsoft.ML.RunTests; -using Microsoft.ML.Transforms; using System; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using System.Linq; +using Microsoft.ML.Core.Data; +using Microsoft.ML.Data; +using Microsoft.ML.RunTests; +using Microsoft.ML.Transforms; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/FeatureSelectionTests.cs b/test/Microsoft.ML.Tests/Transformers/FeatureSelectionTests.cs index a9ddf749a2..e73640a2ed 100644 --- a/test/Microsoft.ML.Tests/Transformers/FeatureSelectionTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/FeatureSelectionTests.cs @@ -2,6 +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 System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; @@ -10,7 +11,6 @@ using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.FeatureSelection; using Microsoft.ML.Transforms.Text; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/HashTests.cs b/test/Microsoft.ML.Tests/Transformers/HashTests.cs index dc674c04af..6104b92fca 100644 --- a/test/Microsoft.ML.Tests/Transformers/HashTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/HashTests.cs @@ -2,15 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Internal.Utilities; using Microsoft.ML.Model; using Microsoft.ML.RunTests; using Microsoft.ML.Tools; using Microsoft.ML.Transforms.Conversions; -using System; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/KeyToBinaryVectorEstimatorTest.cs b/test/Microsoft.ML.Tests/Transformers/KeyToBinaryVectorEstimatorTest.cs index 5549793721..8ebfc775de 100644 --- a/test/Microsoft.ML.Tests/Transformers/KeyToBinaryVectorEstimatorTest.cs +++ b/test/Microsoft.ML.Tests/Transformers/KeyToBinaryVectorEstimatorTest.cs @@ -2,15 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Model; using Microsoft.ML.RunTests; -using Microsoft.ML.Tools; using Microsoft.ML.StaticPipe; +using Microsoft.ML.Tools; using Microsoft.ML.Transforms.Conversions; -using System; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/KeyToValueTests.cs b/test/Microsoft.ML.Tests/Transformers/KeyToValueTests.cs index 8a7e80c2b2..b89584a2cd 100644 --- a/test/Microsoft.ML.Tests/Transformers/KeyToValueTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/KeyToValueTests.cs @@ -2,14 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.RunTests; using Microsoft.ML.StaticPipe; using Microsoft.ML.Transforms; -using Microsoft.ML.Transforms.Categorical; using Microsoft.ML.Transforms.Conversions; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/KeyToVectorEstimatorTests.cs b/test/Microsoft.ML.Tests/Transformers/KeyToVectorEstimatorTests.cs index b90c302298..29082202f5 100644 --- a/test/Microsoft.ML.Tests/Transformers/KeyToVectorEstimatorTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/KeyToVectorEstimatorTests.cs @@ -2,15 +2,15 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; +using System.Linq; using Microsoft.ML.Data; using Microsoft.ML.Model; using Microsoft.ML.RunTests; -using Microsoft.ML.Tools; using Microsoft.ML.StaticPipe; +using Microsoft.ML.Tools; using Microsoft.ML.Transforms.Conversions; -using System; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/LineParserTests.cs b/test/Microsoft.ML.Tests/Transformers/LineParserTests.cs index e51b5826ab..b29158a324 100644 --- a/test/Microsoft.ML.Tests/Transformers/LineParserTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/LineParserTests.cs @@ -2,8 +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 Microsoft.ML.Internal.Utilities; using System.Collections.Generic; +using Microsoft.ML.Internal.Utilities; using Xunit; namespace Microsoft.ML.Tests.Transformers diff --git a/test/Microsoft.ML.Tests/Transformers/NAIndicatorTests.cs b/test/Microsoft.ML.Tests/Transformers/NAIndicatorTests.cs index 7817273e80..a3567ab1a3 100644 --- a/test/Microsoft.ML.Tests/Transformers/NAIndicatorTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/NAIndicatorTests.cs @@ -2,6 +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 System; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; @@ -9,8 +11,6 @@ using Microsoft.ML.Tools; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Categorical; -using System; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/NAReplaceTests.cs b/test/Microsoft.ML.Tests/Transformers/NAReplaceTests.cs index 40917beb34..a7a058756f 100644 --- a/test/Microsoft.ML.Tests/Transformers/NAReplaceTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/NAReplaceTests.cs @@ -2,14 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; using Microsoft.ML.RunTests; -using Microsoft.ML.Tools; using Microsoft.ML.StaticPipe; +using Microsoft.ML.Tools; using Microsoft.ML.Transforms; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/NormalizerTests.cs b/test/Microsoft.ML.Tests/Transformers/NormalizerTests.cs index abfe1391a2..828b8c361a 100644 --- a/test/Microsoft.ML.Tests/Transformers/NormalizerTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/NormalizerTests.cs @@ -2,6 +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 System.Collections.Immutable; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; @@ -10,8 +12,6 @@ using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Normalizers; using Microsoft.ML.Transforms.Projections; -using System.Collections.Immutable; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/PcaTests.cs b/test/Microsoft.ML.Tests/Transformers/PcaTests.cs index b2d3079364..94a2c462eb 100644 --- a/test/Microsoft.ML.Tests/Transformers/PcaTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/PcaTests.cs @@ -2,13 +2,12 @@ // 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; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.RunTests; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Projections; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/RffTests.cs b/test/Microsoft.ML.Tests/Transformers/RffTests.cs index 201d3b8ab4..ac65762246 100644 --- a/test/Microsoft.ML.Tests/Transformers/RffTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/RffTests.cs @@ -1,13 +1,13 @@ -using Microsoft.ML.Data; +using System; +using System.IO; +using System.Linq; +using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; using Microsoft.ML.RunTests; using Microsoft.ML.Tools; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Projections; -using System; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/SelectColumnsTests.cs b/test/Microsoft.ML.Tests/Transformers/SelectColumnsTests.cs index e4086be339..0dd2326d90 100644 --- a/test/Microsoft.ML.Tests/Transformers/SelectColumnsTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/SelectColumnsTests.cs @@ -2,13 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Model; using Microsoft.ML.RunTests; using Microsoft.ML.Tools; using Microsoft.ML.Transforms; -using System; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/TextFeaturizerTests.cs b/test/Microsoft.ML.Tests/Transformers/TextFeaturizerTests.cs index 619fb7e9bc..4989287a64 100644 --- a/test/Microsoft.ML.Tests/Transformers/TextFeaturizerTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/TextFeaturizerTests.cs @@ -2,18 +2,17 @@ // 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.StaticPipe; +using System; +using System.IO; using Microsoft.ML; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.RunTests; +using Microsoft.ML.StaticPipe; using Microsoft.ML.Tools; using Microsoft.ML.Transforms; -using Microsoft.ML.Transforms.Categorical; using Microsoft.ML.Transforms.Conversions; using Microsoft.ML.Transforms.Text; -using System; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/TextNormalizer.cs b/test/Microsoft.ML.Tests/Transformers/TextNormalizer.cs index 887634d363..dc1f76f4b2 100644 --- a/test/Microsoft.ML.Tests/Transformers/TextNormalizer.cs +++ b/test/Microsoft.ML.Tests/Transformers/TextNormalizer.cs @@ -2,6 +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 System.IO; using Microsoft.ML.Data; using Microsoft.ML.Data.IO; using Microsoft.ML.Model; @@ -9,7 +10,6 @@ using Microsoft.ML.Tools; using Microsoft.ML.Transforms; using Microsoft.ML.Transforms.Text; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/ValueMappingTests.cs b/test/Microsoft.ML.Tests/Transformers/ValueMappingTests.cs index b466d22ffd..55a0a502be 100644 --- a/test/Microsoft.ML.Tests/Transformers/ValueMappingTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/ValueMappingTests.cs @@ -2,16 +2,16 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; using Microsoft.ML.Model; using Microsoft.ML.RunTests; using Microsoft.ML.Tools; using Microsoft.ML.Transforms.Conversions; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.Tests/Transformers/WordTokenizeTests.cs b/test/Microsoft.ML.Tests/Transformers/WordTokenizeTests.cs index aca3c9de1b..6bf6873717 100644 --- a/test/Microsoft.ML.Tests/Transformers/WordTokenizeTests.cs +++ b/test/Microsoft.ML.Tests/Transformers/WordTokenizeTests.cs @@ -2,14 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; +using System.IO; using Microsoft.ML.Data; using Microsoft.ML.Model; using Microsoft.ML.RunTests; using Microsoft.ML.Tools; using Microsoft.ML.Transforms.Text; -using System; -using System.Collections.Generic; -using System.IO; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.TimeSeries.Tests/TimeSeries.cs b/test/Microsoft.ML.TimeSeries.Tests/TimeSeries.cs index 9a5f34eb1f..5ff02e2723 100644 --- a/test/Microsoft.ML.TimeSeries.Tests/TimeSeries.cs +++ b/test/Microsoft.ML.TimeSeries.Tests/TimeSeries.cs @@ -2,11 +2,9 @@ // 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.Data; -using Microsoft.ML.TimeSeriesProcessing; -using System; using System.IO; using System.Linq; +using Microsoft.ML.TimeSeriesProcessing; using Xunit; using Xunit.Abstractions; diff --git a/test/Microsoft.ML.TimeSeries.Tests/TimeSeriesDirectApi.cs b/test/Microsoft.ML.TimeSeries.Tests/TimeSeriesDirectApi.cs index ac720e050c..f695c177af 100644 --- a/test/Microsoft.ML.TimeSeries.Tests/TimeSeriesDirectApi.cs +++ b/test/Microsoft.ML.TimeSeries.Tests/TimeSeriesDirectApi.cs @@ -2,13 +2,13 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; +using System.IO; using Microsoft.ML.Core.Data; using Microsoft.ML.Data; -using Microsoft.ML.TimeSeriesProcessing; using Microsoft.ML.RunTests; using Microsoft.ML.TimeSeries; -using System.Collections.Generic; -using System.IO; +using Microsoft.ML.TimeSeriesProcessing; using Xunit; namespace Microsoft.ML.Tests diff --git a/test/Microsoft.ML.TimeSeries.Tests/TimeSeriesEstimatorTests.cs b/test/Microsoft.ML.TimeSeries.Tests/TimeSeriesEstimatorTests.cs index 5d31ee2822..91eaa4cc2d 100644 --- a/test/Microsoft.ML.TimeSeries.Tests/TimeSeriesEstimatorTests.cs +++ b/test/Microsoft.ML.TimeSeries.Tests/TimeSeriesEstimatorTests.cs @@ -2,10 +2,10 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Collections.Generic; using Microsoft.ML.Data; using Microsoft.ML.RunTests; using Microsoft.ML.TimeSeriesProcessing; -using System.Collections.Generic; using Xunit; using Xunit.Abstractions; diff --git a/tools-local/Microsoft.ML.InternalCodeAnalyzer/Descriptions.Designer.cs b/tools-local/Microsoft.ML.InternalCodeAnalyzer/Descriptions.Designer.cs index 4f9067ac6b..0baae0ad2d 100644 --- a/tools-local/Microsoft.ML.InternalCodeAnalyzer/Descriptions.Designer.cs +++ b/tools-local/Microsoft.ML.InternalCodeAnalyzer/Descriptions.Designer.cs @@ -8,11 +8,11 @@ // //------------------------------------------------------------------------------ -namespace Microsoft.ML.InternalCodeAnalyzer { - using System; +namespace Microsoft.ML.InternalCodeAnalyzer +{ using System.Reflection; - - + + /// /// A strongly-typed resource class, for looking up localized strings, etc. ///