Skip to content

Commit 5bbf7cf

Browse files
Ivanidzo4kaTomFinley
authored andcommitted
Remove all spaces in the end of lines (#478)
* remove all spaces in the end of lines
1 parent dec0d9e commit 5bbf7cf

22 files changed

+145
-147
lines changed

src/Microsoft.ML.Data/Transforms/NormalizeColumn.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ public static NormalizeTransform Create(IHostEnvironment env, MinMaxArguments ar
271271
/// <param name="name">Name of the output column.</param>
272272
/// <param name="source">Name of the column to be transformed. If this is null '<paramref name="name"/>' will be used.</param>
273273
/// /// <param name="useCdf">Whether to use CDF as the output.</param>
274-
public static NormalizeTransform CreateMeanVarNormalizer(IHostEnvironment env,
275-
IDataView input,
276-
string name,
277-
string source=null,
274+
public static NormalizeTransform CreateMeanVarNormalizer(IHostEnvironment env,
275+
IDataView input,
276+
string name,
277+
string source = null,
278278
bool useCdf = Defaults.MeanVarCdf)
279279
{
280280
var args = new MeanVarArguments()
@@ -313,10 +313,10 @@ public static NormalizeTransform Create(IHostEnvironment env, MeanVarArguments a
313313
/// <param name="name">Name of the output column.</param>
314314
/// <param name="source">Name of the column to be transformed. If this is null '<paramref name="name"/>' will be used.</param>
315315
/// /// <param name="useCdf">Whether to use CDF as the output.</param>
316-
public static NormalizeTransform CreateLogMeanVarNormalizer(IHostEnvironment env,
317-
IDataView input,
318-
string name,
319-
string source=null,
316+
public static NormalizeTransform CreateLogMeanVarNormalizer(IHostEnvironment env,
317+
IDataView input,
318+
string name,
319+
string source = null,
320320
bool useCdf = Defaults.LogMeanVarCdf)
321321
{
322322
var args = new LogMeanVarArguments()
@@ -347,10 +347,10 @@ public static NormalizeTransform Create(IHostEnvironment env, LogMeanVarArgument
347347
return func;
348348
}
349349

350-
public static NormalizeTransform CreateBinningNormalizer(IHostEnvironment env,
351-
IDataView input,
352-
string name,
353-
string source=null,
350+
public static NormalizeTransform CreateBinningNormalizer(IHostEnvironment env,
351+
IDataView input,
352+
string name,
353+
string source = null,
354354
int numBins = Defaults.NumBins)
355355
{
356356
var args = new BinArguments()
@@ -381,12 +381,12 @@ public static NormalizeTransform Create(IHostEnvironment env, BinArguments args,
381381
return func;
382382
}
383383

384-
public static NormalizeTransform CreateSupervisedBinningNormalizer(IHostEnvironment env,
385-
IDataView input,
386-
string labelColumn,
387-
string name,
388-
string source = null,
389-
int numBins = Defaults.NumBins,
384+
public static NormalizeTransform CreateSupervisedBinningNormalizer(IHostEnvironment env,
385+
IDataView input,
386+
string labelColumn,
387+
string name,
388+
string source = null,
389+
int numBins = Defaults.NumBins,
390390
int minBinSize = Defaults.MinBinSize)
391391
{
392392
var args = new SupervisedBinArguments()

src/Microsoft.ML.FastTree/FastTreeClassification.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,10 @@ public void AdjustTreeOutputs(IChannel ch, RegressionTree tree,
338338

339339
public static partial class FastTree
340340
{
341-
[TlcModule.EntryPoint(Name = "Trainers.FastTreeBinaryClassifier",
342-
Desc = FastTreeBinaryClassificationTrainer.Summary,
343-
Remarks = FastTreeBinaryClassificationTrainer.Remarks,
344-
UserName = FastTreeBinaryClassificationTrainer.UserNameValue,
341+
[TlcModule.EntryPoint(Name = "Trainers.FastTreeBinaryClassifier",
342+
Desc = FastTreeBinaryClassificationTrainer.Summary,
343+
Remarks = FastTreeBinaryClassificationTrainer.Remarks,
344+
UserName = FastTreeBinaryClassificationTrainer.UserNameValue,
345345
ShortName = FastTreeBinaryClassificationTrainer.ShortName)]
346346
public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, FastTreeBinaryClassificationTrainer.Arguments input)
347347
{

src/Microsoft.ML.FastTree/FastTreeRanking.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,10 +1096,10 @@ public static FastTreeRankingPredictor Create(IHostEnvironment env, ModelLoadCon
10961096

10971097
public static partial class FastTree
10981098
{
1099-
[TlcModule.EntryPoint(Name = "Trainers.FastTreeRanker",
1100-
Desc = FastTreeRankingTrainer.Summary,
1099+
[TlcModule.EntryPoint(Name = "Trainers.FastTreeRanker",
1100+
Desc = FastTreeRankingTrainer.Summary,
11011101
Remarks = FastTreeRankingTrainer.Remarks,
1102-
UserName = FastTreeRankingTrainer.UserNameValue,
1102+
UserName = FastTreeRankingTrainer.UserNameValue,
11031103
ShortName = FastTreeRankingTrainer.ShortName)]
11041104
public static CommonOutputs.RankingOutput TrainRanking(IHostEnvironment env, FastTreeRankingTrainer.Arguments input)
11051105
{

src/Microsoft.ML.FastTree/FastTreeRegression.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ public static FastTreeRegressionPredictor Create(IHostEnvironment env, ModelLoad
449449
public static partial class FastTree
450450
{
451451
[TlcModule.EntryPoint(Name = "Trainers.FastTreeRegressor",
452-
Desc = FastTreeRegressionTrainer.Summary,
453-
Remarks = FastTreeRegressionTrainer.Remarks,
454-
UserName = FastTreeRegressionTrainer.UserNameValue,
452+
Desc = FastTreeRegressionTrainer.Summary,
453+
Remarks = FastTreeRegressionTrainer.Remarks,
454+
UserName = FastTreeRegressionTrainer.UserNameValue,
455455
ShortName = FastTreeRegressionTrainer.ShortName)]
456456
public static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, FastTreeRegressionTrainer.Arguments input)
457457
{

src/Microsoft.ML.FastTree/FastTreeTweedie.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,9 @@ protected override void Map(ref VBuffer<float> src, ref float dst)
463463

464464
public static partial class FastTree
465465
{
466-
[TlcModule.EntryPoint(Name = "Trainers.FastTreeTweedieRegressor",
467-
Desc = FastTreeTweedieTrainer.Summary,
468-
UserName = FastTreeTweedieTrainer.UserNameValue,
466+
[TlcModule.EntryPoint(Name = "Trainers.FastTreeTweedieRegressor",
467+
Desc = FastTreeTweedieTrainer.Summary,
468+
UserName = FastTreeTweedieTrainer.UserNameValue,
469469
ShortName = FastTreeTweedieTrainer.ShortName)]
470470
public static CommonOutputs.RegressionOutput TrainTweedieRegression(IHostEnvironment env, FastTreeTweedieTrainer.Arguments input)
471471
{

src/Microsoft.ML.FastTree/RandomForestClassification.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ protected override void GetGradientInOneQuery(int query, int threadIndex)
208208

209209
public static partial class FastForest
210210
{
211-
[TlcModule.EntryPoint(Name = "Trainers.FastForestBinaryClassifier",
212-
Desc = FastForestClassification.Summary,
213-
Remarks = FastForestClassification.Remarks,
214-
UserName = FastForestClassification.UserNameValue,
211+
[TlcModule.EntryPoint(Name = "Trainers.FastForestBinaryClassifier",
212+
Desc = FastForestClassification.Summary,
213+
Remarks = FastForestClassification.Remarks,
214+
UserName = FastForestClassification.UserNameValue,
215215
ShortName = FastForestClassification.ShortName)]
216216
public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, FastForestClassification.Arguments input)
217217
{

src/Microsoft.ML.FastTree/RandomForestRegression.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ public BasicImpl(Dataset trainData, Arguments args)
280280

281281
public static partial class FastForest
282282
{
283-
[TlcModule.EntryPoint(Name = "Trainers.FastForestRegressor",
284-
Desc = FastForestRegression.Summary,
283+
[TlcModule.EntryPoint(Name = "Trainers.FastForestRegressor",
284+
Desc = FastForestRegression.Summary,
285285
Remarks = FastForestRegression.Remarks,
286-
UserName = FastForestRegression.LoadNameValue,
286+
UserName = FastForestRegression.LoadNameValue,
287287
ShortName = FastForestRegression.ShortName)]
288288
public static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, FastForestRegression.Arguments input)
289289
{

src/Microsoft.ML.KMeansClustering/KMeansPlusPlusTrainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ private static int ComputeNumThreads(IHost host, int? argNumThreads)
233233
return Math.Max(1, maxThreads);
234234
}
235235

236-
[TlcModule.EntryPoint(Name = "Trainers.KMeansPlusPlusClusterer",
236+
[TlcModule.EntryPoint(Name = "Trainers.KMeansPlusPlusClusterer",
237237
Desc = Summary,
238238
Remarks = Remarks,
239-
UserName = UserNameValue,
239+
UserName = UserNameValue,
240240
ShortName = ShortName)]
241241
public static CommonOutputs.ClusteringOutput TrainKMeans(IHostEnvironment env, Arguments input)
242242
{

src/Microsoft.ML.PCA/PcaTrainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ private static void PostProcess(VBuffer<Float>[] y, Float[] sigma, Float[] z, in
284284
}
285285
}
286286

287-
[TlcModule.EntryPoint(Name = "Trainers.PcaAnomalyDetector",
287+
[TlcModule.EntryPoint(Name = "Trainers.PcaAnomalyDetector",
288288
Desc = "Train an PCA Anomaly model.",
289289
Remarks = PcaPredictor.Remarks,
290-
UserName = UserNameValue,
290+
UserName = UserNameValue,
291291
ShortName = ShortName)]
292292
public static CommonOutputs.AnomalyDetectionOutput TrainPcaAnomaly(IHostEnvironment env, Arguments input)
293293
{

src/Microsoft.ML.StandardLearners/FactorizationMachine/FactorizationMachineTrainer.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
using Microsoft.ML.Runtime.EntryPoints;
1212
using Microsoft.ML.Runtime.FactorizationMachine;
1313
using Microsoft.ML.Runtime.Internal.CpuMath;
14-
using Microsoft.ML.Runtime.Internal.Internallearn;
1514
using Microsoft.ML.Runtime.Internal.Utilities;
16-
using Microsoft.ML.Runtime.Model;
1715
using Microsoft.ML.Runtime.Training;
1816

1917
[assembly: LoadableClass(FieldAwareFactorizationMachineTrainer.Summary, typeof(FieldAwareFactorizationMachineTrainer), typeof(FieldAwareFactorizationMachineTrainer.Arguments),
@@ -413,10 +411,10 @@ public override FieldAwareFactorizationMachinePredictor CreatePredictor()
413411
return _pred;
414412
}
415413

416-
[TlcModule.EntryPoint(Name = "Trainers.FieldAwareFactorizationMachineBinaryClassifier",
417-
Desc = Summary,
414+
[TlcModule.EntryPoint(Name = "Trainers.FieldAwareFactorizationMachineBinaryClassifier",
415+
Desc = Summary,
418416
Remarks = Remarks,
419-
UserName = UserName,
417+
UserName = UserName,
420418
ShortName = ShortName)]
421419
public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, Arguments input)
422420
{

0 commit comments

Comments
 (0)