File tree 7 files changed +15
-6
lines changed
InferNetExamples/InferNetExamples
7 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -259,4 +259,7 @@ apiguide-tmp/
259
259
_site /
260
260
261
261
# code generated by iron python examples
262
- IronPythonWrapper /InferNetExamples /InferNetExamples /GeneratedSource /
262
+ src /IronPythonWrapper /InferNetExamples /InferNetExamples /GeneratedSource /
263
+
264
+ # Compiler for IronPython
265
+ src /IronPythonWrapper /Compiler
Original file line number Diff line number Diff line change @@ -29,6 +29,6 @@ def gaussian_ranges():
29
29
x .ObservedValue = data
30
30
31
31
# The inference
32
- ie = InferenceEngine (VariationalMessagePassing ())
32
+ ie = InferenceEngine (Algorithms . VariationalMessagePassing ())
33
33
print "mean = " , ie .Infer (mean )
34
34
print "prec = " , ie .Infer (precision )
Original file line number Diff line number Diff line change 6
6
<ProjectGuid >{44d352de-299b-4409-9371-949ac48b4225}</ProjectGuid >
7
7
<ProjectHome >.</ProjectHome >
8
8
<StartupFile >InferNetExamples.py</StartupFile >
9
- <SearchPath >..\..\..\ Compiler\bin\Release </SearchPath >
9
+ <SearchPath >..\..\Compiler</SearchPath >
10
10
<WorkingDirectory >.</WorkingDirectory >
11
11
<InterpreterId >IronPython|2.7-32</InterpreterId >
12
12
<LaunchProvider >IronPython (.NET) launcher</LaunchProvider >
17
17
<SccProvider >SAK</SccProvider >
18
18
<SccAuxPath >SAK</SccAuxPath >
19
19
<SccLocalPath >SAK</SccLocalPath >
20
+ <DebugStdLib >False</DebugStdLib >
20
21
</PropertyGroup >
21
22
<PropertyGroup Condition =" '$(Configuration)' == 'Debug' " >
22
23
<DebugSymbols >true</DebugSymbols >
Original file line number Diff line number Diff line change 20
20
import Microsoft .ML .Probabilistic .Collections
21
21
import Microsoft .ML .Probabilistic .Factors
22
22
import Microsoft .ML .Probabilistic .Math
23
+ import Microsoft .ML .Probabilistic .Algorithms
23
24
from Microsoft .ML .Probabilistic import *
24
25
25
26
#---------import all classes and methods from above namespaces-----------
28
29
from Microsoft .ML .Probabilistic .Collections import *
29
30
from Microsoft .ML .Probabilistic .Factors import *
30
31
from Microsoft .ML .Probabilistic .Math import *
32
+ from Microsoft .ML .Probabilistic .Algorithms import *
33
+
34
+ InferenceEngine .DefaultEngine .Compiler .CompilerChoice = Microsoft .ML .Probabilistic .Compiler .CompilerChoice .Roslyn
31
35
32
36
#----------------------------------------------------------------------------
33
37
#---------------- Variable array helper methos ---------------------------
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ Make sure folders containing `InferNetWrapper.py` and Infer.NET binaries are pre
4
4
5
5
# Running Tests and Examples
6
6
7
- * Build ` Infer2.sln ` using the ` Release ` configuration, so that Infer.NET binaries will become present in ` /Compiler/bin/Release ` folder.
8
- * Open ` TestWrapper.sln ` for tests or ` InferNerExamples .sln` for examples.
7
+ * Run ` SetupCompiler.cmd ` script. It runs ` dotnet publish ` on ` Compiler.csproj ` and puts the results into ` src/IronPythonWrapper/Compiler ` folder.
8
+ * Open ` TestWrapper.sln ` for tests or ` InferNetExamples .sln` for examples.
9
9
* Run the only project in the opened solution.
Original file line number Diff line number Diff line change
1
+ dotnet publish -c ReleaseCore -o ../IronPythonWrapper/Compiler ../Compiler/Compiler.csproj
Original file line number Diff line number Diff line change 6
6
<ProjectGuid >{9234127e-fbc0-4587-bad9-65727458cc0f}</ProjectGuid >
7
7
<ProjectHome >.</ProjectHome >
8
8
<StartupFile >TestWrapper.py</StartupFile >
9
- <SearchPath >..\..\..\Compiler\bin\Release\ ;..\..\InferNetExamples\InferNetExamples </SearchPath >
9
+ <SearchPath >..\..\InferNetExamples\InferNetExamples ;..\..\Compiler </SearchPath >
10
10
<WorkingDirectory >.</WorkingDirectory >
11
11
<InterpreterId >IronPython|2.7-32</InterpreterId >
12
12
<LaunchProvider >IronPython (.NET) launcher</LaunchProvider >
You can’t perform that action at this time.
0 commit comments