- Clone LATINO from the GIT repository into, for example, C:\Work\Latino:
C:\Work>git clone git@github.com:LatinoLib/LATINO.git Latino
- If you plan to use any of the SVM models (SvmBinaryClassifier, SvmMulticlassClassifier) and/or the least-squares regression model (LSqrModel), you need to add the path C:\Work\Latino\Bin32 to the environmental variable PATH. On a 64-bit OS, you need to add C:\Work\Latino\Bin64 instead.
- Start Visual Studio.
- Create a new console-mode project.
- Add Latino.csproj (C:\Work\Latino\Latino.csproj) to the solution. This project file was created in Visual Studio 2010. If you are using a later version, VS will automatically upgrade it.
- Reference LATINO from the created project (References / Add Reference).
- Copy-paste the following code into Program.cs:
using System;
using Latino;
namespace LatinoTest
{
class Program
{
static void Main(string[] args)
{
SparseVector<char> v = new SparseVector<char>("Hello World!".ToCharArray());
Console.WriteLine(v);
}
}
}
- Start the program.
If you plan to use any of the SVM models (SvmBinaryClassifier, SvmMulticlassClassifier) and/or the least-squares regression model (LSqrModel), you need two unmanaged libraries, SvmLightLib and LSqrWin, respectively. These libraries come precompiled with LATINO but in case you want to make changes, you can build them yourself by following the instructions below.
Clone SvmLightLib from the GIT repository into, for example, C:\Work\SvmLightLib:
C:\Work>git clone git@github.com:LatinoLib/SvmLightLib.git SvmLightLib
- Start Visual Studio.
- Open SvmLightLib.sln (C:\Work\SvmLightLib\SvmLightLib.sln). This solution file and the referenced project files were created in Visual Studio 2010. If you are using a later version, VS will automatically convert these files.
- Set SvmLightLib as the start-up project.
- Build the library:
- If you need the 32-bit binaries, build the configurations Debug/x86 and Release/x86. The DLL files, SvmLightLibDebug.dll and SvmLightLib.dll, will appear in the folder bin\x86 (C:\Work\SvmLightLib\bin\x86).
- If you need the 64-bit binaries, build the configurations Debug/x64 and Release/x64. The DLL files, SvmLightLibDebug.dll and SvmLightLib.dll, will appear in the folder bin\x64 (C:\Work\SvmLightLib\bin\x64).
- Copy the DLL files into the LATINO Bin folder (C:\Work\Latino\Bin32 or C:\Work\Latino\Bin64). Make sure that you have added the LATINO Bin folder to the environmental variable PATH.
Clone LSqrWin from the GIT repository into, for example, C:\Work\LSqrWin:
C:\Work>git clone git@github.com:LatinoLib/LSqrWin.git LSqrWin
- Start Visual Studio.
- Open LSqrDll.sln (C:\Work\LSqrWin\LSqrDll\Src\LSqrDll.sln). This solution file and the referenced project files were created in Visual Studio 2010. If you are using a later version, VS will automatically convert these files.
- Build the library:
- If you need the 32-bit binaries, build the configurations Debug/x86 and Release/x86. The DLL files, LSqrDebug.dll and LSqr.dll, will appear in the folder Bin\x86 (C:\Work\LSqrWin\LSqrDll\Bin\x86).
- If you need the 64-bit binaries, build the configurations Debug/x64 and Release/x64. The DLL files, LSqrDebug.dll and LSqr.dll, will appear in the folder Bin\x64 (C:\Work\LSqrWin\LSqrDll\Bin\x64).
- Copy the DLL files into the LATINO Bin folder (C:\Work\Latino\Bin32 or C:\Work\Latino\Bin64). Make sure that you have added the LATINO Bin folder to the environmental variable PATH.
Most of LATINO is under the MIT license. However, certain parts fall under other licenses. See LICENSE.txt for more details.