Skip to content
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

Refactored scenario tests (issue #32) #52

Merged
merged 5 commits into from May 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -2,14 +2,17 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Microsoft.ML.Models;
using Microsoft.ML.Runtime.Api;
using Microsoft.ML.TestFramework;
using Microsoft.ML.Trainers;
using Microsoft.ML.Transforms;
using Xunit;
using Xunit.Abstractions;

namespace Microsoft.ML.Scenarios
{
public partial class Top5Scenarios : BaseTestClass
public partial class ScenariosTests : BaseTestClass
{
/*
A real-estate firm Contoso wants to add a house price prediction to their ASP.NET/Xamarin application.
Expand Down Expand Up @@ -121,7 +124,7 @@ public class HousePricePrediction
public float Price;
}

public Top5Scenarios(ITestOutputHelper output) : base(output)
public ScenariosTests(ITestOutputHelper output) : base(output)
{
}
}
Expand Down
@@ -1,15 +1,18 @@
// Licensed to the .NET Foundation under one or more agreements.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Microsoft.ML.Models;
using Microsoft.ML.Runtime.Api;
using Microsoft.ML.TestFramework;
using Microsoft.ML.Trainers;
using Microsoft.ML.Transforms;
using Xunit;
using Xunit.Abstractions;

namespace Microsoft.ML.Scenarios
{
public partial class Top5Scenarios
public partial class ScenariosTests
{
[Fact(Skip = "Missing data set. See https://github.com/dotnet/machinelearning/issues/3")]
public void TrainAndPredictHousePriceModelTest()
Expand Down Expand Up @@ -70,4 +73,3 @@ public void TrainAndPredictHousePriceModelTest()
}
}
}

Expand Up @@ -10,7 +10,7 @@

namespace Microsoft.ML.Scenarios
{
public partial class Top5Scenarios
public partial class ScenariosTests
{
[Fact]
public void TrainAndPredictIrisModelTest()
Expand Down
Expand Up @@ -13,7 +13,7 @@

namespace Microsoft.ML.Scenarios
{
public partial class Top5Scenarios
public partial class ScenariosTests
{
public const string SentimentDataPath = "wikipedia-detox-250-line-data.tsv";
public const string SentimentTestPath = "wikipedia-detox-250-line-test.tsv";
Expand Down