2020-05-29 06:06:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, flaky
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pytorch
|
2021-05-20 23:08:51 +00:00
|
|
|
, scikit-learn
|
2020-05-29 06:06:01 +00:00
|
|
|
, scipy
|
|
|
|
, tabulate
|
|
|
|
, tqdm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "skorch";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "0.10.0";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "9910f97339e654c8d38e0075d87b735e69e5eb11db59c527fb36705b30c8d0a4";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [ numpy pytorch scikit-learn scipy tabulate tqdm ];
|
2020-05-29 06:06:01 +00:00
|
|
|
checkInputs = [ pytest pytestcov flaky pandas pytestCheckHook ];
|
|
|
|
|
|
|
|
disabledTests = [
|
2021-02-17 17:02:09 +00:00
|
|
|
# on CPU, these expect artifacts from previous GPU run
|
2020-05-29 06:06:01 +00:00
|
|
|
"test_load_cuda_params_to_cpu"
|
2021-02-17 17:02:09 +00:00
|
|
|
# failing tests
|
2020-05-29 06:06:01 +00:00
|
|
|
"test_pickle_load"
|
2021-02-17 17:02:09 +00:00
|
|
|
"test_grid_search_with_slds_"
|
|
|
|
"test_grid_search_with_dict_works"
|
2020-05-29 06:06:01 +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 17:02:09 +00:00
|
|
|
# TypeError: __init__() got an unexpected keyword argument 'iid'
|
|
|
|
broken = true;
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
}
|