nixpkgs-suyu/pkgs/development/python-modules/skorch/default.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2020-01-05 21:22:36 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pytest
, pytest-cov
2020-01-05 21:22:36 +01:00
, flaky
, numpy
, pandas
, pytorch
, scikit-learn
2020-01-05 21:22:36 +01:00
, scipy
, tabulate
, tqdm
}:
buildPythonPackage rec {
pname = "skorch";
version = "0.10.0";
2020-01-05 21:22:36 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "9910f97339e654c8d38e0075d87b735e69e5eb11db59c527fb36705b30c8d0a4";
2020-01-05 21:22:36 +01:00
};
propagatedBuildInputs = [ numpy pytorch scikit-learn scipy tabulate tqdm ];
checkInputs = [ pytest pytest-cov flaky pandas pytestCheckHook ];
2020-01-05 21:22:36 +01:00
disabledTests = [
# on CPU, these expect artifacts from previous GPU run
2020-01-05 21:22:36 +01:00
"test_load_cuda_params_to_cpu"
# failing tests
2020-01-05 21:22:36 +01:00
"test_pickle_load"
"test_grid_search_with_slds_"
"test_grid_search_with_dict_works"
2020-01-05 21:22:36 +01:00
];
meta = with lib; {
description = "Scikit-learn compatible neural net library using Pytorch";
homepage = "https://skorch.readthedocs.io";
changelog = "https://github.com/skorch-dev/skorch/blob/master/CHANGES.md";
license = licenses.bsd3;
maintainers = with maintainers; [ bcdarwin ];
2021-02-17 11:42:13 +01:00
# TypeError: __init__() got an unexpected keyword argument 'iid'
broken = true;
2020-01-05 21:22:36 +01:00
};
}