forked from mlpack/mlpack
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'upstream/master' into awhitesong/LeakyReLU, resolving m…
…erge conflicts
- Loading branch information
Showing
37 changed files
with
1,087 additions
and
647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
clone_depth: 30 | ||
environment: | ||
VisualStudioVersion: 14.0 | ||
configuration: Release | ||
os: Visual Studio 2015 | ||
install: | ||
- ps: nuget install boost -o "${env:APPVEYOR_BUILD_FOLDER}" | ||
- ps: nuget install boost_unit_test_framework-vc140 -o "${env:APPVEYOR_BUILD_FOLDER}" | ||
- ps: nuget install boost_program_options-vc140 -o "${env:APPVEYOR_BUILD_FOLDER}" | ||
- ps: nuget install boost_random-vc140 -o "${env:APPVEYOR_BUILD_FOLDER}" | ||
- ps: nuget install boost_serialization-vc140 -o "${env:APPVEYOR_BUILD_FOLDER}" | ||
- ps: nuget install boost_math_c99-vc140 -o "${env:APPVEYOR_BUILD_FOLDER}" | ||
- ps: nuget install OpenBLAS -o "${env:APPVEYOR_BUILD_FOLDER}" | ||
build_script: | ||
- mkdir boost_libs | ||
- ps: cp C:\projects\mlpack\boost_program_options-vc140.1.60.0.0\lib\native\address-model-64\lib\*.* C:\projects\mlpack\boost_libs\ | ||
- ps: cp C:\projects\mlpack\boost_math_c99-vc140.1.60.0.0\lib\native\address-model-64\lib\*.* C:\projects\mlpack\boost_libs\ | ||
- ps: cp C:\projects\mlpack\boost_random-vc140.1.60.0.0\lib\native\address-model-64\lib\*.* C:\projects\mlpack\boost_libs\ | ||
- ps: cp C:\projects\mlpack\boost_serialization-vc140.1.60.0.0\lib\native\address-model-64\lib\*.* C:\projects\mlpack\boost_libs\ | ||
- ps: cp C:\projects\mlpack\boost_unit_test_framework-vc140.1.60.0.0\lib\native\address-model-64\lib\*.* C:\projects\mlpack\boost_libs\ | ||
- appveyor DownloadFile http://sourceforge.net/projects/arma/files/armadillo-6.500.5.tar.gz | ||
- 7z x armadillo-6.500.5.tar.gz -so | 7z x -si -ttar > nul | ||
- cd armadillo-6.500.5 && mkdir build && cd build | ||
- cmake -G "Visual Studio 14 2015 Win64" -DBLAS_LIBRARY:FILEPATH="%APPVEYOR_BUILD_FOLDER%/OpenBLAS.0.2.14.1/lib/native/lib/x64/libopenblas.dll.a" -DLAPACK_LIBRARY:FILEPATH="%APPVEYOR_BUILD_FOLDER%/OpenBLAS.0.2.14.1/lib/native/lib/x64/libopenblas.dll.a" -DCMAKE_PREFIX:FILEPATH="%APPVEYOR_BUILD_FOLDER%/armadillo" -DBUILD_SHARED_LIBS=OFF .. | ||
- '"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "C:\projects\mlpack\armadillo-6.500.5\build\armadillo.sln" /m /verbosity:quiet /p:Configuration=Release;Platform=x64' | ||
- cd C:\projects\mlpack && mkdir build && cd build | ||
- cmake -G "Visual Studio 14 2015 Win64" -DBLAS_LIBRARY:FILEPATH="%APPVEYOR_BUILD_FOLDER%/OpenBLAS.0.2.14.1/lib/native/lib/x64/libopenblas.dll.a" -DLAPACK_LIBRARY:FILEPATH="%APPVEYOR_BUILD_FOLDER%/OpenBLAS.0.2.14.1/lib/native/lib/x64/libopenblas.dll.a" -DARMADILLO_INCLUDE_DIR="C:/projects/mlpack/armadillo-6.500.5/include" -DARMADILLO_LIBRARY:FILEPATH="C:\projects\mlpack\armadillo-6.500.5\build\Debug\armadillo.lib" -DBOOST_INCLUDEDIR:PATH="C:\projects\mlpack\boost.1.60.0.0\lib\native\include" -DBOOST_LIBRARYDIR:PATH="C:\projects\mlpack\boost_libs" -DDEBUG=OFF -DPROFILE=OFF .. | ||
- '"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "C:\projects\mlpack\build\mlpack.sln" /m /verbosity:normal /p:Configuration=Release;Platform=x64' | ||
- 7z a mlpack-windows-no-libs.zip "%APPVEYOR_BUILD_FOLDER%\build\Release\*.exe" | ||
- 7z a mlpack-windows.zip "%APPVEYOR_BUILD_FOLDER%\build\Release\*.*" "%APPVEYOR_BUILD_FOLDER%/OpenBLAS.0.2.14.1/lib/native/lib/x64/*.*" | ||
|
||
artifacts: | ||
- path: '**\*.zip' | ||
|
||
notifications: | ||
- provider: Email | ||
to: | ||
- mlpack-git@cc.gatech.edu | ||
on_build_success: true | ||
on_build_failure: true | ||
on_build_status_changed: true | ||
|
||
# All plans have maximum build job execution time of 60 minutes. But right, now | ||
# the machine takes 30 minutes to build the code and at least 50 minutes to run | ||
# all tests. | ||
# test_script: - | ||
# '"C:\projects\mlpack\build\Release\mlpack_test.exe" -p' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/*! @page elem The ElemType policy in mlpack | ||
@section Overview | ||
\b mlpack algorithms should be as generic as possible. Often this means | ||
allowing arbitrary metrics or kernels to be used, but this also means allowing | ||
any type of data point to be used. This means that \b mlpack classes should | ||
support \c float, \c double, and other observation types. Some algorithms | ||
support this through the use of a \c MatType template parameter; others will | ||
have their own template parameter, \c ElemType. | ||
The \c ElemType template parameter can take any value that can be used by | ||
Armadillo (or, specifically, classes like \c arma::Mat<> and others); this | ||
encompasses the types | ||
- \c double | ||
- \c float | ||
- \c int | ||
- \c unsigned int | ||
- \c std::complex<double> | ||
- \c std::complex<float> | ||
and other primitive numeric types. Note that Armadillo does not support some | ||
integer types for functionality such as matrix decompositions or other more | ||
advanced linear algebra. This means that when these integer types are used, | ||
some algorithms may fail with Armadillo error messages indicating that those | ||
types cannot be used. | ||
@section A note for developers | ||
If the class has a \c MatType template parameter, \c ElemType can be easily | ||
defined as below: | ||
@code | ||
typedef typename MatType::elem_type ElemType; | ||
@endcode | ||
and otherwise a template parameter with the name \c ElemType can be used. It is | ||
generally a good idea to expose the element type somehow for use by other | ||
classes. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.