forked from dotnet/machinelearning
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed model saving and loading of OneVersusAllTrainer to include Soft…
…Max (dotnet#4472) * Fixed model saving and loading of OneVersusAllTrainer to include SoftMax * Modified existing test to include SoftMax option * Modified test to verify both cases: when UseSoftmax is true and false
- Loading branch information
Showing
3 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
test/Microsoft.ML.TestFramework/Attributes/LightGBMTheoryAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// 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 System; | ||
using System.Runtime.InteropServices; | ||
using Microsoft.ML.TestFrameworkCommon.Attributes; | ||
|
||
namespace Microsoft.ML.TestFramework.Attributes | ||
{ | ||
/// <summary> | ||
/// A theory for tests requiring LightGBM. | ||
/// </summary> | ||
public sealed class LightGBMTheoryAttribute : EnvironmentSpecificTheoryAttribute | ||
{ | ||
public LightGBMTheoryAttribute() : base("LightGBM is 64-bit only") | ||
{ | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override bool IsEnvironmentSupported() | ||
{ | ||
return Environment.Is64BitProcess; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters