* 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:
Andrey Kurdyumov 2020-04-08 01:30:04 +06:00 коммит произвёл GitHub
Родитель e39cb5b5f7
Коммит 27200bd649
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
106 изменённых файлов: 165 добавлений и 80 удалений

Просмотреть файл

@ -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&#46;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&#46;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:

8
Directory.Build.props Normal file
Просмотреть файл

@ -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

2
docs/_build/makeApiDocs.ps1 поставляемый
Просмотреть файл

@ -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>

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше