2020-05-29 06:06:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-05-29 06:06:01 +00:00
|
|
|
, flaky
|
|
|
|
, numpy
|
|
|
|
, pandas
|
2022-09-09 14:08:57 +00:00
|
|
|
, torch
|
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-12-06 16:07:01 +00:00
|
|
|
version = "0.11.0";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "b35cb4e50045742f0ffcfad33044af691d5d36b50212573753a804483a947ca9";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
propagatedBuildInputs = [ numpy torch scikit-learn scipy tabulate tqdm ];
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytest pytest-cov flaky pandas pytestCheckHook ];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|