Skip to content

Commit 941d9fc

Browse files
authored
Merge pull request #2067 from shauheen/release/v09rc2
Update release for 0.9
2 parents c6b1612 + 30dd0c2 commit 941d9fc

File tree

303 files changed

+6965
-34300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+6965
-34300
lines changed

Microsoft.ML.sln

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.StandardLearne
2323
EndProject
2424
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.Transforms", "src\Microsoft.ML.Transforms\Microsoft.ML.Transforms.csproj", "{2911A286-ECA4-4730-97A9-DA1FEE2DED97}"
2525
EndProject
26-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.Legacy", "src\Microsoft.ML.Legacy\Microsoft.ML.Legacy.csproj", "{7288C084-11C0-43BE-AC7F-45DCFEAEEBF6}"
27-
EndProject
2826
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.KMeansClustering", "src\Microsoft.ML.KMeansClustering\Microsoft.ML.KMeansClustering.csproj", "{F1CAE3AB-4F86-4BC0-BBA8-C4A58E7E8A4A}"
2927
EndProject
3028
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.PCA", "src\Microsoft.ML.PCA\Microsoft.ML.PCA.csproj", "{58E06735-1129-4DD5-86E0-6BBFF049AAD9}"
@@ -147,7 +145,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.HalLearners.St
147145
EndProject
148146
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.OnnxTransform.StaticPipe", "src\Microsoft.ML.OnnxTransform.StaticPipe\Microsoft.ML.OnnxTransform.StaticPipe.csproj", "{D1324668-9568-40F4-AA55-30A9A516C230}"
149147
EndProject
150-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.ML.LightGBM.StaticPipe", "src\Microsoft.ML.LightGBM.StaticPipe\Microsoft.ML.LightGBM.StaticPipe.csproj", "{22C51B08-ACAE-47B2-A312-462DC239A23B}"
148+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.LightGBM.StaticPipe", "src\Microsoft.ML.LightGBM.StaticPipe\Microsoft.ML.LightGBM.StaticPipe.csproj", "{22C51B08-ACAE-47B2-A312-462DC239A23B}"
151149
EndProject
152150
Global
153151
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -213,14 +211,6 @@ Global
213211
{2911A286-ECA4-4730-97A9-DA1FEE2DED97}.Release|Any CPU.Build.0 = Release|Any CPU
214212
{2911A286-ECA4-4730-97A9-DA1FEE2DED97}.Release-Intrinsics|Any CPU.ActiveCfg = Release-Intrinsics|Any CPU
215213
{2911A286-ECA4-4730-97A9-DA1FEE2DED97}.Release-Intrinsics|Any CPU.Build.0 = Release-Intrinsics|Any CPU
216-
{7288C084-11C0-43BE-AC7F-45DCFEAEEBF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
217-
{7288C084-11C0-43BE-AC7F-45DCFEAEEBF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
218-
{7288C084-11C0-43BE-AC7F-45DCFEAEEBF6}.Debug-Intrinsics|Any CPU.ActiveCfg = Debug-Intrinsics|Any CPU
219-
{7288C084-11C0-43BE-AC7F-45DCFEAEEBF6}.Debug-Intrinsics|Any CPU.Build.0 = Debug-Intrinsics|Any CPU
220-
{7288C084-11C0-43BE-AC7F-45DCFEAEEBF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
221-
{7288C084-11C0-43BE-AC7F-45DCFEAEEBF6}.Release|Any CPU.Build.0 = Release|Any CPU
222-
{7288C084-11C0-43BE-AC7F-45DCFEAEEBF6}.Release-Intrinsics|Any CPU.ActiveCfg = Release-Intrinsics|Any CPU
223-
{7288C084-11C0-43BE-AC7F-45DCFEAEEBF6}.Release-Intrinsics|Any CPU.Build.0 = Release-Intrinsics|Any CPU
224214
{F1CAE3AB-4F86-4BC0-BBA8-C4A58E7E8A4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
225215
{F1CAE3AB-4F86-4BC0-BBA8-C4A58E7E8A4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
226216
{F1CAE3AB-4F86-4BC0-BBA8-C4A58E7E8A4A}.Debug-Intrinsics|Any CPU.ActiveCfg = Debug-Intrinsics|Any CPU
@@ -593,7 +583,6 @@ Global
593583
{65D0603E-B96C-4DFC-BDD1-705891B88C18} = {09EADF06-BE25-4228-AB53-95AE3E15B530}
594584
{707BB22C-7E5F-497A-8C2F-74578F675705} = {09EADF06-BE25-4228-AB53-95AE3E15B530}
595585
{2911A286-ECA4-4730-97A9-DA1FEE2DED97} = {09EADF06-BE25-4228-AB53-95AE3E15B530}
596-
{7288C084-11C0-43BE-AC7F-45DCFEAEEBF6} = {09EADF06-BE25-4228-AB53-95AE3E15B530}
597586
{F1CAE3AB-4F86-4BC0-BBA8-C4A58E7E8A4A} = {09EADF06-BE25-4228-AB53-95AE3E15B530}
598587
{58E06735-1129-4DD5-86E0-6BBFF049AAD9} = {09EADF06-BE25-4228-AB53-95AE3E15B530}
599588
{64BC22D3-1E76-41EF-94D8-C79E471FF2DD} = {AED9C836-31E3-4F3F-8ABC-929555D3F3C4}

build/Dependencies.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<PropertyGroup>
1616
<GoogleProtobufPackageVersion>3.5.1</GoogleProtobufPackageVersion>
1717
<LightGBMPackageVersion>2.2.1.1</LightGBMPackageVersion>
18-
<MicrosoftMLOnnxRuntimePackageVersion>0.1.5</MicrosoftMLOnnxRuntimePackageVersion>
18+
<MicrosoftMLOnnxRuntimeGpuPackageVersion>0.1.5</MicrosoftMLOnnxRuntimeGpuPackageVersion>
1919
<MlNetMklDepsPackageVersion>0.0.0.7</MlNetMklDepsPackageVersion>
2020
<ParquetDotNetPackageVersion>2.1.3</ParquetDotNetPackageVersion>
2121
<SystemDrawingCommonPackageVersion>4.5.0</SystemDrawingCommonPackageVersion>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# ML.NET 0.9 Release Notes
2+
3+
Welcome to 2019! For the past 9 months we have been adding features and improving [ML.NET](https://aka.ms/mlnet). In the forthcoming 0.10, 0.11, and 0.12 releases before we reach 1.0, we will focus on the overall stability of the package, continue to refine the API, increase test coverage and improve documentation. 0.9 release packs multiple fixes as well as significant clean up to the internal code of the package.
4+
5+
### Installation
6+
7+
ML.NET supports Windows, MacOS, and Linux. See [supported OS versions of .NET
8+
Core
9+
2.0](https://github.com/dotnet/core/blob/master/release-notes/2.0/2.0-supported-os.md)
10+
for more details.
11+
12+
You can install ML.NET NuGet from the CLI using:
13+
```
14+
dotnet add package Microsoft.ML
15+
```
16+
17+
From package manager:
18+
```
19+
Install-Package Microsoft.ML
20+
```
21+
22+
### Release Notes
23+
24+
Below are a few of the highlights from this release. There are many other improvements in the API.
25+
26+
* Added Feature Contribution Calculation
27+
([#1847](https://github.com/dotnet/machinelearning/pull/1847))
28+
29+
* FCC can be used to compute feature contributions in addition to the overall prediction when models are evaluated.
30+
31+
* Removed Legacy namespace that was marked obsolete
32+
([#2043](https://github.com/dotnet/machinelearning/pull/2043))
33+
34+
* GPU support for ONNX Transform
35+
([#1922](https://github.com/dotnet/machinelearning/pull/1922))
36+
37+
* GPU is currently supported on 64 bit Windows
38+
* Cross platform support is still being developed for this feature
39+
40+
* `Permutation Feature Importance` now supports confidence intervals
41+
([#1844](https://github.com/dotnet/machinelearning/pull/1844))
42+
43+
* Introducing `PredictionEngine` instead of `PredictionFunction`
44+
([#1920](https://github.com/dotnet/machinelearning/pull/1920))
45+
46+
### Acknowledgements
47+
48+
Shoutout to [dhilmathy](https://github.com/dhilmathy),
49+
[mnboos](https://github.com/mnboos),
50+
[robosek](https://github.com/robosek), and the [ML.NET](https://aka.ms/mlnet) team for their
51+
contributions as part of this release!

docs/samples/Microsoft.ML.Samples/Dynamic/FeatureContributionCalculationTransform.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class FeatureContributionCalculationTransform_RegressionExample
88
public static void FeatureContributionCalculationTransform_Regression()
99
{
1010
// Downloading the dataset from github.com/dotnet/machinelearning.
11-
// This will create a sentiment.tsv file in the filesystem.
11+
// This will create a housing.txt file in the filesystem.
1212
// You can open this file, if you want to see the data.
1313
string dataFile = SamplesUtils.DatasetUtils.DownloadHousingRegressionDataset();
1414

@@ -59,20 +59,20 @@ public static void FeatureContributionCalculationTransform_Regression()
5959
// Create a Feature Contribution Calculator
6060
// Calculate the feature contributions for all features given trained model parameters
6161
// And don't normalize the contribution scores
62-
var featureContributionCalculator = mlContext.Model.Explainability.FeatureContributionCalculation(model.Model, model.FeatureColumn, top: 11, normalize: false);
62+
var featureContributionCalculator = mlContext.Model.Explainability.FeatureContributionCalculation(model.Model, model.FeatureColumn, numPositiveContributions: 11, normalize: false);
6363
var outputData = featureContributionCalculator.Fit(scoredData).Transform(scoredData);
6464

6565
// FeatureContributionCalculatingEstimator can be use as an intermediary step in a pipeline.
6666
// The features retained by FeatureContributionCalculatingEstimator will be in the FeatureContribution column.
67-
var pipeline = mlContext.Model.Explainability.FeatureContributionCalculation(model.Model, model.FeatureColumn, top: 11)
67+
var pipeline = mlContext.Model.Explainability.FeatureContributionCalculation(model.Model, model.FeatureColumn, numPositiveContributions: 11)
6868
.Append(mlContext.Regression.Trainers.OrdinaryLeastSquares(featureColumn: "FeatureContributions"));
6969
var outData = featureContributionCalculator.Fit(scoredData).Transform(scoredData);
7070

7171
// Let's extract the weights from the linear model to use as a comparison
7272
var weights = new VBuffer<float>();
7373
model.Model.GetFeatureWeights(ref weights);
7474

75-
// Let's now walk through the first ten reconds and see which feature drove the values the most
75+
// Let's now walk through the first ten records and see which feature drove the values the most
7676
// Get prediction scores and contributions
7777
var scoringEnumerator = outputData.AsEnumerable<HousingRegressionScoreAndContribution>(mlContext, true).GetEnumerator();
7878
int index = 0;

docs/samples/Microsoft.ML.Samples/Static/AveragedPerceptronBinaryClassification.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void AveragedPerceptronBinaryClassification()
3333
var mlContext = new MLContext();
3434

3535
// Creating Data Reader with the initial schema based on the format of the data
36-
var reader = TextLoader.CreateReader(
36+
var reader = TextLoaderStatic.CreateReader(
3737
mlContext,
3838
c => (
3939
Age: c.LoadFloat(0),

docs/samples/Microsoft.ML.Samples/Static/FastTreeBinaryClassification.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void FastTreeBinaryClassification()
3333
var mlContext = new MLContext();
3434

3535
// Creating Data Reader with the initial schema based on the format of the data
36-
var reader = TextLoader.CreateReader(
36+
var reader = TextLoaderStatic.CreateReader(
3737
mlContext,
3838
c => (
3939
Age: c.LoadFloat(0),

docs/samples/Microsoft.ML.Samples/Static/FastTreeRegression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static void FastTreeRegression()
2020
var mlContext = new MLContext();
2121

2222
// Creating a data reader, based on the format of the data
23-
var reader = TextLoader.CreateReader(mlContext, c => (
23+
var reader = TextLoaderStatic.CreateReader(mlContext, c => (
2424
label: c.LoadFloat(0),
2525
features: c.LoadFloat(1, 6)
2626
),

docs/samples/Microsoft.ML.Samples/Static/FeatureSelectionTransform.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void FeatureSelectionTransform()
3131

3232
// First, we define the reader: specify the data columns and where to find them in the text file. Notice that we combine entries from
3333
// all the feature columns into entries of a vector of a single column named "Features".
34-
var reader = TextLoader.CreateReader(ml, c => (
34+
var reader = TextLoaderStatic.CreateReader(ml, c => (
3535
Label: c.LoadBool(0),
3636
Features: c.LoadFloat(1, 9)
3737
),

docs/samples/Microsoft.ML.Samples/Static/LightGBMBinaryClassification.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void LightGbmBinaryClassification()
3434
var mlContext = new MLContext();
3535

3636
// Creating Data Reader with the initial schema based on the format of the data
37-
var reader = TextLoader.CreateReader(
37+
var reader = TextLoaderStatic.CreateReader(
3838
mlContext,
3939
c => (
4040
Age: c.LoadFloat(0),

docs/samples/Microsoft.ML.Samples/Static/LightGBMRegression.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using Microsoft.ML.Data;
33
using Microsoft.ML.LightGBM;
44
using Microsoft.ML.LightGBM.StaticPipe;
5+
using Microsoft.ML.StaticPipe;
56

67
namespace Microsoft.ML.Samples.Static
78
{
@@ -19,7 +20,7 @@ public static void LightGbmRegression()
1920
var mlContext = new MLContext();
2021

2122
// Creating a data reader, based on the format of the data
22-
var reader = TextLoader.CreateReader(mlContext, c => (
23+
var reader = TextLoaderStatic.CreateReader(mlContext, c => (
2324
label: c.LoadFloat(0),
2425
features: c.LoadFloat(1, 6)
2526
),

0 commit comments

Comments
 (0)