Skip to content

Commit 2ceab03

Browse files
Ivanidzo4kaeerhardt
authored andcommitted
Remove all spaces in the end of lines (dotnet#478)
* remove all spaces in the end of lines
1 parent 0f99444 commit 2ceab03

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
{

src/Microsoft.ML.StandardLearners/Standard/LinearClassificationTrainer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public abstract class ArgumentsBase : LearnerInputBaseWithLabel
189189
public int? MaxIterations;
190190

191191
[Argument(ArgumentType.AtMostOnce, HelpText = "Shuffle data every epoch?", ShortName = "shuf")]
192-
[TlcModule.SweepableDiscreteParamAttribute("Shuffle", null, isBool:true)]
192+
[TlcModule.SweepableDiscreteParamAttribute("Shuffle", null, isBool: true)]
193193
public bool Shuffle = true;
194194

195195
[Argument(ArgumentType.AtMostOnce, HelpText = "Convergence check frequency (in terms of number of iterations). Set as negative or zero for not checking at all. If left blank, it defaults to check after every 'numThreads' iterations.", NullName = "<Auto>", ShortName = "checkFreq")]
@@ -1507,7 +1507,7 @@ public sealed class Arguments : LearnerInputBaseWithWeight
15071507
public Double InitLearningRate = 0.01;
15081508

15091509
[Argument(ArgumentType.AtMostOnce, HelpText = "Shuffle data every epoch?", ShortName = "shuf")]
1510-
[TlcModule.SweepableDiscreteParamAttribute("Shuffle", null, isBool:true)]
1510+
[TlcModule.SweepableDiscreteParamAttribute("Shuffle", null, isBool: true)]
15111511
public bool Shuffle = true;
15121512

15131513
[Argument(ArgumentType.AtMostOnce, HelpText = "Apply weight to the positive class, for imbalanced data", ShortName = "piw")]
@@ -1795,10 +1795,10 @@ public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironm
17951795
/// </summary>
17961796
public static partial class Sdca
17971797
{
1798-
[TlcModule.EntryPoint(Name = "Trainers.StochasticDualCoordinateAscentBinaryClassifier",
1798+
[TlcModule.EntryPoint(Name = "Trainers.StochasticDualCoordinateAscentBinaryClassifier",
17991799
Desc = "Train an SDCA binary model.",
18001800
Remarks = LinearClassificationTrainer.Remarks,
1801-
UserName = LinearClassificationTrainer.UserNameValue,
1801+
UserName = LinearClassificationTrainer.UserNameValue,
18021802
ShortName = LinearClassificationTrainer.LoadNameValue)]
18031803
public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, LinearClassificationTrainer.Arguments input)
18041804
{

src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/LogisticRegression.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,10 @@ public override ParameterMixingCalibratedPredictor CreatePredictor()
386386
new PlattCalibrator(Host, -1, 0));
387387
}
388388

389-
[TlcModule.EntryPoint(Name = "Trainers.LogisticRegressionBinaryClassifier",
390-
Desc = Summary,
389+
[TlcModule.EntryPoint(Name = "Trainers.LogisticRegressionBinaryClassifier",
390+
Desc = Summary,
391391
Remarks = Remarks,
392-
UserName = UserNameValue,
392+
UserName = UserNameValue,
393393
ShortName = ShortName)]
394394
public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, Arguments input)
395395
{

src/Microsoft.ML.StandardLearners/Standard/LogisticRegression/MulticlassLogisticRegression.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -961,10 +961,10 @@ public IRow GetStatsIRowOrNull(RoleMappedSchema schema)
961961
/// </summary>
962962
public partial class LogisticRegression
963963
{
964-
[TlcModule.EntryPoint(Name = "Trainers.LogisticRegressionClassifier",
965-
Desc = Summary,
964+
[TlcModule.EntryPoint(Name = "Trainers.LogisticRegressionClassifier",
965+
Desc = Summary,
966966
Remarks = MulticlassLogisticRegression.Remarks,
967-
UserName = MulticlassLogisticRegression.UserNameValue,
967+
UserName = MulticlassLogisticRegression.UserNameValue,
968968
ShortName = MulticlassLogisticRegression.ShortName)]
969969
public static CommonOutputs.MulticlassClassificationOutput TrainMultiClass(IHostEnvironment env, MulticlassLogisticRegression.Arguments input)
970970
{

src/Microsoft.ML.StandardLearners/Standard/MultiClass/MultiClassNaiveBayesTrainer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public override MultiClassNaiveBayesPredictor CreatePredictor()
130130
return _predictor;
131131
}
132132

133-
[TlcModule.EntryPoint(Name = "Trainers.NaiveBayesClassifier",
134-
Desc = "Train a MultiClassNaiveBayesTrainer.",
133+
[TlcModule.EntryPoint(Name = "Trainers.NaiveBayesClassifier",
134+
Desc = "Train a MultiClassNaiveBayesTrainer.",
135135
UserName = UserName, ShortName = ShortName)]
136136
public static CommonOutputs.MulticlassClassificationOutput TrainMultiClassNaiveBayesTrainer(IHostEnvironment env, Arguments input)
137137
{

src/Microsoft.ML.StandardLearners/Standard/Online/AveragedPerceptron.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ public override LinearBinaryPredictor CreatePredictor()
110110
return new LinearBinaryPredictor(Host, ref weights, bias);
111111
}
112112

113-
[TlcModule.EntryPoint(Name = "Trainers.AveragedPerceptronBinaryClassifier",
113+
[TlcModule.EntryPoint(Name = "Trainers.AveragedPerceptronBinaryClassifier",
114114
Desc = Summary,
115115
Remarks = Remarks,
116-
UserName = UserNameValue,
116+
UserName = UserNameValue,
117117
ShortName = ShortName)]
118118
public static CommonOutputs.BinaryClassificationOutput TrainBinary(IHostEnvironment env, Arguments input)
119119
{

src/Microsoft.ML.StandardLearners/Standard/Online/OnlineGradientDescent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public override TPredictor CreatePredictor()
9494
return new LinearRegressionPredictor(Host, ref weights, bias);
9595
}
9696

97-
[TlcModule.EntryPoint(Name = "Trainers.OnlineGradientDescentRegressor",
97+
[TlcModule.EntryPoint(Name = "Trainers.OnlineGradientDescentRegressor",
9898
Desc = "Train a Online gradient descent perceptron.",
9999
Remarks = Remarks,
100100
UserName = UserNameValue,

src/Microsoft.ML.StandardLearners/Standard/PoissonRegression/PoissonRegression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public sealed class PoissonRegression : LbfgsTrainerBase<Float, PoissonRegressio
3232
internal const string UserNameValue = "Poisson Regression";
3333
internal const string ShortName = "PR";
3434
internal const string Summary = "Poisson Regression assumes the unknown function, denoted Y has a Poisson distribution.";
35-
new internal const string Remarks = @"<remarks>
35+
internal new const string Remarks = @"<remarks>
3636
<a href='https://en.wikipedia.org/wiki/Poisson_regression'>Poisson regression</a> is a parameterized regression method.
3737
It assumes that the log of the conditional mean of the dependent variable follows a linear function of the dependent variables.
3838
Assuming that the dependent variable follows a Poisson distribution, the parameters of the regressor can be estimated by maximizing the likelihood of the obtained observations.

src/Microsoft.ML.StandardLearners/Standard/SdcaMultiClass.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,10 @@ protected override Float GetInstanceWeight(FloatLabelCursor cursor)
386386
/// </summary>
387387
public static partial class Sdca
388388
{
389-
[TlcModule.EntryPoint(Name = "Trainers.StochasticDualCoordinateAscentClassifier",
390-
Desc = SdcaMultiClassTrainer.Summary,
389+
[TlcModule.EntryPoint(Name = "Trainers.StochasticDualCoordinateAscentClassifier",
390+
Desc = SdcaMultiClassTrainer.Summary,
391391
Remarks = SdcaMultiClassTrainer.Remarks,
392-
UserName = SdcaMultiClassTrainer.UserNameValue,
392+
UserName = SdcaMultiClassTrainer.UserNameValue,
393393
ShortName = SdcaMultiClassTrainer.ShortName)]
394394
public static CommonOutputs.MulticlassClassificationOutput TrainMultiClass(IHostEnvironment env, SdcaMultiClassTrainer.Arguments input)
395395
{

src/Microsoft.ML.StandardLearners/Standard/SdcaRegression.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ protected override Float TuneDefaultL2(IChannel ch, int maxIterations, long rowC
131131
/// </summary>
132132
public static partial class Sdca
133133
{
134-
[TlcModule.EntryPoint(Name = "Trainers.StochasticDualCoordinateAscentRegressor",
134+
[TlcModule.EntryPoint(Name = "Trainers.StochasticDualCoordinateAscentRegressor",
135135
Desc = SdcaRegressionTrainer.Summary,
136136
Remarks = SdcaRegressionTrainer.Remarks,
137-
UserName = SdcaRegressionTrainer.UserNameValue,
137+
UserName = SdcaRegressionTrainer.UserNameValue,
138138
ShortName = SdcaRegressionTrainer.ShortName)]
139139
public static CommonOutputs.RegressionOutput TrainRegression(IHostEnvironment env, SdcaRegressionTrainer.Arguments input)
140140
{

src/Microsoft.ML.Transforms/BootstrapSampleTransform.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ public BootstrapSampleTransform(IHostEnvironment env, Arguments args, IDataView
9292
/// <param name="seed">The random seed. If unspecified random state will be instead derived from the environment.</param>
9393
/// <param name="shuffleInput">Whether we should attempt to shuffle the source data. By default on, but can be turned off for efficiency.</param>
9494
/// <param name="poolSize">When shuffling the output, the number of output rows to keep in that pool. Note that shuffling of output is completely distinct from shuffling of input.</param>
95-
public BootstrapSampleTransform(IHostEnvironment env,
96-
IDataView input,
97-
bool complement = Defaults.Complement,
98-
uint? seed = null,
99-
bool shuffleInput = Defaults.ShuffleInput,
95+
public BootstrapSampleTransform(IHostEnvironment env,
96+
IDataView input,
97+
bool complement = Defaults.Complement,
98+
uint? seed = null,
99+
bool shuffleInput = Defaults.ShuffleInput,
100100
int poolSize = Defaults.PoolSize)
101101
: this(env, new Arguments() { Complement = complement, Seed = seed, ShuffleInput = shuffleInput, PoolSize = poolSize }, input)
102102
{

0 commit comments

Comments
 (0)