зеркало из https://github.com/dotnet/infer.git
Use .NET 4.6.2 instead of 4.6.1 (#415)
* QuantileEstimator throws on NaN arguments
This commit is contained in:
Родитель
96a5cd55e3
Коммит
27b37fefe4
|
@ -6,12 +6,12 @@
|
|||
To build from source, you must first clone the repository.
|
||||
Next decide whether you want to use a code editor like Visual Studio (recommended) or the command line.
|
||||
When building, you must select a configuration.
|
||||
All of the Infer.NET libraries target .NET Standard 2.0. Projects that produce executables (including test projects) mostly target .NET Framework 4.6.1, .NET Core 3.1, or both depending on build configuration:
|
||||
All of the Infer.NET libraries target .NET Standard 2.0. Projects that produce executables (including test projects) mostly target .NET Framework 4.6.2, .NET Core 3.1, or both depending on build configuration:
|
||||
|
||||
| Configurations | Targeted Frameworks |
|
||||
|:---|---:|
|
||||
| Debug, Release | both .NET Framework 4.6.1 and .NET Core 3.1 |
|
||||
| DebugFull, ReleaseFull | .NET Framework 4.6.1 only |
|
||||
| Debug, Release | both .NET Framework 4.6.2 and .NET Core 3.1 |
|
||||
| DebugFull, ReleaseFull | .NET Framework 4.6.2 only |
|
||||
| DebugCore, ReleaseCore | .NET Core 3.1 only |
|
||||
|
||||
|
||||
|
@ -76,7 +76,7 @@ There are three test assemblies in the solution:
|
|||
- **TestPublic.dll** in the folder `test/TestPublic`.
|
||||
- **Microsoft.ML.Probabilistic.Learners.Tests.dll** in the folder `test/Learners/LearnersTests`.
|
||||
|
||||
Depending on the build configuration and targeted framework, the assemblies will be located in the `bin/Debug<Core|Full>/<net5.0|net461>` or `bin/Release<Core|Full>/<net5.0|net461>` subdirectories
|
||||
Depending on the build configuration and targeted framework, the assemblies will be located in the `bin/Debug<Core|Full>/<net5.0|net462>` or `bin/Release<Core|Full>/<net5.0|net462>` subdirectories
|
||||
of the test project.
|
||||
|
||||
Runner executes tests in parallel by default. However, some test category must be run
|
||||
|
|
|
@ -29,7 +29,7 @@ and many others.
|
|||
|
||||
## Installing pre-built binaries
|
||||
|
||||
Binaries for Infer.NET are located on [nuget.org](https://www.nuget.org/packages?q=Microsoft.ML.Probabilistic). These binaries are cross-platform and work anywhere that .NET is supported, so there is no need to select your platform. The core packages target .NET Standard 2.0, making them useable from any project that targets .NET framework version 4.6.1 or .NET Core 3.1, as explained at [.NET implementation support](https://docs.microsoft.com/en-us/dotnet/standard/net-standard). You do not need to clone the GitHub repository to use the pre-built binaries.
|
||||
Binaries for Infer.NET are located on [nuget.org](https://www.nuget.org/packages?q=Microsoft.ML.Probabilistic). These binaries are cross-platform and work anywhere that .NET is supported, so there is no need to select your platform. The core packages target .NET Standard 2.0, making them useable from any project that targets .NET framework version 4.6.2 or .NET Core 3.1, as explained at [.NET implementation support](https://docs.microsoft.com/en-us/dotnet/standard/net-standard). You do not need to clone the GitHub repository to use the pre-built binaries.
|
||||
|
||||
There currently are [four maintained Infer.NET nuget packages](https://www.nuget.org/packages?q=Microsoft.ML.Probabilistic):
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ jobs:
|
|||
configuration: '$(Configuration)'
|
||||
|
||||
- script: |
|
||||
test\TestAllCompilerOptions\bin\$(Configuration)\net461\TestAllCompilerOptions.exe
|
||||
test\TestAllCompilerOptions\bin\$(Configuration)\net462\TestAllCompilerOptions.exe
|
||||
displayName: 'Run test'
|
||||
|
||||
# Clean up the process if the script timeout out.
|
||||
|
|
|
@ -39,9 +39,9 @@ cp ../src/Learners/Recommender/${src}/Microsoft.ML.Probabilistic.Learners.Recomm
|
|||
cp ../src/Learners/Recommender/${src}/Microsoft.ML.Probabilistic.Learners.Recommender.pdb ${dst}
|
||||
cp ../src/Learners/Recommender/${src}/Microsoft.ML.Probabilistic.Learners.Recommender.xml ${dst}
|
||||
|
||||
mkdir "${out}/net461"
|
||||
dst="${out}/net461"
|
||||
src="bin/${configuration}/net461"
|
||||
mkdir "${out}/net462"
|
||||
dst="${out}/net462"
|
||||
src="bin/${configuration}/net462"
|
||||
|
||||
cp ../src/Visualizers/Windows/${src}/Microsoft.ML.Probabilistic.Compiler.Visualizers.Windows.dll ${dst}
|
||||
cp ../src/Visualizers/Windows/${src}/Microsoft.ML.Probabilistic.Compiler.Visualizers.Windows.pdb ${dst}
|
||||
|
|
|
@ -14,6 +14,6 @@ steps:
|
|||
inputs:
|
||||
targetType: 'inline'
|
||||
script: ./Evaluator.exe InferNetRunsOnly.xml
|
||||
workingDirectory: ${{ format('src/Learners/Runners/Evaluator/bin/{0}/net461', parameters.Configuration) }}
|
||||
workingDirectory: ${{ format('src/Learners/Runners/Evaluator/bin/{0}/net462', parameters.Configuration) }}
|
||||
displayName: Running Evaluator
|
||||
continueOnError: true
|
|
@ -2,7 +2,7 @@
|
|||
# The .NET Foundation licenses this file to you under the MIT license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
|
||||
# Template for running fast test suite (~30 minutes) using vstest in Windows environment (.NET 4.6.1)
|
||||
# Template for running fast test suite (~30 minutes) using vstest in Windows environment (.NET 4.6.2)
|
||||
|
||||
parameters:
|
||||
Platform: 'x64' # or 'x86' or both
|
||||
|
@ -14,7 +14,7 @@ steps:
|
|||
displayName: Unit tests x64 (sequential)
|
||||
inputs:
|
||||
testSelector: 'testAssemblies'
|
||||
testAssemblyVer2: test/Tests/bin/*/net461/Microsoft.ML.Probabilistic.Tests.dll
|
||||
testAssemblyVer2: test/Tests/bin/*/net462/Microsoft.ML.Probabilistic.Tests.dll
|
||||
testFiltercriteria: '(Platform!=x86)&(((Category=CsoftModel)|(Category=ModifiesGlobals)|(Category=DistributedTests)|(Category=Performance))&(Category!=OpenBug)&(Category!=BadTest)&(Category!=CompilerOptionsTest))'
|
||||
runInParallel: false
|
||||
runSettingsFile: test.runsettings
|
||||
|
@ -23,9 +23,9 @@ steps:
|
|||
inputs:
|
||||
testSelector: 'testAssemblies'
|
||||
testAssemblyVer2: |
|
||||
test/Tests/bin/*/net461/Microsoft.ML.Probabilistic.Tests.dll
|
||||
test/Learners/LearnersTests/bin/*/net461/Microsoft.ML.Probabilistic.Learners.Tests.dll
|
||||
test/TestPublic/bin/*/net461/TestPublic.dll
|
||||
test/Tests/bin/*/net462/Microsoft.ML.Probabilistic.Tests.dll
|
||||
test/Learners/LearnersTests/bin/*/net462/Microsoft.ML.Probabilistic.Learners.Tests.dll
|
||||
test/TestPublic/bin/*/net462/TestPublic.dll
|
||||
testFiltercriteria: '(Platform!=x86)&(Category!=OpenBug)&(Category!=BadTest)&(Category!=CompilerOptionsTest)&(Category!=CsoftModel)&(Category!=ModifiesGlobals)&(Category!=DistributedTest)&(Category!=Performance)'
|
||||
runInParallel: true
|
||||
runSettingsFile: test.runsettings
|
||||
|
@ -35,7 +35,7 @@ steps:
|
|||
displayName: Unit tests x86 (sequential)
|
||||
inputs:
|
||||
testSelector: 'testAssemblies'
|
||||
testAssemblyVer2: test/Tests/bin/*/net461/Microsoft.ML.Probabilistic.Tests.dll
|
||||
testAssemblyVer2: test/Tests/bin/*/net462/Microsoft.ML.Probabilistic.Tests.dll
|
||||
testFiltercriteria: '(Platform!=x64)&(((Category=CsoftModel)|(Category=ModifiesGlobals)|(Category=DistributedTests)|(Category=Performance))&(Category!=OpenBug)&(Category!=BadTest)&(Category!=CompilerOptionsTest))'
|
||||
runInParallel: false
|
||||
runSettingsFile: x86.runsettings
|
||||
|
@ -44,9 +44,9 @@ steps:
|
|||
inputs:
|
||||
testSelector: 'testAssemblies'
|
||||
testAssemblyVer2: |
|
||||
test/Tests/bin/*/net461/Microsoft.ML.Probabilistic.Tests.dll
|
||||
test/Learners/LearnersTests/bin/*/net461/Microsoft.ML.Probabilistic.Learners.Tests.dll
|
||||
test/TestPublic/bin/*/net461/TestPublic.dll
|
||||
test/Tests/bin/*/net462/Microsoft.ML.Probabilistic.Tests.dll
|
||||
test/Learners/LearnersTests/bin/*/net462/Microsoft.ML.Probabilistic.Learners.Tests.dll
|
||||
test/TestPublic/bin/*/net462/TestPublic.dll
|
||||
testFiltercriteria: '(Platform!=x64)&(Category!=OpenBug)&(Category!=BadTest)&(Category!=CompilerOptionsTest)&(Category!=CsoftModel)&(Category!=ModifiesGlobals)&(Category!=DistributedTest)&(Category!=Performance)'
|
||||
runInParallel: true
|
||||
runSettingsFile: x86.runsettings
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -22,7 +22,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0-windows;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0-windows;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -23,7 +23,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0-windows;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0-windows;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Import Project="$(MSBuildThisFileDirectory)..\..\..\build\common.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
|
@ -12,7 +12,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -22,7 +22,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -21,7 +21,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
<Configurations>Debug;DebugFull;DebugCore;Release;ReleaseFull;ReleaseCore</Configurations>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -21,7 +21,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -23,7 +23,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<Import Project="$(MSBuildThisFileDirectory)..\..\..\build\common.props" />
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
<Configurations>Debug;DebugFull;DebugCore;Release;ReleaseFull;ReleaseCore</Configurations>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -23,7 +23,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -22,7 +22,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -28,10 +28,10 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup Condition="'$(IsWindows)'=='true'">
|
||||
<TargetFrameworks>net5.0-windows;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0-windows;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(IsWindows)'!='true'">
|
||||
<TargetFramework>net5.0;net461</TargetFramework>
|
||||
<TargetFramework>net5.0;net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -24,7 +24,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
<!-- No need to generate code twice -->
|
||||
<IgnorePostBuildNetCore>true</IgnorePostBuildNetCore>
|
||||
</PropertyGroup>
|
||||
|
@ -35,7 +35,7 @@
|
|||
<RunPostBuildNetCore Condition="$(IgnorePostBuildNetCore) != 'true'">true</RunPostBuildNetCore>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net462'">
|
||||
<RunPostBuildNetFull>true</RunPostBuildNetFull>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -24,7 +24,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
<!-- No need to generate code twice -->
|
||||
<IgnorePostBuildNetCore>true</IgnorePostBuildNetCore>
|
||||
</PropertyGroup>
|
||||
|
@ -35,7 +35,7 @@
|
|||
<RunPostBuildNetCore Condition="$(IgnorePostBuildNetCore) != 'true'">true</RunPostBuildNetCore>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net461'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'net462'">
|
||||
<RunPostBuildNetFull>true</RunPostBuildNetFull>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -23,7 +23,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -23,7 +23,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -455,6 +455,7 @@ namespace Microsoft.ML.Probabilistic.Distributions
|
|||
CompactBuffer(bufferIndex);
|
||||
count = 0;
|
||||
}
|
||||
if (double.IsNaN(item)) throw new ArgumentOutOfRangeException(nameof(item), item, "item is NaN");
|
||||
buffer[count] = item;
|
||||
count++;
|
||||
countInBuffer[bufferIndex] = count;
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Microsoft.ML.Probabilistic.Tutorials
|
|||
public class ExamplesBrowser
|
||||
{
|
||||
/// <summary>
|
||||
/// Pop up a window for running examples, when compiled with .NET 4.6.1 or higher, then exit the application. Otherwise do nothing.
|
||||
/// Pop up a window for running examples, when compiled with .NET 4.6.2 or higher, then exit the application. Otherwise do nothing.
|
||||
/// </summary>
|
||||
public static void RunBrowser() // Must not be called "Run"
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace Microsoft.ML.Probabilistic.Tutorials
|
|||
[STAThread]
|
||||
public static void Main()
|
||||
{
|
||||
// When compiled with .NET 4.6.1 or higher, this will pop up a window for running examples, then exit.
|
||||
// When compiled with .NET 4.6.2 or higher, this will pop up a window for running examples, then exit.
|
||||
// Otherwise it does nothing.
|
||||
ExamplesBrowser.RunBrowser();
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -25,7 +25,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
<AddSyntheticProjectReferencesForSolutionDependencies>false</AddSyntheticProjectReferencesForSolutionDependencies>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<Description>Infer.NET is a framework for running Bayesian inference in graphical models. It can also be used for probabilistic programming. This package contains visualization tools for exploring and analyzing models on Windows platform.</Description>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
<AssemblyName>Microsoft.ML.Probabilistic.Compiler.Visualizers.Windows</AssemblyName>
|
||||
<PackageId>Microsoft.ML.Probabilistic.Visualizers.Windows$(NuGetPackageIdSuffix)</PackageId>
|
||||
<DefineConstants>TRACE;SUPPRESS_XMLDOC_WARNINGS, SUPPRESS_UNREACHABLE_CODE_WARNINGS, SUPPRESS_AMBIGUOUS_REFERENCE_WARNINGS</DefineConstants>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -20,7 +20,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
@echo on
|
||||
|
||||
set CONFIGURATION=Debug
|
||||
set TARGET_PLATFORM=net461
|
||||
set TARGET_PLATFORM=net462
|
||||
set RUN_DIR=bin\%CONFIGURATION%\%TARGET_PLATFORM%
|
||||
set RUNNER=%RUN_DIR%\Learner.exe Recommender
|
||||
set DATA=..\Runners\Evaluator\Data\Recommendation\MovieLens.dat
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -23,7 +23,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<PropertyGroup>
|
||||
<Configurations>Debug;Release;DebugFull;ReleaseFull</Configurations>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net461</TargetFrameworks>
|
||||
<TargetFrameworks>net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -25,7 +25,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -22,7 +22,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -9,7 +9,7 @@ from System import Console, ConsoleColor
|
|||
|
||||
import sys
|
||||
import os
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), r'../Tests/bin/DebugFull/net461/'))
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), r'../Tests/bin/DebugFull/net462/'))
|
||||
clr.AddReference("Microsoft.ML.Probabilistic")
|
||||
clr.AddReference("Microsoft.ML.Probabilistic.Compiler")
|
||||
from Microsoft.ML.Probabilistic import *
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<Choose>
|
||||
<When Condition="'$(Configuration)'=='DebugFull' OR '$(Configuration)'=='ReleaseFull'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net461</TargetFramework>
|
||||
<TargetFramework>net462</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
|
@ -23,7 +23,7 @@
|
|||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5.0;net461</TargetFrameworks>
|
||||
<TargetFrameworks>net5.0;net462</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
Загрузка…
Ссылка в новой задаче