一个常用的工具代码包集合
Project description
kevin_toolbox
一个通用的工具代码包集合
环境要求
numpy>=1.19
pytorch>=1.2
安装方法:
pip install kevin-toolbox --no-dependencies
-
v 1.4.11 (2025-04-16)【bug fix】
- nested_dict_list
- 【bug fix】fix bug in value_parser.replace_identical_with_reference()
- bug 描述:该函数的 _forward 中是通过 get_nodes 来获取各层节点,并记录节点的 id 和 level,这就导致某些节点由于其下具有不同长度的到叶节点的路径,因此节点会同时属于多个 level,最终导致其在 id_to_height_s 中被记录为有多个高度,这进一步导致其无法通过后面“具有相同 id 的节点所处的高度应该相同”的检验条件。
- 解决:
- 修复了 replace_identical_with_reference() 中的 _forward 部分,仅记录每个节点的最大高度。
- 去除了“具有相同 id 的节点所处的高度应该相同”的检验条件。
- 【bug fix】fix bug in value_parser.replace_identical_with_reference()
- computer_science.algorithm.redirector
- 【bug fix】fix bug in Redirectable_Sequence_Fetcher,将 _randomly_idx_redirector 中的 rng.choices 改为 rng.choice
- 添加了对应的测试用例。
- nested_dict_list
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kevin-toolbox-dev-1.4.11.tar.gz
(212.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kevin-toolbox-dev-1.4.11.tar.gz.
File metadata
- Download URL: kevin-toolbox-dev-1.4.11.tar.gz
- Upload date:
- Size: 212.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2130bd30572255fda4f5c34638ea104362a6f5b63b3483cadd8e0d282d92b8ce
|
|
| MD5 |
69e950dee0b73bb48cb130923659e45e
|
|
| BLAKE2b-256 |
669c3610b6842ee487c812e41c43e6616f0ea84a429eecfed6b9193af1a92734
|
File details
Details for the file kevin_toolbox_dev-1.4.11-py3-none-any.whl.
File metadata
- Download URL: kevin_toolbox_dev-1.4.11-py3-none-any.whl
- Upload date:
- Size: 386.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f7b9bada5c2391b217860c0d76eb0efba7cabe698118ad9f7ca73720bc9364a
|
|
| MD5 |
64d768f9bd13636c3dbf929467bf24ab
|
|
| BLAKE2b-256 |
3afd899a57a705259072b9102948d5a5e95fad5ab8cd78cc314759ae7ab1052d
|