| 1 | Source: python-ml-collections |
| 2 | Section: python |
| 3 | Priority: optional |
| 4 | Maintainer: Debian Python Team <[email protected]> |
| 5 | Uploaders: Steffen Moeller <[email protected]> |
| 6 | Build-Depends: debhelper-compat (= 13), |
| 7 | dh-sequence-python3, |
| 8 | pybuild-plugin-pyproject, |
| 9 | python3-all, |
| 10 | python3-flit-scm, |
| 11 | python3-absl <!nocheck>, |
| 12 | python3-pytest <!nocheck>, |
| 13 | python3-pytest-xdist <!nocheck>, |
| 14 | python3-yaml <!nocheck> |
| 15 | Standards-Version: 4.6.2 |
| 16 | Vcs-Browser: https://salsa.debian.org/python-team/packages/python-ml-collections |
| 17 | Vcs-Git: https://salsa.debian.org/python-team/packages/python-ml-collections.git |
| 18 | Testsuite: autopkgtest-pkg-pybuild |
| 19 | Homepage: https://github.com/google/ml_collections |
| 20 | Rules-Requires-Root: no |
| 21 | |
| 22 | Package: python3-ml-collections |
| 23 | Architecture: all |
| 24 | Depends: ${python3:Depends}, ${misc:Depends}, |
| 25 | python3-absl, |
| 26 | python3-yaml, |
| 27 | Suggests: python-is-python3 |
| 28 | Description: collections designed for ML usecases |
| 29 | The package provices two classes called ConfigDict and FrozenConfigDict that |
| 30 | are "dict-like" data structures with dot access to nested elements. Together, |
| 31 | they are supposed to be used as a main way of expressing configurations of |
| 32 | experiments and models. |
| 33 | . |
| 34 | Features: |
| 35 | * Dot-based access to fields. |
| 36 | * Locking mechanism to prevent spelling mistakes. |
| 37 | * Lazy computation. |
| 38 | * FrozenConfigDict() class which is immutable and hashable. |
| 39 | * Type safety. |
| 40 | * "Did you mean" functionality. |
| 41 | * Human readable printing (with valid references and cycles), using |
| 42 | valid YAML format. |
| 43 | * Fields can be passed as keyword arguments using the ** operator. |
| 44 | . |
| 45 | There are two exceptions to the strong type-safety of the ConfigDict. |
| 46 | int values can be passed in to fields of type float. In such a case, the |
| 47 | value is type-converted to a float before being stored. Similarly, |
| 48 | all string types (including Unicode strings) can be stored in fields |
| 49 | of type str or unicode. |