Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jwood803 committed Sep 1, 2019
1 parent 8c78260 commit e3c33bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions MLNetExamples/DatabaseLoader/DatabaseLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="2.2.0" />
<PackageReference Include="Microsoft.ML" Version="1.3.1" />
<PackageReference Include="Microsoft.ML.Experimental" Version="0.15.1" />
<PackageReference Include="Microsoft.ML" Version="1.4.0-preview" />
<PackageReference Include="Microsoft.ML.Experimental" Version="0.16.0-preview" />
<PackageReference Include="System.Data.SqlClient" Version="4.6.1" />
</ItemGroup>

Expand Down
3 changes: 2 additions & 1 deletion MLNetExamples/TransferLearning/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ static void Main(string[] args)
var metrics = context.MulticlassClassification.Evaluate(evalPredictions, labelColumnName: "LabelKey",
predictedLabelColumnName: "PredictedLabel");

// Log loss should be close to 0 for accurate predictions
Console.WriteLine($"Log Loss - {metrics.LogLoss}");
Console.WriteLine($"Per class Log Loss - {metrics.PerClassLogLoss}");
Console.WriteLine($"Per class Log Loss - {String.Join(',', metrics.PerClassLogLoss.Select(l => l.ToString())}");

// Predict batch
Console.WriteLine("\n------------Batch predictions-----------------");
Expand Down
6 changes: 3 additions & 3 deletions MLNetExamples/TransferLearning/TransferLearning.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
<None Update="labels.csv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="model\imagenet_comp_graph_label_strings.txt">
<None Update="images\sunflower.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="model\tensorflow_inception_graph.pb">
<None Update="model\imagenet_comp_graph_label_strings.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="images\sunflower.jpg">
<None Update="model\tensorflow_inception_graph.pb">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
Expand Down

0 comments on commit e3c33bc

Please sign in to comment.