2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
datasets,
|
|
|
|
dvc,
|
|
|
|
dvc-render,
|
|
|
|
dvc-studio-client,
|
|
|
|
fastai,
|
|
|
|
fetchFromGitHub,
|
|
|
|
funcy,
|
|
|
|
gto,
|
|
|
|
jsonargparse,
|
|
|
|
lightgbm,
|
|
|
|
lightning,
|
|
|
|
matplotlib,
|
|
|
|
mmcv,
|
|
|
|
numpy,
|
|
|
|
optuna,
|
|
|
|
pandas,
|
|
|
|
pillow,
|
|
|
|
psutil,
|
|
|
|
pynvml,
|
|
|
|
pythonOlder,
|
|
|
|
ruamel-yaml,
|
|
|
|
scikit-learn,
|
|
|
|
scmrepo,
|
|
|
|
setuptools-scm,
|
|
|
|
tensorflow,
|
|
|
|
torch,
|
|
|
|
transformers,
|
|
|
|
xgboost,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvclive";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.48.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iterative";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "dvclive";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-WIVRpJD7B6OI7ZfdHT+DunRRiaxHhri5Ge/B1BQ1kJY=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-05-24 13:37:59 +00:00
|
|
|
dvc
|
2024-01-25 14:12:00 +00:00
|
|
|
dvc-render
|
2023-05-24 13:37:59 +00:00
|
|
|
dvc-studio-client
|
|
|
|
funcy
|
2024-01-25 14:12:00 +00:00
|
|
|
gto
|
2023-02-02 18:25:31 +00:00
|
|
|
ruamel-yaml
|
2023-05-24 13:37:59 +00:00
|
|
|
scmrepo
|
2024-04-21 15:54:59 +00:00
|
|
|
psutil
|
|
|
|
pynvml
|
2023-05-24 13:37:59 +00:00
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-01-25 14:12:00 +00:00
|
|
|
all = [
|
|
|
|
jsonargparse
|
|
|
|
lightgbm
|
|
|
|
lightning
|
|
|
|
matplotlib
|
|
|
|
mmcv
|
|
|
|
numpy
|
|
|
|
optuna
|
|
|
|
pandas
|
|
|
|
pillow
|
|
|
|
scikit-learn
|
|
|
|
tensorflow
|
|
|
|
torch
|
|
|
|
transformers
|
|
|
|
xgboost
|
|
|
|
] ++ jsonargparse.optional-dependencies.signatures;
|
|
|
|
image = [
|
|
|
|
numpy
|
|
|
|
pillow
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
sklearn = [ scikit-learn ];
|
2024-01-25 14:12:00 +00:00
|
|
|
plots = [
|
|
|
|
pandas
|
|
|
|
scikit-learn
|
|
|
|
numpy
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
markdown = [ matplotlib ];
|
|
|
|
mmcv = [ mmcv ];
|
|
|
|
tf = [ tensorflow ];
|
|
|
|
xgb = [ xgboost ];
|
|
|
|
lgbm = [ lightgbm ];
|
2024-01-25 14:12:00 +00:00
|
|
|
huggingface = [
|
|
|
|
datasets
|
|
|
|
transformers
|
|
|
|
];
|
|
|
|
# catalyst = [
|
|
|
|
# catalyst
|
|
|
|
# ];
|
2024-06-05 15:53:02 +00:00
|
|
|
fastai = [ fastai ];
|
2024-01-25 14:12:00 +00:00
|
|
|
lightning = [
|
|
|
|
lightning
|
|
|
|
torch
|
|
|
|
jsonargparse
|
|
|
|
] ++ jsonargparse.optional-dependencies.signatures;
|
2024-06-05 15:53:02 +00:00
|
|
|
optuna = [ optuna ];
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# Circular dependency with dvc
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dvclive" ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for logging machine learning metrics and other metadata in simple file formats";
|
|
|
|
homepage = "https://github.com/iterative/dvclive";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/iterative/dvclive/releases/tag/${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|