Metadata-Version: 2.1
Name: kevin-toolbox-dev
Version: 1.2.8
Summary: 一个常用的工具代码包集合
Home-page: https://github.com/cantbeblank96/kevin_toolbox
Download-URL: https://github.com/username/your-package/archive/refs/tags/v1.0.0.tar.gz
Author: kevin hsu
Author-email: xukaiming1996@163.com
License: MIT
Keywords: mathematics,pytorch,numpy,machine-learning,algorithm
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: plot
Provides-Extra: rest

# kevin_toolbox

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



环境要求

```shell
numpy>=1.19
pytorch>=1.2
```

安装方法：

```shell
pip install kevin-toolbox  --no-dependencies
```



[项目地址 Repo](https://github.com/cantbeblank96/kevin_toolbox)

[使用指南 User_Guide](./notes/User_Guide.md)

[免责声明 Disclaimer](./notes/Disclaimer.md)

[版本更新记录](./notes/Release_Record.md)：

- v 1.2.8 （2023-11-13）【new feature】
  - data_flow.file.markdown
    - 【new feature】modify generate_table()
      - 支持两种输入模式（新增了第二种模式）
        1. 简易模式：
                    ` content_s = {<title>: <list of value>, ...}`
                     此时键作为标题，值作为标题下的一系列值。
                     由于字典的无序性，此时标题的顺序是不能保证的，若要额外指定顺序，请使用下面的 完整模式。
        2. 完整模式:
                    `content_s = {<index>: {"title": <title>,"values":<list of value>}, ...}`
                    此时将取第 `<index>` 个 "title" 的值来作为第 `<index>` 个标题的值。values 同理。
                    该模式允许缺省某些 `<index>`，此时这些 `<index>` 对应的行/列将全部置空。
      - 部分兼容旧版的输入（对应于上面的简易模式），但是不再支持通过 ordered_keys 来指定简易模式下的标题顺序。若要实现类似功能，请直接使用 collections.OrderedDict 作为输入。
      - 支持通过 chunk_nums 和 chunk_size 参数实现表格的分割并列显示。
      - 支持通过 b_allow_misaligned_values 参数来允许不对齐的 values。
      - 支持通过 f_gen_order_of_values 来指定 values 的排序顺序。
      - 添加了对应的测试用例。
  - patches.for_numpy.linalg
    - 【new feature】modify softmax()
      - 新增了 temperature 参数，该参数起到对输入中的相对小/大值的抑制/增强作用。
      - 新增了 b_use_log_over_x 参数，用于简化 softmax(log(x)) 计算。
      - 添加了对应的测试用例。
  - nested_dict_list
    - 改造模块加载方式，不再支持通过x.y间接加载子模块，比如 nested_dict_list.serializer 等（相当于回退到1.2.6）
  - computer_science.algorithm.statistician
    - 进行重构，从 Average_Accumulator 和 Exponential_Moving_Average 中抽象出基类 Accumulator_Base。
    - 【new feature】在 Accumulator_Base 中增加了 load_state_dict() 和 state_dict() 接口用于加载和获取实例状态。
      - 增加了对应的测试用例。
