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

48 lines
1.1 KiB
Nix
Raw Normal View History

2020-01-05 20:22:36 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pytest
, pytestcov
, flaky
, numpy
, pandas
, pytorch
, scikitlearn
, scipy
, tabulate
, tqdm
}:
buildPythonPackage rec {
pname = "skorch";
2020-11-29 14:04:42 +00:00
version = "0.9.0";
2020-01-05 20:22:36 +00:00
src = fetchPypi {
inherit pname version;
2020-11-29 14:04:42 +00:00
sha256 = "bdce9370153fd80c5c4ec499a639f55eef0620e45d4b15fbf7d7ff2a225a3d40";
2020-01-05 20:22:36 +00:00
};
propagatedBuildInputs = [ numpy pytorch scikitlearn scipy tabulate tqdm ];
checkInputs = [ pytest pytestcov flaky pandas pytestCheckHook ];
disabledTests = [
# on CPU, these expect artifacts from previous GPU run
2020-01-05 20:22:36 +00:00
"test_load_cuda_params_to_cpu"
# failing tests
2020-01-05 20:22:36 +00:00
"test_pickle_load"
"test_grid_search_with_slds_"
"test_grid_search_with_dict_works"
2020-01-05 20:22:36 +00: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 10:42:13 +00:00
# TypeError: __init__() got an unexpected keyword argument 'iid'
broken = true;
2020-01-05 20:22:36 +00:00
};
}