Skip to main content

一个常用的工具代码包集合

Project description

kevin_toolbox

一个通用的工具代码包集合

环境要求

numpy>=1.19
pytorch>=1.2

安装方法:

pip install kevin-toolbox  --no-dependencies

项目地址 Repo

使用指南 User_Guide

免责声明 Disclaimer

版本更新记录

  • v 1.0.13(2023-06-14)
    • computer_science.algorithm.for_nested_dict_list

      • 添加 copy_() 方法用于复制嵌套字典列表,支持深拷贝(复制结构和叶节点)和浅拷贝(仅复制结构,不新建叶节点)
      • 将 get_leaf_nodes() 修改成 get_nodes(),新增了 level 参数用于支持获取某一层的参数,原来的 get_leaf_nodes(var) 等效于 get_nodes(var,level=-1)
      • 修改 traverse(),增加了 b_traverse_matched_element 参数用于控制,对于匹配上的元素,经过处理后,是否继续遍历该元素的内容。
    • patches.for_test

      • modify check_consistency()
    • computer_science.algorithm.registration

      • 修改了 Registry.add() 中对于参数 b_force 的行为,对于 b_force:

        • 默认为 False,此时当 name 指向的位置上已经有成员或者需要强制修改database结构时,将不进行覆盖而直接跳过,注册失败
        • 当设置为 True,将会强制覆盖

        该改动的目的是避免对已有的成员进行重复的注册更新。

Project details


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-1.0.13.tar.gz (112.9 kB view details)

Uploaded Source

Built Distribution

kevin_toolbox-1.0.13-py3-none-any.whl (200.7 kB view details)

Uploaded Python 3

File details

Details for the file kevin-toolbox-1.0.13.tar.gz.

File metadata

  • Download URL: kevin-toolbox-1.0.13.tar.gz
  • Upload date:
  • Size: 112.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.11

File hashes

Hashes for kevin-toolbox-1.0.13.tar.gz
Algorithm Hash digest
SHA256 cd4ad99e801ef879ffe26c993bb2518e1f73ffc3a331226f5c8906dc1c4d0282
MD5 79f6ad7c09685da1c11da163bbdb7bfa
BLAKE2b-256 4e148cb0ff7cbfc3abde5e2ec6bc10e7a8a2a139b5f39cc7c529a3a2c35f7336

See more details on using hashes here.

File details

Details for the file kevin_toolbox-1.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for kevin_toolbox-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 27bb3aeb7b358b7b82cbf173d3b4e1c8f62a373bd76d9079c85a839782e3830c
MD5 e2f0999f3a26015d182a76f7ceaa6eac
BLAKE2b-256 9de9af618626dbaade4d654f16255821295a97436a2805afc04f663baabe2bdd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page