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
|
Source: python-ml-collections
Section: python
Priority: optional
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Uploaders: Steffen Moeller <moeller@debian.org>
Build-Depends: debhelper-compat (= 13),
dh-sequence-python3,
pybuild-plugin-pyproject,
python3-all,
python3-flit-scm,
python3-absl <!nocheck>,
python3-pytest <!nocheck>,
python3-pytest-xdist <!nocheck>,
python3-yaml <!nocheck>
Standards-Version: 4.6.2
Vcs-Browser: https://salsa.debian.org/python-team/packages/python-ml-collections
Vcs-Git: https://salsa.debian.org/python-team/packages/python-ml-collections.git
Testsuite: autopkgtest-pkg-pybuild
Homepage: https://github.com/google/ml_collections
Rules-Requires-Root: no
Package: python3-ml-collections
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends},
python3-absl,
python3-yaml,
Suggests: python-is-python3
Description: collections designed for ML usecases
The package provices two classes called ConfigDict and FrozenConfigDict that
are "dict-like" data structures with dot access to nested elements. Together,
they are supposed to be used as a main way of expressing configurations of
experiments and models.
.
Features:
* Dot-based access to fields.
* Locking mechanism to prevent spelling mistakes.
* Lazy computation.
* FrozenConfigDict() class which is immutable and hashable.
* Type safety.
* "Did you mean" functionality.
* Human readable printing (with valid references and cycles), using
valid YAML format.
* Fields can be passed as keyword arguments using the ** operator.
.
There are two exceptions to the strong type-safety of the ConfigDict.
int values can be passed in to fields of type float. In such a case, the
value is type-converted to a float before being stored. Similarly,
all string types (including Unicode strings) can be stored in fields
of type str or unicode.
|