Skip to content

Commit 12e6298

Browse files
joshua-lightTomFinley
authored andcommitted
Fixed all typos in word Transform. (#463)
* Fixed all typos in word `Transform`.
1 parent f7d89f9 commit 12e6298

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

src/Microsoft.ML.PipelineInference/RecipeInference.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,15 @@ public abstract class Recipe
157157
public virtual List<Type> AllowedPredictorTypes() => MacroUtils.PredictorTypes.ToList();
158158

159159
protected virtual TransformInference.SuggestedTransform[] GetSuggestedTransforms(
160-
TransformInference.InferenceResult tranformInferenceResult, Type predictorType)
160+
TransformInference.InferenceResult transformInferenceResult, Type predictorType)
161161
{
162162
List<Type> allowedTransforms = AllowedTransforms();
163163
List<Type> qualifierTransforms = QualifierTransforms();
164164

165165
if (AllowedPredictorTypes().Any(type => type == predictorType) &&
166-
tranformInferenceResult.SuggestedTransforms.Any(transform => qualifierTransforms.Contains(transform.ExpertType)))
166+
transformInferenceResult.SuggestedTransforms.Any(transform => qualifierTransforms.Contains(transform.ExpertType)))
167167
{
168-
return tranformInferenceResult.SuggestedTransforms
168+
return transformInferenceResult.SuggestedTransforms
169169
.Where(transform => allowedTransforms.Contains(transform.ExpertType) || qualifierTransforms.Contains(transform.ExpertType))
170170
.ToArray();
171171
}
@@ -174,10 +174,10 @@ protected virtual TransformInference.SuggestedTransform[] GetSuggestedTransforms
174174
}
175175

176176
public virtual IEnumerable<SuggestedRecipe> Apply(
177-
TransformInference.InferenceResult tranformInferenceResult, Type predictorType, IChannel ch)
177+
TransformInference.InferenceResult transformInferenceResult, Type predictorType, IChannel ch)
178178
{
179179
TransformInference.SuggestedTransform[] transforms = GetSuggestedTransforms(
180-
tranformInferenceResult, predictorType);
180+
transformInferenceResult, predictorType);
181181

182182
if (transforms?.Length > 0)
183183
{
@@ -431,7 +431,7 @@ public static SuggestedRecipe[] InferRecipesFromData(IHostEnvironment env, strin
431431
}
432432
}
433433

434-
public static InferenceResult InferRecipes(IHostEnvironment env, TransformInference.InferenceResult tranformInferenceResult,
434+
public static InferenceResult InferRecipes(IHostEnvironment env, TransformInference.InferenceResult transformInferenceResult,
435435
Type predictorType)
436436
{
437437
Contracts.CheckValue(env, nameof(env));
@@ -441,7 +441,7 @@ public static InferenceResult InferRecipes(IHostEnvironment env, TransformInfere
441441
{
442442
var list = new List<SuggestedRecipe>();
443443
foreach (var recipe in GetRecipes())
444-
list.AddRange(recipe.Apply(tranformInferenceResult, predictorType, ch));
444+
list.AddRange(recipe.Apply(transformInferenceResult, predictorType, ch));
445445

446446
if (list.Count == 0)
447447
ch.Info("No recipes are needed for the data.");

src/Microsoft.ML.PipelineInference/TransformInference.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ public static StringBuilder GetTextTransformBigramTriCharArgument(string columnN
792792
}
793793

794794
public static SuggestedTransform ConcatColumnsIntoOne(List<string> columnNames, string concatColumnName,
795-
Type tranformType, bool isNumeric)
795+
Type transformType, bool isNumeric)
796796
{
797797
StringBuilder columnArgument = new StringBuilder();
798798
StringBuilder columnNameQuoted = new StringBuilder();
@@ -843,10 +843,10 @@ public static SuggestedTransform ConcatColumnsIntoOne(List<string> columnNames,
843843
new SuggestedTransform(
844844
$"Concatenate {columnsToConcat} columns into column {concatColumnName}",
845845
new SubComponent<IDataTransform, SignatureDataTransform>("Concat",
846-
new[] { arguments }), tranformType, new TransformPipelineNode(epInput), -1, routingStructure);
846+
new[] { arguments }), transformType, new TransformPipelineNode(epInput), -1, routingStructure);
847847
}
848848

849-
public static SuggestedTransform TextTransformUnigramTriChar(string srcColumn, string dstColumn, string arg, Type tranformType)
849+
public static SuggestedTransform TextTransformUnigramTriChar(string srcColumn, string dstColumn, string arg, Type transformType)
850850
{
851851
StringBuilder columnArgument = InferenceHelpers.GetTextTransformUnigramTriCharArgument(srcColumn, dstColumn);
852852

@@ -862,10 +862,10 @@ public static SuggestedTransform TextTransformUnigramTriChar(string srcColumn, s
862862
};
863863

864864
return TextTransform(srcColumn, dstColumn, columnArgument.ToString(), "Unigram plus Trichar",
865-
tranformType, new TransformPipelineNode(nodeInput));
865+
transformType, new TransformPipelineNode(nodeInput));
866866
}
867867

868-
public static SuggestedTransform TextTransformBigramTriChar(string srcColumn, string dstColumn, string arg, Type tranformType)
868+
public static SuggestedTransform TextTransformBigramTriChar(string srcColumn, string dstColumn, string arg, Type transformType)
869869
{
870870
StringBuilder columnArgument = InferenceHelpers.GetTextTransformBigramTriCharArgument(srcColumn, dstColumn);
871871

@@ -880,11 +880,11 @@ public static SuggestedTransform TextTransformBigramTriChar(string srcColumn, st
880880
};
881881

882882
return TextTransform(srcColumn, dstColumn, columnArgument.ToString(), "Bigram plus Trichar",
883-
tranformType, new TransformPipelineNode(nodeInput));
883+
transformType, new TransformPipelineNode(nodeInput));
884884
}
885885

886886
public static SuggestedTransform TextTransform(string srcColumn, string dstColumn, string arg,
887-
string outputMsg, Type tranformType, TransformPipelineNode pipelineNode)
887+
string outputMsg, Type transformType, TransformPipelineNode pipelineNode)
888888
{
889889
ColumnRoutingStructure.AnnotatedName[] columnsSource =
890890
{ new ColumnRoutingStructure.AnnotatedName { IsNumeric = false, Name = srcColumn } };
@@ -898,7 +898,7 @@ public static SuggestedTransform TextTransform(string srcColumn, string dstColum
898898
") for column '{0}' and output to column '{1}'",
899899
srcColumn, dstColumn),
900900
new SubComponent<IDataTransform, SignatureDataTransform>("Text", arg),
901-
tranformType, pipelineNode, -1, routingStructure);
901+
transformType, pipelineNode, -1, routingStructure);
902902
}
903903
}
904904

src/Microsoft.ML.Transforms/CategoricalTransform.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static IDataTransform CreateTransformCore(
186186
Contracts.CheckValue(columnOutputKinds, nameof(columnOutputKinds));
187187
Contracts.CheckParam(columns.Length == columnOutputKinds.Count, nameof(columns));
188188

189-
using (var ch = h.Start("Create Tranform Core"))
189+
using (var ch = h.Start("Create Transform Core"))
190190
{
191191
// Create the KeyToVectorTransform, if needed.
192192
List<KeyToVectorTransform.Column> cols = new List<KeyToVectorTransform.Column>();

src/Microsoft.ML/ILearningPipelineItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public interface ILearningPipelineLoader : ILearningPipelineItem
3232

3333
/// <summary>
3434
/// An item that can be added to the Learning Pipeline that can be trained and or return a IDataView.
35-
/// This encapsulates an IDataView(input) and ITranformModel(output) object for a transform and
35+
/// This encapsulates an IDataView(input) and ITransformModel(output) object for a transform and
3636
/// for a learner it will encapsulate IDataView(input) and IPredictorModel(output).
3737
/// </summary>
3838
public interface ILearningPipelineStep

0 commit comments

Comments
 (0)