2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-01-07 21:22:26 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, pytest
|
|
|
|
, bokeh
|
|
|
|
, ipython
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, nbconvert
|
|
|
|
, nbformat
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "livelossplot";
|
|
|
|
version = "0.5.0";
|
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stared";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "164v65qglgyg38q9ajnas99rp14mvrk5hn8x76b8iy81vszmx1c0";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ bokeh ipython matplotlib numpy ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest nbconvert nbformat ];
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests tests/external_test_examples.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-07 21:22:26 +00:00
|
|
|
description = "Live training loss plot in Jupyter for Keras, PyTorch, and others";
|
|
|
|
homepage = "https://github.com/stared/livelossplot";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|