2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, chex
|
|
|
|
, jaxlib
|
|
|
|
, tensorflow-probability
|
|
|
|
, optax
|
|
|
|
, dm-haiku
|
|
|
|
, bsuite
|
|
|
|
, frozendict
|
|
|
|
, pytestCheckHook
|
|
|
|
, dm-env
|
|
|
|
, distrax }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rlax";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.1.5";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-GRqiGacyHZpVKUqfAteMjRV4EtdHkSgfFRj/H76bBVo=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
chex
|
|
|
|
jaxlib
|
|
|
|
distrax
|
|
|
|
tensorflow-probability
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-07-18 16:21:45 +00:00
|
|
|
bsuite
|
|
|
|
dm-env
|
|
|
|
dm-haiku
|
|
|
|
frozendict
|
|
|
|
optax
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"rlax"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# RuntimeErrors
|
|
|
|
"test_cross_replica_scatter_add0"
|
|
|
|
"test_cross_replica_scatter_add1"
|
|
|
|
"test_cross_replica_scatter_add2"
|
|
|
|
"test_cross_replica_scatter_add3"
|
|
|
|
"test_cross_replica_scatter_add4"
|
|
|
|
"test_learn_scale_shift"
|
|
|
|
"test_normalize_unnormalize_is_identity"
|
|
|
|
"test_outputs_preserved"
|
|
|
|
"test_scale_bounded"
|
|
|
|
"test_slow_update"
|
|
|
|
"test_unnormalize_linear"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library of reinforcement learning building blocks in JAX";
|
|
|
|
homepage = "https://github.com/deepmind/rlax";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|