-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Upgrade all regressors to use TT #3319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
4020dfd
Add Gam simple samples
wschin 746e323
Add advanced Gam samples back
wschin 2a696f0
Update FastForest samples
wschin c3da068
Remove items added by accident
wschin 4bb7f85
Update FastTree
wschin d8c48f4
Replace tab with spaces
wschin 8083107
Rename advanced sample files
wschin 21c4876
Update LightGbm
wschin c6d6b18
Add FastTreeTweedie and fix format
wschin 6864142
Rename two files
wschin 9c246d1
Update OLS and fix build
wschin 3cfe768
Fix csproj
wschin 06f67b7
Upgrade SDCA
wschin e64a6df
Merge branch 'master' into tt-reg
wschin 6721259
Add missing links to docs
wschin 02eea47
Add spaces back
wschin 53a2beb
Reduce test set's size
wschin 29b556d
Move class comment to example()
wschin 775c3b6
Fix LightGBM nuget reference
wschin 5ef7b7b
Fix some comments
wschin 8364916
Address comments
wschin 6e038f1
Avoid local function in ttinclude
wschin 952ee58
Rename sample files
wschin 8e6386c
Update file names
wschin efe91ed
Update OGD doc strings
wschin 04c99cf
Merge branch 'master' into tt-reg
wschin aadb4ff
Fix csproj
wschin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Regression/FastForest.tt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<#@ include file="RegressionSamplesTemplate.ttinclude"#> | ||
|
||
<#+ | ||
string ClassHeader = @"// This example requires installation of additional NuGet package | ||
// <a href=""https://www.nuget.org/packages/Microsoft.ML.FastTree/"">Microsoft.ML.FastTree</a>. "; | ||
|
||
string ClassName="FastForestRegression"; | ||
string ExtraUsing = null; | ||
string Trainer = @"FastForest(labelColumnName: nameof(DataPoint.Label), featureColumnName: nameof(DataPoint.Features))"; | ||
string TrainerOptions = null; | ||
|
||
string ExpectedOutputPerInstance= @"// Expected output: | ||
// Label: 0.985, Prediction: 0.864 | ||
// Label: 0.155, Prediction: 0.164 | ||
// Label: 0.515, Prediction: 0.470 | ||
// Label: 0.566, Prediction: 0.501 | ||
// Label: 0.096, Prediction: 0.138"; | ||
|
||
string ExpectedOutput = @"// Expected output: | ||
// Mean Absolute Error: 0.06 | ||
// Mean Squared Error: 0.00 | ||
// Root Mean Squared Error: 0.07 | ||
// RSquared: 0.96 (closer to 1 is better. The worest case is 0)"; | ||
#> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
docs/samples/Microsoft.ML.Samples/Dynamic/Trainers/Regression/FastForestWithOptions.tt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<#@ include file="RegressionSamplesTemplate.ttinclude"#> | ||
|
||
<#+ | ||
string ClassHeader = @"// This example requires installation of additional NuGet package | ||
// <a href=""https://www.nuget.org/packages/Microsoft.ML.FastTree/"">Microsoft.ML.FastTree</a>. "; | ||
|
||
string ClassName="FastForestWithOptionsRegression"; | ||
string ExtraUsing = "using Microsoft.ML.Trainers.FastTree;"; | ||
string Trainer = @"FastForest"; | ||
string TrainerOptions = @"FastForestRegressionTrainer.Options | ||
{ | ||
LabelColumnName = nameof(DataPoint.Label), | ||
FeatureColumnName = nameof(DataPoint.Features), | ||
// Only use 80% of features to reduce over-fitting. | ||
FeatureFraction = 0.8, | ||
// Create a simpler model by penalizing usage of new features. | ||
FeatureFirstUsePenalty = 0.1, | ||
// Reduce the number of trees to 50. | ||
NumberOfTrees = 50 | ||
}"; | ||
|
||
string ExpectedOutputPerInstance= @"// Expected output: | ||
// Label: 0.985, Prediction: 0.866 | ||
// Label: 0.155, Prediction: 0.171 | ||
// Label: 0.515, Prediction: 0.470 | ||
// Label: 0.566, Prediction: 0.476 | ||
// Label: 0.096, Prediction: 0.140"; | ||
|
||
string ExpectedOutput = @"// Expected output: | ||
// Mean Absolute Error: 0.06 | ||
// Mean Squared Error: 0.01 | ||
// Root Mean Squared Error: 0.07 | ||
// RSquared: 0.95 (closer to 1 is better. The worest case is 0)"; | ||
#> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great idea, on putting on comments. #Resolved