You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/building/unix-instructions.md
+20-13Lines changed: 20 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,37 +7,44 @@ Building ML.NET on Linux and macOS
7
7
3. Navigate to the `machinelearning` directory
8
8
4. Run the build script `./build.sh`
9
9
10
-
Calling the script `build.sh` builds both the native and managed code.
10
+
Calling the script `./build.sh` builds both the native and managed code.
11
11
12
-
For more information about the different options when building, run `build.sh -?` and look at examples in the [developer-guide](../project-docs/developer-guide.md).
12
+
For more information about the different options when building, run `./build.sh -?` and look at examples in the [developer-guide](../project-docs/developer-guide.md).
13
13
14
14
## Minimum Hardware Requirements
15
15
- 2GB RAM
16
+
- x64
16
17
17
-
## Prerequisites (native build)
18
+
## Prerequisites
18
19
19
20
### Linux
20
21
21
-
First, the package lists might need to be updated
22
+
The following components are needed:
22
23
23
-
`sudo apt-get update`
24
+
* git
25
+
* clang-3.9
26
+
* cmake 2.8.12
27
+
* libunwind8
28
+
* curl
29
+
* All the requirements necessary to run .NET Core 2.0 applications: libssl1.0.0 (1.0.2 for Debian 9) and libicu5x (libicu52 for ubuntu 14.x, libicu55 for ubuntu 16.x, and libicu57 for ubuntu 17.x). For more information on prerequisites in different linux distributions click [here](https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x).
24
30
25
-
On Linux, the following components are needed
31
+
e.g. for Ubuntu 16.x:
26
32
27
-
* CMake on the PATH
28
-
* Clang 3.5+ (same requirements as coreclr/corefx)
29
-
* All the requirements necessary to run .NET Core 2.0 applications
macOS 10.12 or higher is needed to build dotnet/machinelearning.
36
42
37
43
On macOS a few components are needed which are not provided by a default developer setup:
38
-
* CMake
44
+
* cmake 3.10.3
45
+
* All the requirements necessary to run .NET Core 2.0 applications. To view macOS prerequisites click [here](https://docs.microsoft.com/en-us/dotnet/core/macos-prerequisites?tabs=netcore2x).
39
46
40
47
One way of obtaining CMake is via [Homebrew](http://brew.sh):
ML.NET runs on Windows, Linux, and macOS - any platform where 64 bit [.NET Core](https://github.com/dotnet/core) or later is available.
18
20
19
-
The current release is 0.1. Check out the [release notes](https://github.com/dotnet/machinelearning/blob/master/Documentation/release-notes/0.1/release-0.1.md).
21
+
The current release is 0.1. Check out the [release notes](Documentation/release-notes/0.1/release-0.1.md).
20
22
21
23
First ensure you have installed [.NET Core 2.0](https://www.microsoft.com/net/learn/get-started) or later. ML.NET also works on the .NET Framework. Note that ML.NET currently must run in a 64 bit process.
22
24
23
-
Once you have an app, you can install ML.NET NuGet from the .NET Core CLI using:
25
+
Once you have an app, you can install the ML.NET NuGet package from the .NET Core CLI using:
24
26
```
25
27
dotnet add package Microsoft.ML
26
28
```
27
29
28
-
or from the package manager:
30
+
or from the NuGet package manager:
29
31
```
30
32
Install-Package Microsoft.ML
31
33
```
32
34
33
-
Or alternatively you can add the Microsoft.ML package from within Visual Studio's NuGet package manager.
35
+
Or alternatively you can add the Microsoft.ML package from within Visual Studio's NuGet package manager or via [Paket](https://github.com/fsprojects/Paket).
34
36
35
37
## Building
36
38
@@ -55,7 +57,8 @@ For more information, see the [.NET Foundation Code of Conduct](https://dotnetfo
55
57
56
58
## Examples
57
59
58
-
Here's an example of code to train a model to predict sentiment from text samples. (You can see the complete sample [here](https://github.com/dotnet/machinelearning/blob/master/test/Microsoft.ML.Tests/Scenarios/Scenario3_SentimentPrediction.cs)):
60
+
Here's an example of code to train a model to predict sentiment from text samples.
61
+
(You can see the complete sample [here](test/Microsoft.ML.Tests/Scenarios/SentimentPredictionTests.cs)):
Copy file name to clipboardExpand all lines: src/Microsoft.ML/LearningPipeline.cs
+88Lines changed: 88 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,25 +26,113 @@ public ScorerPipelineStep(Var<IDataView> data, Var<ITransformModel> model)
26
26
publicVar<ITransformModel>Model{get;}
27
27
}
28
28
29
+
30
+
/// <summary>
31
+
/// The <see cref="LearningPipeline"/> class is used to define the steps needed to perform a desired machine learning task.<para/>
32
+
/// The steps are defined by adding a data loader (e.g. <see cref="TextLoader"/>) followed by zero or more transforms (e.g. <see cref="Microsoft.ML.Transforms.TextFeaturizer"/>)
33
+
/// and at most one trainer/learner (e.g. <see cref="Microsoft.ML.Trainers.FastTreeBinaryClassifier"/>) in the pipeline.
/// Train the model using the ML components in the pipeline.
127
+
/// </summary>
128
+
/// <typeparam name="TInput">Type of data instances the model will be trained on. It's a custom type defined by the user according to the structure of data.
129
+
/// <para/>
130
+
/// Please see https://www.microsoft.com/net/learn/apps/machine-learning-and-ai/ml-dotnet/get-started/windows for more details on input type.
131
+
/// </typeparam>
132
+
/// <typeparam name="TOutput">Ouput type. The prediction will be return based on this type.
133
+
/// Please see https://www.microsoft.com/net/learn/apps/machine-learning-and-ai/ml-dotnet/get-started/windows for more details on output type.
134
+
/// </typeparam>
135
+
/// <returns>PredictionModel object. This is the model object used for prediction on new instances. </returns>
Copy file name to clipboardExpand all lines: src/Native/FastTreeNative/ExpandFloatType.cpp
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,8 @@
16
16
#include"SumupOneBit.h"
17
17
18
18
// Ideally we should expand this using C++ templates.
19
-
// However, In order to exporting functions from DLL float and double versions need to have different names (cannot be overloaded on type parameters)// Expanding here with ugly pre-processor macros to get double and float versions (with fucntion mes suffixes _float and _double)
19
+
// However, in order to export functions from DLL, float and double versions need to have different names (cannot be overloaded on type parameters)
20
+
// Expanding here with ugly pre-processor macros to get double and float versions (with function name suffixes _float and _double)
0 commit comments