Skip to content

Commit 81b04c9

Browse files
authored
Fix FastTree regression samples (#4573)
1 parent b1a05c0 commit 81b04c9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Regression/FastTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void Example()
2727
var trainingData = mlContext.Data.LoadFromEnumerable(dataPoints);
2828

2929
// Define the trainer.
30-
var pipeline = mlContext.Regression.Trainers.FastForest(
30+
var pipeline = mlContext.Regression.Trainers.FastTree(
3131
labelColumnName: nameof(DataPoint.Label),
3232
featureColumnName: nameof(DataPoint.Features));
3333

docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Regression/FastTree.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ string ClassHeader = @"// This example requires installation of additional NuGet
77

88
string ClassName="FastTreeRegression";
99
string ExtraUsing = null;
10-
string Trainer = @"FastForest(
10+
string Trainer = @"FastTree(
1111
labelColumnName: nameof(DataPoint.Label),
1212
featureColumnName: nameof(DataPoint.Features))";
1313
string TrainerOptions = null;

docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Regression/FastTreeTweedie.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void Example()
2727
var trainingData = mlContext.Data.LoadFromEnumerable(dataPoints);
2828

2929
// Define the trainer.
30-
var pipeline = mlContext.Regression.Trainers.FastForest(
30+
var pipeline = mlContext.Regression.Trainers.FastTreeTweedie(
3131
labelColumnName: nameof(DataPoint.Label),
3232
featureColumnName: nameof(DataPoint.Features));
3333

docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Regression/FastTreeTweedie.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ string ClassHeader = @"// This example requires installation of additional NuGet
77

88
string ClassName="FastTreeTweedieRegression";
99
string ExtraUsing = null;
10-
string Trainer = @"FastForest(
10+
string Trainer = @"FastTreeTweedie(
1111
labelColumnName: nameof(DataPoint.Label),
1212
featureColumnName: nameof(DataPoint.Features))";
1313
string TrainerOptions = null;

0 commit comments

Comments
 (0)