blob: 74d85d801f699820089c6a9d741b3f711025ef25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, linear_operator
, scikit-learn
, torch
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "gpytorch";
version = "1.11";
format = "pyproject";
src = fetchFromGitHub {
owner = "cornellius-gp";
repo = pname;
rev = "v${version}";
hash = "sha256-cpkfjx5G/4duL1Rr4nkHTHi03TDcYbcx3bKP2Ny7Ijo=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'find_version("gpytorch", "version.py")' \"$version\"
'';
propagatedBuildInputs = [
linear_operator
scikit-learn
torch
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "gpytorch" ];
disabledTests = [
# AssertionError on number of warnings emitted
"test_deprecated_methods"
# flaky numerical tests
"test_classification_error"
"test_matmul_matrix_broadcast"
# https://github.com/cornellius-gp/gpytorch/issues/2396
"test_t_matmul_matrix"
];
meta = with lib; {
description = "A highly efficient and modular implementation of Gaussian Processes, with GPU acceleration";
homepage = "https://gpytorch.ai";
license = licenses.mit;
maintainers = with maintainers; [ veprbl ];
};
}
|