зеркало из https://github.com/dotnet/infer.git
Update to .NET Core 3.1 (#232)
* Update to .NET Core 3.1 This update was faily trivial change of project properties with only one caveat ``` error CS0104: 'Range' is an ambiguous reference between 'Microsoft.ML.Probabilistic.Models.Range' and 'System.Range' ``` which require sprinkling everywhere following line of code ``` using Range = Microsoft.ML.Probabilistic.Models.Range; ``` * Update build definition to use more modern images - Windows 2019 for .NET Core 3.1 - Mac OS 10.14 (Specifically https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops) Co-authored-by: Tom Minka <8955276+tminka@users.noreply.github.com>
This commit is contained in:
Родитель
e39cb5b5f7
Коммит
27200bd649
20
BUILDING.md
20
BUILDING.md
|
@ -1,23 +1,23 @@
|
|||
# Building Infer.NET from its source code
|
||||
|
||||
- [Building with Visual Studio 2017](#building-with-visual-studio-2017)
|
||||
- [Building with Visual Studio 2019](#building-with-visual-studio-2019)
|
||||
- [Building from the command line](#building-from-the-command-line)
|
||||
|
||||
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 2.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.1, .NET Core 3.1, or both depending on build configuration:
|
||||
|
||||
| Configurations | Targeted Frameworks |
|
||||
|:---|---:|
|
||||
| Debug, Release | both .NET Framework 4.6.1 and .NET Core 2.1 |
|
||||
| Debug, Release | both .NET Framework 4.6.1 and .NET Core 3.1 |
|
||||
| DebugFull, ReleaseFull | .NET Framework 4.6.1 only |
|
||||
| DebugCore, ReleaseCore | .NET Core 2.1 only |
|
||||
| DebugCore, ReleaseCore | .NET Core 3.1 only |
|
||||
|
||||
|
||||
## Building with Visual Studio 2017
|
||||
## Building with Visual Studio 2019
|
||||
|
||||
1. If you don't have Visual Studio 2017, you can install the free [Visual Studio 2017 Community](https://visualstudio.microsoft.com/vs/community/).
|
||||
1. If you don't have Visual Studio 2019, you can install the free [Visual Studio 2019 Community](https://visualstudio.microsoft.com/vs/community/).
|
||||
1. Start Visual Studio.
|
||||
1. Select `File -> Open -> Project/Solution` and open the `Infer.sln` solution file located in your cloned repository.
|
||||
1. Select a build configuration using `Build -> Configuration Manager...`. When switching between configurations that change the targeted frameworks, Visual Studio currently requires you to close and re-open the solution file using `File -> Close Solution` and `File -> Open`.
|
||||
|
@ -57,7 +57,7 @@ When not using Windows, expect build failure messages about examples that use WP
|
|||
Unit tests are written using the [XUnit](https://xunit.github.io/) framework.
|
||||
In order to run unit tests, build the test project and execute one of the following commands:
|
||||
```bash
|
||||
dotnet ~/.nuget/packages/xunit.runner.console/2.3.1/tools/netcoreapp2.1/xunit.console.dll <path to netcoreapp2.1 assembly with tests> <filter>
|
||||
dotnet ~/.nuget/packages/xunit.runner.console/2.3.1/tools/netcoreapp2.0/xunit.console.dll <path to netcoreapp3.1 assembly with tests> <filter>
|
||||
```
|
||||
```bash
|
||||
mono ~/.nuget/packages/xunit.runner.console/2.3.1/tools/net452/xunit.console.exe <path to net461 assembly with tests> <filter>
|
||||
|
@ -69,7 +69,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>/<netcoreapp2.1|net461>` or `bin/Release<Core|Full>/<netcoreapp2.1|net461>` subdirectories
|
||||
Depending on the build configuration and targeted framework, the assemblies will be located in the `bin/Debug<Core|Full>/<netcoreapp3.1|net461>` or `bin/Release<Core|Full>/<netcoreapp3.1|net461>` subdirectories
|
||||
of the test project.
|
||||
|
||||
`<filter>` is a rule to choose what tests will be run. You can specify them
|
||||
|
@ -96,9 +96,9 @@ _OpenBug_ is a category of tests that can fail.
|
|||
An example of quick testing of `Microsoft.ML.Probabilistic.Tests.dll` in `Debug` configuration after changing working directory to
|
||||
the `Tests` project looks like:
|
||||
```bash
|
||||
dotnet ~/.nuget/packages/xunit.runner.console/2.3.1/tools/netcoreapp2.1/xunit.console.dll bin/DebugCore/netcoreapp2.1/Microsoft.ML.Probabilistic.Tests.dll -notrait Category=OpenBug -notrait Category=BadTest -notrait Category=CompilerOptionsTest -notrait Category=Platform -notrait Category=CsoftModel -notrait Category=ModifiesGlobals -notrait Category=DistributedTest -notrait Category=Performance
|
||||
dotnet ~/.nuget/packages/xunit.runner.console/2.3.1/tools/netcoreapp2.0/xunit.console.dll bin/DebugCore/netcoreapp3.1/Microsoft.ML.Probabilistic.Tests.dll -notrait Category=OpenBug -notrait Category=BadTest -notrait Category=CompilerOptionsTest -notrait Category=Platform -notrait Category=CsoftModel -notrait Category=ModifiesGlobals -notrait Category=DistributedTest -notrait Category=Performance
|
||||
|
||||
dotnet ~/.nuget/packages/xunit.runner.console/2.3.1/tools/netcoreapp2.1/xunit.console.dll bin/DebugCore/netcoreapp2.1/Microsoft.ML.Probabilistic.Tests.dll -trait Category=CsoftModel -trait Category=ModifiesGlobals -trait Category=DistributedTests -trait Category=Performance -notrait Category=OpenBug -notrait Category=BadTest -notrait Category=CompilerOptionsTest -notrait Category=Platform -parallel none
|
||||
dotnet ~/.nuget/packages/xunit.runner.console/2.3.1/tools/netcoreapp2.0/xunit.console.dll bin/DebugCore/netcoreapp3.1/Microsoft.ML.Probabilistic.Tests.dll -trait Category=CsoftModel -trait Category=ModifiesGlobals -trait Category=DistributedTests -trait Category=Performance -notrait Category=OpenBug -notrait Category=BadTest -notrait Category=CompilerOptionsTest -notrait Category=Platform -parallel none
|
||||
```
|
||||
To run the same set of tests on Mono:
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<Company>Microsoft Research Limited</Company>
|
||||
<Copyright>Copyright © Microsoft Research Limited 2008-2014</Copyright>
|
||||
<Version>65534.0.0.0</Version>
|
||||
<FileVersion>65534.0.0.0</FileVersion>
|
||||
</PropertyGroup>
|
||||
</Project>
|
|
@ -14,6 +14,6 @@ steps:
|
|||
inputs:
|
||||
targetType: 'inline'
|
||||
script: dotnet Evaluator.dll InferNetRunsOnly.xml
|
||||
workingDirectory: ${{ format('src/Learners/Runners/Evaluator/bin/{0}/netcoreapp2.1', parameters.Configuration) }}
|
||||
workingDirectory: ${{ format('src/Learners/Runners/Evaluator/bin/{0}/netcoreapp3.1', parameters.Configuration) }}
|
||||
displayName: Running Evaluator
|
||||
continueOnError: true
|
|
@ -19,7 +19,7 @@ steps:
|
|||
- task: DotNetCoreInstaller@0
|
||||
inputs:
|
||||
packageType: 'sdk'
|
||||
version: '2.1.403'
|
||||
version: '3.1.201'
|
||||
|
||||
- script: |
|
||||
dotnet build /p:DisableImplicitNuGetFallbackFolder=true --configuration $(BuildConfiguration)Core Infer.sln
|
||||
|
|
|
@ -14,7 +14,7 @@ steps:
|
|||
- task: DotNetCoreInstaller@0
|
||||
inputs:
|
||||
packageType: 'sdk'
|
||||
version: '2.1.403'
|
||||
version: '3.1.201'
|
||||
|
||||
- script: |
|
||||
echo Checking $(Build.Repository.LocalPath)\src\Runtime\Factors\FactorDocs.xml...
|
||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
|||
- job: Win64 # Hosted Windows agent, VS 2017, testing on x64
|
||||
timeoutInMinutes: 120
|
||||
pool:
|
||||
vmImage: vs2017-win2016
|
||||
vmImage: windows-2019
|
||||
steps:
|
||||
- task: NuGetToolInstaller@0
|
||||
inputs:
|
||||
|
@ -41,7 +41,7 @@ jobs:
|
|||
- job: Win32 # Hosted Windows agent, VS 2017, testing on x86
|
||||
timeoutInMinutes: 120
|
||||
pool:
|
||||
vmImage: vs2017-win2016
|
||||
vmImage: windows-2019
|
||||
steps:
|
||||
- task: NuGetToolInstaller@0
|
||||
inputs:
|
||||
|
|
|
@ -20,7 +20,7 @@ steps:
|
|||
- task: DotNetCoreInstaller@0
|
||||
inputs:
|
||||
packageType: 'sdk'
|
||||
version: '2.1.403'
|
||||
version: '3.1.201'
|
||||
|
||||
- script: |
|
||||
dotnet build /p:DisableImplicitNuGetFallbackFolder=true --configuration $(buildConfiguration)Core Infer.sln
|
||||
|
|
|
@ -17,12 +17,12 @@ trigger: none # disable CI build
|
|||
jobs:
|
||||
- job: macOS # Hosted MacOS agent
|
||||
pool:
|
||||
vmImage: xcode9-macos10.13
|
||||
vmImage: macOS-10.14
|
||||
steps:
|
||||
- task: DotNetCoreInstaller@0
|
||||
inputs:
|
||||
packageType: 'sdk'
|
||||
version: '2.1.403'
|
||||
version: '3.1.201'
|
||||
|
||||
- script: |
|
||||
dotnet build --configuration $(BuildConfiguration)Core Infer.sln
|
||||
|
@ -37,7 +37,7 @@ jobs:
|
|||
- task: DotNetCoreInstaller@0
|
||||
inputs:
|
||||
packageType: 'sdk'
|
||||
version: '2.1.403'
|
||||
version: '3.1.201'
|
||||
|
||||
- script: |
|
||||
dotnet build --configuration $(BuildConfiguration)Core Infer.sln
|
||||
|
@ -47,7 +47,7 @@ jobs:
|
|||
|
||||
- job: Windows # Hosted Windows agent, VS 2017
|
||||
pool:
|
||||
vmImage: vs2017-win2016
|
||||
vmImage: windows-2019
|
||||
|
||||
steps:
|
||||
- task: Bash@3
|
||||
|
|
|
@ -41,7 +41,7 @@ if (!(Test-Path $projPath)) {
|
|||
& "$dotnetExe" build "$projPath" /p:Configuration=Release
|
||||
|
||||
Write-Host "Run PrepareSource for InferNet_Copy_Temp folder"
|
||||
$prepareSourcePath = [IO.Path]::GetFullPath((join-path $sourceDirectory 'src/Tools/PrepareSource/bin/Release/netcoreapp2.1/Microsoft.ML.Probabilistic.Tools.PrepareSource.dll'))
|
||||
$prepareSourcePath = [IO.Path]::GetFullPath((join-path $sourceDirectory 'src/Tools/PrepareSource/bin/Release/netcoreapp3.1/Microsoft.ML.Probabilistic.Tools.PrepareSource.dll'))
|
||||
& "$dotnetExe" "$prepareSourcePath" "$destinationDirectory"
|
||||
|
||||
Write-Host "Install nuget package docfx.console"
|
||||
|
|
|
@ -13,6 +13,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Crowdsourcing
|
||||
{
|
||||
|
|
|
@ -14,6 +14,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Crowdsourcing
|
||||
{
|
||||
|
|
|
@ -17,17 +17,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace CrowdsourcingWithWords
|
||||
{
|
||||
|
|
|
@ -16,17 +16,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
using System;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace CyclingModels
|
||||
{
|
||||
|
|
|
@ -6,6 +6,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace CyclingModels
|
||||
{
|
||||
|
|
|
@ -16,17 +16,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -18,17 +18,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace LDAExample
|
||||
{
|
||||
|
|
|
@ -9,6 +9,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace LDAExample
|
||||
{
|
||||
|
|
|
@ -9,6 +9,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace LDAExample
|
||||
{
|
||||
|
|
|
@ -18,17 +18,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ namespace MotifFinder
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
/// <summary>
|
||||
/// The motif finder program.
|
||||
|
|
|
@ -4,6 +4,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace ReviewerCalibration
|
||||
{
|
||||
|
|
|
@ -17,17 +17,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using System;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace RobustGaussianProcess
|
||||
{
|
||||
|
|
|
@ -16,17 +16,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -19,19 +19,19 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
<!-- No need to generate code twice -->
|
||||
<IgnorePostBuildNetCore>true</IgnorePostBuildNetCore>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
<RunPostBuildNetCore Condition="$(IgnorePostBuildNetCore) != 'true'">true</RunPostBuildNetCore>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -19,19 +19,19 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
<!-- No need to generate code twice -->
|
||||
<IgnorePostBuildNetCore>true</IgnorePostBuildNetCore>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
<RunPostBuildNetCore Condition="$(IgnorePostBuildNetCore) != 'true'">true</RunPostBuildNetCore>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -18,17 +18,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -18,17 +18,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<RootNamespace>Microsoft.ML.Probabilistic.Tools.BuildFactorDoc</RootNamespace>
|
||||
<AssemblyName>Microsoft.ML.Probabilistic.Tools.BuildFactorDoc</AssemblyName>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<AssemblyName>Microsoft.ML.Probabilistic.Tools.PrepareSource</AssemblyName>
|
||||
<RootNamespace>Microsoft.ML.Probabilistic.Tools.PrepareSource</RootNamespace>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -6,6 +6,7 @@ using System;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -10,6 +10,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -6,6 +6,7 @@ using System;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -8,6 +8,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -8,6 +8,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -6,6 +6,7 @@ using System;
|
|||
using System.IO;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
using System;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -8,6 +8,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -7,6 +7,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Distributions.Kernels;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
using System;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -7,6 +7,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -7,6 +7,7 @@ using System.Linq;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -10,6 +10,7 @@ using Microsoft.ML.Probabilistic.Utilities;
|
|||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Factors;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -8,6 +8,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Factors;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -20,18 +20,18 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
<AddSyntheticProjectReferencesForSolutionDependencies>false</AddSyntheticProjectReferencesForSolutionDependencies>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ using System.Linq;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tutorials
|
||||
{
|
||||
|
|
|
@ -15,17 +15,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -18,17 +18,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -20,17 +20,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -17,12 +17,12 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
|
|
@ -17,17 +17,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using System.IO;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -11,6 +11,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Factors;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@ using Microsoft.ML.Probabilistic.Utilities;
|
|||
using System.Globalization;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Serialization;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -20,6 +20,7 @@ using Microsoft.ML.Probabilistic.Algorithms;
|
|||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Microsoft.ML.Probabilistic.Compiler;
|
||||
using Microsoft.ML.Probabilistic.Serialization;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -12,6 +12,7 @@ using Microsoft.ML.Probabilistic.Collections;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Factors;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -10,6 +10,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Factors;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@ using Microsoft.ML.Probabilistic.Factors;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Compiler;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -12,6 +12,7 @@ using Microsoft.ML.Probabilistic.Algorithms;
|
|||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
using Assert = Xunit.Assert;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
/// <summary>
|
||||
/// Tests of EqualityPropagationTransform
|
||||
|
|
|
@ -11,6 +11,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Factors;
|
||||
using Microsoft.ML.Probabilistic.Compiler.Transforms;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests.Core
|
||||
{
|
||||
|
|
|
@ -11,6 +11,7 @@ using Xunit;
|
|||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Assert = Xunit.Assert;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -9,6 +9,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@ using Microsoft.ML.Probabilistic.Utilities;
|
|||
using Xunit;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -16,6 +16,7 @@ using Microsoft.ML.Probabilistic.Math;
|
|||
using Microsoft.ML.Probabilistic.Serialization;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Microsoft.ML.Probabilistic.Compiler;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -7,6 +7,7 @@ using Xunit;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -21,6 +21,7 @@ using Microsoft.ML.Probabilistic.Algorithms;
|
|||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Microsoft.ML.Probabilistic.Serialization;
|
||||
using Microsoft.ML.Probabilistic.Compiler;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -9,6 +9,7 @@ using Microsoft.ML.Probabilistic.Factors;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Xunit;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -10,6 +10,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Assert = Xunit.Assert;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -10,6 +10,7 @@ using Microsoft.ML.Probabilistic.Distributions;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Xunit;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
@ -24,6 +25,7 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
using System.Diagnostics;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
public class GateModelTests
|
||||
{
|
||||
|
|
|
@ -12,6 +12,7 @@ using Microsoft.ML.Probabilistic.Math;
|
|||
using Xunit;
|
||||
using Assert = Xunit.Assert;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -16,6 +16,7 @@ using Microsoft.ML.Probabilistic.Factors.Attributes;
|
|||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Microsoft.ML.Probabilistic.Compiler;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -19,6 +19,7 @@ using Assert = Xunit.Assert;
|
|||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Microsoft.ML.Probabilistic.Serialization;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -16,6 +16,7 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using System.Diagnostics;
|
||||
using Assert = Microsoft.ML.Probabilistic.Tests.AssertHelper;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
/// <summary>
|
||||
/// Summary description for BugsTests
|
||||
|
|
|
@ -24,6 +24,7 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Compiler;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
/// <summary>
|
||||
/// Gibbs sampling tests
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
using ParallelScheduler = Microsoft.ML.Probabilistic.Compiler.Graphs.ParallelScheduler;
|
||||
using Microsoft.ML.Probabilistic.Factors;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
public class ParallelSchedulerTests
|
||||
{
|
||||
|
|
|
@ -14,6 +14,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Assert = Xunit.Assert;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@ using Microsoft.ML.Probabilistic.Utilities;
|
|||
using System.Linq;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -16,6 +16,7 @@ using Microsoft.ML.Probabilistic.Compiler;
|
|||
using Microsoft.ML.Probabilistic.Factors.Attributes;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -11,6 +11,7 @@ using Microsoft.ML.Probabilistic.Math;
|
|||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Serialization;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -15,6 +15,7 @@ using Microsoft.ML.Probabilistic.Models.Attributes;
|
|||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
using Assert = Microsoft.ML.Probabilistic.Tests.AssertHelper;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
internal class LDAModel
|
||||
{
|
||||
|
|
|
@ -20,6 +20,7 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Microsoft.ML.Probabilistic.Serialization;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
#if SUPPRESS_UNREACHABLE_CODE_WARNINGS
|
||||
#pragma warning disable 162
|
||||
|
|
|
@ -14,6 +14,7 @@ using GaussianArray2D = Microsoft.ML.Probabilistic.Distributions.DistributionStr
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -25,6 +25,7 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
using GaussianArrayArray =
|
||||
Microsoft.ML.Probabilistic.Distributions.DistributionRefArray<Microsoft.ML.Probabilistic.Distributions.DistributionStructArray<Microsoft.ML.Probabilistic.Distributions.Gaussian, double>, double[]>;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
/// <summary>
|
||||
/// Matchbox recommender tests
|
||||
|
|
|
@ -7,6 +7,7 @@ using Xunit;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Distributions;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@ using Microsoft.ML.Probabilistic.Utilities;
|
|||
using Assert = Xunit.Assert;
|
||||
using System.Linq;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -26,6 +26,7 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
using BernoulliArrayArray = DistributionRefArray<DistributionStructArray<Bernoulli, bool>, bool[]>;
|
||||
using DirichletArray = DistributionRefArray<Dirichlet, Vector>;
|
||||
using GaussianArray = DistributionStructArray<Gaussian, double>;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
/// <summary>
|
||||
/// Tests for the modelling API
|
||||
|
|
|
@ -13,6 +13,7 @@ using Microsoft.ML.Probabilistic.Models;
|
|||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -12,6 +12,7 @@ using Xunit;
|
|||
using Microsoft.ML.Probabilistic.Models;
|
||||
using Microsoft.ML.Probabilistic.Math;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -15,6 +15,7 @@ using Assert = Xunit.Assert;
|
|||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -12,6 +12,7 @@ using Assert = Xunit.Assert;
|
|||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -13,6 +13,7 @@ using Assert = Xunit.Assert;
|
|||
using System.Linq;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -16,8 +16,9 @@ using Microsoft.ML.Probabilistic.Serialization;
|
|||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
using Assert = Xunit.Assert;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
|
||||
|
||||
public class PsychTests
|
||||
{
|
||||
internal void LogisticIrtTest()
|
||||
|
|
|
@ -23,8 +23,9 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
{
|
||||
using Assert = Microsoft.ML.Probabilistic.Tests.AssertHelper;
|
||||
using GaussianArray = DistributionStructArray<Gaussian, double>;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
|
||||
|
||||
public class SerialTests
|
||||
{
|
||||
#if SUPPRESS_UNREACHABLE_CODE_WARNINGS
|
||||
|
|
|
@ -18,6 +18,7 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
using DirichletArray = DistributionRefArray<Dirichlet, Vector>;
|
||||
using GaussianArrayArrayArray = DistributionRefArray<DistributionRefArray<DistributionStructArray<Gaussian, double>, double[]>, double[][]>;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
/// <summary>
|
||||
/// Provides test routines for shared variables on Gaussian and Discrete.
|
||||
|
|
|
@ -19,6 +19,7 @@ using Microsoft.ML.Probabilistic.Compiler.CodeModel;
|
|||
using Assert = Xunit.Assert;
|
||||
using Microsoft.ML.Probabilistic.Algorithms;
|
||||
using Microsoft.ML.Probabilistic.Models.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
namespace Microsoft.ML.Probabilistic.Tests
|
||||
{
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace Microsoft.ML.Probabilistic.Tests
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.ML.Probabilistic.Utilities;
|
||||
using Microsoft.ML.Probabilistic.Factors.Attributes;
|
||||
using Range = Microsoft.ML.Probabilistic.Models.Range;
|
||||
|
||||
/// <summary>
|
||||
/// These tests don't check for correctness, just print timings to the console.
|
||||
|
|
|
@ -18,17 +18,17 @@
|
|||
</When>
|
||||
<When Condition="'$(Configuration)'=='DebugCore' OR '$(Configuration)'=='ReleaseCore'">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
|
||||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks>
|
||||
</PropertyGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'">
|
||||
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
|
||||
<DefineConstants>$(DefineConstants);NETCORE;NETSTANDARD;NETSTANDARD2_0</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче