2020-01-05 21:22:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest
|
2021-07-20 22:42:24 +02:00
|
|
|
, pytest-cov
|
2020-01-05 21:22:36 +01:00
|
|
|
, flaky
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pytorch
|
2021-05-14 20:46:36 +02:00
|
|
|
, scikit-learn
|
2020-01-05 21:22:36 +01:00
|
|
|
, scipy
|
|
|
|
, tabulate
|
|
|
|
, tqdm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "skorch";
|
2021-03-24 10:28:28 +01:00
|
|
|
version = "0.10.0";
|
2020-01-05 21:22:36 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 10:28:28 +01:00
|
|
|
sha256 = "9910f97339e654c8d38e0075d87b735e69e5eb11db59c527fb36705b30c8d0a4";
|
2020-01-05 21:22:36 +01:00
|
|
|
};
|
|
|
|
|
2021-05-14 20:46:36 +02:00
|
|
|
propagatedBuildInputs = [ numpy pytorch scikit-learn scipy tabulate tqdm ];
|
2021-07-20 22:42:24 +02:00
|
|
|
checkInputs = [ pytest pytest-cov flaky pandas pytestCheckHook ];
|
2020-01-05 21:22:36 +01:00
|
|
|
|
|
|
|
disabledTests = [
|
2021-02-16 05:02:55 +01:00
|
|
|
# on CPU, these expect artifacts from previous GPU run
|
2020-01-05 21:22:36 +01:00
|
|
|
"test_load_cuda_params_to_cpu"
|
2021-02-16 05:02:55 +01:00
|
|
|
# failing tests
|
2020-01-05 21:22:36 +01:00
|
|
|
"test_pickle_load"
|
2021-02-16 05:02:55 +01:00
|
|
|
"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
|
|
|
};
|
|
|
|
}
|