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 0.2.7(2023-03-04)
    • 将 scientific_computing 模块更名为 kevin_toolbox.math
    • 增加了 computer_science 模块,该模块目前主要包含数据结构与算法的实现。
    • 增加了 math.number_theory 模块。
  • v 1.0.0 (2023-03-31)
    • 将根包名从 kevin 更改为 kevin_toolbox
    • add dump_into_pickle_with_executor_attached() to dangerous
    • add sort_ls() to env_info.version
  • v 1.0.1(2023-04-09)
    • computer_science.algorithm.utils

      • move get_subsets() from utils to utils.for_seq
      • add flatten_list() to utils.for_seq
      • add deep_update() to utils.for_dict
      • add get_hash() to utils
    • computer_science.algorithm.pareto_front

      • add get_pareto_points_idx() to pareto_front
  • v 1.0.2 (2023-04-10)
    • patches.for_os
      • add remove() to for_os
    • env_info
      • fix check_validity_and_uninstall.py and check_version_and_update.py
        • modify the type of para "verbose"
  • v 1.0.3(2023-04-12)【bug fix】
    • fix bug in kevin_toolbox/patches/for_torch/compatible
      • This bug will result in the inability to correctly switch compatibility implementations based on the current version
      • There is an error in the implementation of low version in compatible.where
  • v 1.0.4(2023-04-13)
    • 更改了 env_info.version.parse_to_array 对于不合规版本字符串的解释方式,可能对 version.compare 的结果早晨用影响
    • modify get_hash() in computer_science.algorithm.utils
  • v 1.0.5(2023-04-21)【bug fix】
    • 修复了 computer_science.algorithm.utils.for_seq 中的 flatten_list() 在 depth=None 时候报错的bug
    • 修复了 computer_science.algorithm.utils 中的 get_hash()
    • 修复了 patches 中的 for_os.remove() 无法移除非空文件夹的问题,并添加了测试用例。
  • v 1.0.6(2023-04-24)
    • add spilt_integer_most_evenly() to math.utils
    • add Mutex_Lock(互斥锁) to computer_science.algorithm.locks。测试文件已添加。
    • add normalize() 、softmax()、cos_similar() to patches.for_numpy.linalg
  • v 1.0.7(2023-05-22)【bug fix】
    • fix bug of cos_similar() in patches.for_numpy.linalg
    • 优化了 kevin_toolbox.geometry.for_boxes 中的 detect_collision_inside_boxes()
    • 在 data_flow.file.json_ 中增加了 converters for write
  • v 1.0.8 (2023-05-26)
    • 增加了 patches.for_optuna 其中包含 sample_from_feasible_domain() 等函数
    • 增加了 patches.utils 其中包含 get_value_by_name() 等函数

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

Uploaded Source

Built Distribution

kevin_toolbox-1.0.8-py3-none-any.whl (184.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kevin-toolbox-1.0.8.tar.gz
  • Upload date:
  • Size: 104.2 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.8.tar.gz
Algorithm Hash digest
SHA256 db4f313523b990a3c87a004e57820ba52e36f5679593a494ad7975dbfc50fb71
MD5 df57c04bc01d8dcda1913c2b63be4d62
BLAKE2b-256 e9441a07d46d277322e7183387188d6581b10fd861d7083bae0f18cce2baed9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kevin_toolbox-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3b590db14ccf495b0f24444202378ec5e9a1da0aa43d27162f851b2c306ec5d7
MD5 29df1cb534110d031329d8c20b8b262b
BLAKE2b-256 bb051d21165490aaf728616e60bd03750c78031252fb0fbb76db34c8512ac71b

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