Skip to content

Commit 129b47c

Browse files
codemzseerhardt
authored andcommitted
Package FastTree. (#2764)
* Package FastTree. * Add native code to the package and include fasttree nuget instructions in samples.
1 parent 1e234ef commit 129b47c

File tree

9 files changed

+25
-3
lines changed

9 files changed

+25
-3
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ namespace Microsoft.ML.Samples.Dynamic
66
{
77
public static class FastTreeRegression
88
{
9+
// This example requires installation of additional nuget package <a href="https://www.nuget.org/packages/Microsoft.ML.FastTree/">Microsoft.ML.FastTree</a>.
910
public static void Example()
1011
{
1112
// Create a new ML context, for ML.NET operations. It can be used for exception tracking and logging,

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

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ namespace Microsoft.ML.Samples.Static
66
{
77
public class FastTreeBinaryClassificationExample
88
{
9+
// This example requires installation of additional nuget package <a href="https://www.nuget.org/packages/Microsoft.ML.FastTree/">Microsoft.ML.FastTree</a>.
910
public static void FastTreeBinaryClassification()
1011
{
1112
// Downloading a classification dataset from github.com/dotnet/machinelearning.

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

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace Microsoft.ML.Samples.Static
88
{
99
public class FastTreeRegressionExample
1010
{
11+
// This example requires installation of additional nuget package <a href="https://www.nuget.org/packages/Microsoft.ML.FastTree/">Microsoft.ML.FastTree</a>.
1112
public static void FastTreeRegression()
1213
{
1314
// Downloading a regression dataset from github.com/dotnet/machinelearning
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="Pack">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<PackageDescription>ML.NET component for FastTree</PackageDescription>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<ProjectReference Include="../Microsoft.ML/Microsoft.ML.nupkgproj" />
10+
</ItemGroup>
11+
12+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project DefaultTargets="Pack">
2+
3+
<Import Project="Microsoft.ML.FastTree.nupkgproj" />
4+
5+
</Project>

pkg/Microsoft.ML.LightGBM/Microsoft.ML.LightGBM.nupkgproj

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
<ItemGroup>
99
<ProjectReference Include="../Microsoft.ML/Microsoft.ML.nupkgproj" />
10+
<ProjectReference Include="../Microsoft.ML.FastTree/Microsoft.ML.FastTree.nupkgproj" />
1011
<PackageReference Include="LightGBM" Version="$(LightGBMPackageVersion)" />
1112
</ItemGroup>
1213

pkg/Microsoft.ML.StaticPipe/Microsoft.ML.StaticPipe.nupkgproj

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<ProjectReference Include="../Microsoft.ML/Microsoft.ML.nupkgproj" />
1010
<ProjectReference Include="../Microsoft.ML.ImageAnalytics/Microsoft.ML.ImageAnalytics.nupkgproj" />
1111
<ProjectReference Include="../Microsoft.ML.Recommender/Microsoft.ML.Recommender.nupkgproj" />
12+
<ProjectReference Include="../Microsoft.ML.FastTree/Microsoft.ML.FastTree.nupkgproj" />
1213
</ItemGroup>
1314

1415
</Project>

src/Microsoft.ML.FastTree/Microsoft.ML.FastTree.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<IncludeInPackage>Microsoft.ML</IncludeInPackage>
5+
<IncludeInPackage>Microsoft.ML.FastTree</IncludeInPackage>
66
<DefineConstants>$(DefineConstants);USE_FASTTREENATIVE;NO_STORE;CORECLR</DefineConstants>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
88
</PropertyGroup>

src/Native/build.proj

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@
8585
</ItemGroup>
8686

8787
<ItemGroup>
88-
<NativePackageAsset Include="$(NativeAssetsBuiltPath)\$(NativeLibPrefix)FastTreeNative$(NativeLibExtension)"
89-
RelativePath="Microsoft.ML\runtimes\$(PackageRid)\native" />
9088
<NativePackageAsset Include="$(NativeAssetsBuiltPath)\$(NativeLibPrefix)LdaNative$(NativeLibExtension)"
9189
RelativePath="Microsoft.ML\runtimes\$(PackageRid)\native" />
9290
<NativePackageAsset Include="$(NativeAssetsBuiltPath)\$(NativeLibPrefix)FactorizationMachineNative$(NativeLibExtension)"
@@ -97,6 +95,8 @@
9795
RelativePath="Microsoft.ML.Mkl.Redist\runtimes\$(PackageRid)\native" />
9896
<NativePackageAsset Include="$(NativeAssetsBuiltPath)\$(NativeLibPrefix)MatrixFactorizationNative$(NativeLibExtension)"
9997
RelativePath="Microsoft.ML.Recommender\runtimes\$(PackageRid)\native" />
98+
<NativePackageAsset Include="$(NativeAssetsBuiltPath)\$(NativeLibPrefix)FastTreeNative$(NativeLibExtension)"
99+
RelativePath="Microsoft.ML.FastTree\runtimes\$(PackageRid)\native" />
100100
</ItemGroup>
101101

102102
<ItemGroup>

0 commit comments

Comments
 (0)