-
Notifications
You must be signed in to change notification settings - Fork 4
/
FSharpML.fsx
72 lines (61 loc) · 3.52 KB
/
FSharpML.fsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#r @"netstandard.dll"
open System
open System.IO
Environment.SetEnvironmentVariable("Path",
Environment.GetEnvironmentVariable("Path") + ";" + __SOURCE_DIRECTORY__ )
let dependencies =
[
"./packages/Newtonsoft.Json.11.0.2/lib/netstandard2.0"
"./packages/System.Memory/lib/netstandard2.0/"
"./packages/System.Collections.Immutable/lib/netstandard2.0"
"./packages/System.Numerics.Vectors/lib/netstandard2.0/"
"./packages/Microsoft.Data.DataView/lib/netstandard2.0/"
"./packages/Microsoft.ML/lib/netstandard2.0/"
"./packages/Microsoft.ML.CpuMath/lib/netstandard2.0/"
"./packages/system.runtime.compilerservices.unsafe/lib/netstandard2.0/"
"./packages/Microsoft.ML.CpuMath/runtimes/win-x64/native"
"./packages/Microsoft.ML/runtimes/win-x64/native"
"./packages/System.Runtime.CompilerServices.Unsafe/lib/netstandard2.0/"
]
dependencies
|> Seq.iter (fun dep ->
let path = Path.Combine(__SOURCE_DIRECTORY__,dep)
Environment.SetEnvironmentVariable("Path",
Environment.GetEnvironmentVariable("Path") + ";" + path)
)
// Reference directories to automatically resolve dependencies (e.g. on native .dlls)
#I "./packages/Microsoft.ML/runtimes/win-x64/native"
#I "./packages/Microsoft.ML.CpuMath/runtimes/win-x64/native"
#I "./packages/System.Memory/lib/netstandard2.0/"
#I "./packages/System.Collections.Immutable/lib/netstandard2.0"
#I "./packages/System.Numerics.Vectors/lib/netstandard2.0/"
#I "./packages/Microsoft.Data.DataView/lib/netstandard2.0/"
#I "./packages/Microsoft.ML/lib/netstandard2.0/"
#I "./packages/system.runtime.compilerservices.unsafe/lib/netstandard2.0/"
#I "./packages/Microsoft.ML.CpuMath/lib/netstandard2.0/"
// Reference .dlls
// Note: referencing by path is needed also when referencing the directory.
#I "./packages/"
#I "./packages/Newtonsoft.Json.11.0.2/lib/netstandard2.0"
#r "./packages/Newtonsoft.Json.11.0.2/lib/netstandard2.0/Newtonsoft.Json.dll"
#r "./packages/System.Threading.Tasks.Dataflow/lib/netstandard2.0/System.Threading.Tasks.Dataflow.dll"
#r "./packages/Microsoft.Data.DataView/lib/netstandard2.0/Microsoft.Data.DataView.dll"
#r "./packages/System.Collections.Immutable/lib/netstandard2.0/System.Collections.Immutable.dll"
#r "./packages/System.Numerics.Vectors/lib/netstandard2.0/System.Numerics.Vectors.dll"
#r "./packages/System.Memory/lib/netstandard2.0/System.Memory.dll"
#r "./packages/Microsoft.ML.CpuMath/lib/netstandard2.0/Microsoft.ML.CpuMath.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.Core.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.Data.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.Ensemble.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.FastTree.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.KMeansClustering.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.Maml.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.PCA.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.ResultProcessor.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.SamplesUtils.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.StandardLearners.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.Sweeper.dll"
#r "./packages/Microsoft.ML/lib/netstandard2.0/Microsoft.ML.Transforms.dll"
#r "./packages/System.Runtime.CompilerServices.Unsafe/lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll"
#r "./src/FSharpML/bin/Release/netstandard2.0/FSharpML.dll"
//#I @"Microsoft.ML/runtimes/win-x64/native/"