Skip to content

Commit ed43327

Browse files
authored
[AutoML] take dependency on a specific ml.net version (#3610)
* take dependency on a specific ml.net version * catch up to spelling fix for OptimizationTolerance
1 parent b274f1e commit ed43327

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

Microsoft.ML.AutoML.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 15
33
VisualStudioVersion = 15.0.28010.2050
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.AutML", "src\Microsoft.ML.AutoML\Microsoft.ML.AutoML.csproj", "{B3727729-3DF8-47E0-8710-9B41DAF55817}"
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.AutoML", "src\Microsoft.ML.AutoML\Microsoft.ML.AutoML.csproj", "{B3727729-3DF8-47E0-8710-9B41DAF55817}"
66
EndProject
77
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.ML.AutoML.Tests", "test\Microsoft.ML.AutoML.Tests\Microsoft.ML.AutoML.Tests.csproj", "{55ACB7E2-053D-43BB-88E8-0E102FBD62F0}"
88
EndProject

nuget.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="DotNetMyGet" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" protocolVersion="3" />
5+
</packageSources>
6+
</configuration>

src/Microsoft.ML.AutoML/Microsoft.ML.AutoML.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
<IncludeInPackage>Microsoft.ML.AutoML</IncludeInPackage>
1010
</PropertyGroup>
1111

12+
<PropertyGroup>
13+
<MlDotNetPackageVersion>1.0.0-preview-27625-16</MlDotNetPackageVersion>
14+
</PropertyGroup>
15+
1216
<ItemGroup>
13-
<PackageReference Include="Microsoft.ML" Version="1.0.0-preview" />
14-
<PackageReference Include="Microsoft.ML.LightGBM" Version="1.0.0-preview" />
15-
<PackageReference Include="Microsoft.ML.Mkl.Components" Version="1.0.0-preview" />
17+
<PackageReference Include="Microsoft.ML" Version="$(MlDotNetPackageVersion)" />
18+
<PackageReference Include="Microsoft.ML.LightGBM" Version="$(MlDotNetPackageVersion)" />
19+
<PackageReference Include="Microsoft.ML.Mkl.Components" Version="$(MlDotNetPackageVersion)" />
1620
</ItemGroup>
1721

1822
<PropertyGroup>

src/Microsoft.ML.AutoML/TrainerExtensions/SweepableParams.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private static IEnumerable<SweepableParam> BuildLbfgsArgsParams()
5353
return new SweepableParam[] {
5454
new SweepableFloatParam("L2Regularization", 0.0f, 1.0f, numSteps: 4),
5555
new SweepableFloatParam("L1Regularization", 0.0f, 1.0f, numSteps: 4),
56-
new SweepableDiscreteParam("OptmizationTolerance", new object[] { 1e-4f, 1e-7f }),
56+
new SweepableDiscreteParam("OptimizationTolerance", new object[] { 1e-4f, 1e-7f }),
5757
new SweepableDiscreteParam("HistorySize", new object[] { 5, 20, 50 }),
5858
new SweepableLongParam("MaximumNumberOfIterations", 1, int.MaxValue),
5959
new SweepableFloatParam("InitialWeightsDiameter", 0.0f, 1.0f, numSteps: 5),

0 commit comments

Comments
 (0)