diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/science/machine-learning')
8 files changed, 39 insertions, 12 deletions
diff --git a/nixpkgs/pkgs/applications/science/machine-learning/fasttext/default.nix b/nixpkgs/pkgs/applications/science/machine-learning/fasttext/default.nix index 64124594e1e2..d05f93a4653a 100644 --- a/nixpkgs/pkgs/applications/science/machine-learning/fasttext/default.nix +++ b/nixpkgs/pkgs/applications/science/machine-learning/fasttext/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchFromGitHub, cmake}: +{lib, stdenv, fetchFromGitHub, cmake}: stdenv.mkDerivation rec { pname = "fasttext"; @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; - meta = with stdenv.lib; { + meta = with lib; { description = "Library for text classification and representation learning"; homepage = "https://fasttext.cc/"; license = licenses.mit; diff --git a/nixpkgs/pkgs/applications/science/machine-learning/finalfrontier/default.nix b/nixpkgs/pkgs/applications/science/machine-learning/finalfrontier/default.nix index f1a2dbaa54fb..f2468572101e 100644 --- a/nixpkgs/pkgs/applications/science/machine-learning/finalfrontier/default.nix +++ b/nixpkgs/pkgs/applications/science/machine-learning/finalfrontier/default.nix @@ -42,7 +42,7 @@ rustPlatform.buildRustPackage rec { installShellCompletion finalfrontier.{bash,fish,zsh} ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Utility for training word and subword embeddings"; homepage = "https://github.com/finalfusion/finalfrontier/"; license = licenses.asl20; diff --git a/nixpkgs/pkgs/applications/science/machine-learning/finalfusion-utils/default.nix b/nixpkgs/pkgs/applications/science/machine-learning/finalfusion-utils/default.nix index eeeafdd3d98c..d976431e5549 100644 --- a/nixpkgs/pkgs/applications/science/machine-learning/finalfusion-utils/default.nix +++ b/nixpkgs/pkgs/applications/science/machine-learning/finalfusion-utils/default.nix @@ -46,7 +46,7 @@ rustPlatform.buildRustPackage rec { installShellCompletion finalfusion.{bash,fish,zsh} ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Utility for converting, quantizing, and querying word embeddings"; homepage = "https://github.com/finalfusion/finalfusion-utils/"; license = licenses.asl20; diff --git a/nixpkgs/pkgs/applications/science/machine-learning/labelimg/default.nix b/nixpkgs/pkgs/applications/science/machine-learning/labelimg/default.nix index 18c304e83165..4bfd4b9421f6 100644 --- a/nixpkgs/pkgs/applications/science/machine-learning/labelimg/default.nix +++ b/nixpkgs/pkgs/applications/science/machine-learning/labelimg/default.nix @@ -1,4 +1,4 @@ -{ stdenv, python3Packages, fetchFromGitHub, qt5 }: +{ lib, stdenv, python3Packages, fetchFromGitHub, qt5 }: python3Packages.buildPythonApplication rec { pname = "labelImg"; version = "1.8.3"; @@ -27,7 +27,7 @@ preFixup = '' makeWrapperArgs+=("''${qtWrapperArgs[@]}") ''; - meta = with stdenv.lib; { + meta = with lib; { description = "A graphical image annotation tool and label object bounding boxes in images"; homepage = "https://github.com/tzutalin/labelImg"; license = licenses.mit; diff --git a/nixpkgs/pkgs/applications/science/machine-learning/sc2-headless/default.nix b/nixpkgs/pkgs/applications/science/machine-learning/sc2-headless/default.nix index 7bcc915daec9..9438cd972f95 100644 --- a/nixpkgs/pkgs/applications/science/machine-learning/sc2-headless/default.nix +++ b/nixpkgs/pkgs/applications/science/machine-learning/sc2-headless/default.nix @@ -49,7 +49,7 @@ in stdenv.mkDerivation rec { ''; meta = { - platforms = stdenv.lib.platforms.linux; + platforms = lib.platforms.linux; description = "Starcraft II headless linux client for machine learning research"; license = { fullName = "BLIZZARD® STARCRAFT® II AI AND MACHINE LEARNING LICENSE"; diff --git a/nixpkgs/pkgs/applications/science/machine-learning/sc2-headless/maps.nix b/nixpkgs/pkgs/applications/science/machine-learning/sc2-headless/maps.nix index 6eec10e958c2..47e14108e37c 100644 --- a/nixpkgs/pkgs/applications/science/machine-learning/sc2-headless/maps.nix +++ b/nixpkgs/pkgs/applications/science/machine-learning/sc2-headless/maps.nix @@ -9,7 +9,7 @@ in sha256 = "19f873ilcdsf50g2v0s2zzmxil1bqncsk8nq99bzy87h0i7khkla"; stripRoot = false; }; - + melee = fetchzip' { url = "http://blzdistsc2-a.akamaihd.net/MapPacks/Melee.zip"; sha256 = "0z44pgy10jklsvgpr0kcn4c2mz3hw7nlcmvsy6a6lzpi3dvzf33i"; diff --git a/nixpkgs/pkgs/applications/science/machine-learning/shogun/default.nix b/nixpkgs/pkgs/applications/science/machine-learning/shogun/default.nix index a2c26de7a2dc..7d052c6c5e9e 100644 --- a/nixpkgs/pkgs/applications/science/machine-learning/shogun/default.nix +++ b/nixpkgs/pkgs/applications/science/machine-learning/shogun/default.nix @@ -65,8 +65,9 @@ stdenv.mkDerivation rec { CCACHE_DISABLE="1"; CCACHE_DIR=".ccache"; + nativeBuildInputs = [ cmake ]; buildInputs = with lib; [ - blas lapack bzip2 cmake colpack curl ctags eigen hdf5 json_c lp_solve lzma lzo + blas lapack bzip2 colpack curl ctags eigen hdf5 json_c lp_solve lzma lzo protobuf nlopt snappy swig (libarchive.dev) libxml2 lapack glpk ] ++ optionals (pythonSupport) (with pythonPackages; [ python ply numpy ]) @@ -87,9 +88,7 @@ stdenv.mkDerivation rec { (flag "OpenCV" opencvSupport) ]; - enableParallelBuilding = true; - - meta = with stdenv.lib; { + meta = with lib; { description = "A toolbox which offers a wide range of efficient and unified machine learning methods"; homepage = "http://shogun-toolbox.org/"; license = licenses.gpl3; diff --git a/nixpkgs/pkgs/applications/science/machine-learning/starspace/default.nix b/nixpkgs/pkgs/applications/science/machine-learning/starspace/default.nix new file mode 100644 index 000000000000..b511b4ea42e2 --- /dev/null +++ b/nixpkgs/pkgs/applications/science/machine-learning/starspace/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, fetchFromGitHub, boost165 }: + +stdenv.mkDerivation rec { + pname = "starspace"; + version = "unstable-2021-01-17"; + + src = fetchFromGitHub { + owner = "facebookresearch"; + repo = pname; + rev = "8aee0a950aa607c023e5c91cff518bec335b5df5"; + sha256 = "0sc7a37z1skb9377a1qs8ggwrkz0nmpybx7sms38xj05b702kbvj"; + }; + + buildInputs = [ boost165 ]; + + installPhase = '' + mkdir -p $out/bin + mv starspace $out/bin + ''; + + meta = with lib; { + description = "General-purpose neural model for efficient learning of entity embeddings"; + homepage = https://ai.facebook.com/tools/starspace/; + license = licenses.mit; + platforms = platforms.unix; + maintainers = [ maintainers.mausch ]; + }; +} |