Skip to main content

Trainify-proto

Project description

Trainify-proto

本工具是CAV2022中Trainify: A CEGAR-Driven Training and Verification Framework for Safe Deep Reinforcement Learning的原型工具,Trainify-proto在论文代码的基础上进行了重构改进,增强了易用性、可拓展性和通用性,实现了自定义抽象训练流程和自选形式化验证等功能。

安装

  1. pypi (完整功能)

    pip install Trainify-proto

    如果想体验最新功能,也可安装测试版本

    pip install -i https://test.pypi.org/simple/ Trainify-proto

  2. git clone(完整功能)

    通过git clone项目到本地,集成进自己的项目中使用

  3. web在线使用(部分功能)

核心模块

abstract 存放抽象相关工具

agents 存放自带agent/policy

core 核心组件

data 训练数据保存

env 存放自带env

evaluate 评估模块

test 测试代码

utils 工具函数

开发内容

  1. 环境与状态抽象 需要输入的环境信息:

    Dim:2
    State_var: x1, x2
    Range: [0,1] [0,4]
    dqn or ddpg
    Env class obj
    dynamics:  x1' = x1 + t *x2^2
                        x2' = x2+ t* x1
    
  2. 训练Policy与Agent

  3. 验证规则

    1. AG(safe) AF(taget)
    2. 返回['safe']的函数
  4. 统一输出

    1. 命令行中的统一格式规范的输出
    2. tensorboard 作为图表形式

发布

切换到publish分支

python setup.py sdist bdist_wheel

python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

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

Trainify-proto-0.0.4.tar.gz (48.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Trainify_proto-0.0.4-py3-none-any.whl (72.2 kB view details)

Uploaded Python 3

File details

Details for the file Trainify-proto-0.0.4.tar.gz.

File metadata

  • Download URL: Trainify-proto-0.0.4.tar.gz
  • Upload date:
  • Size: 48.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for Trainify-proto-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ff87251f015be6076513dba8310ef3ee3ee25288c66e9d0702341649b96803f8
MD5 868079efd26d36e3e35d209a19242ea0
BLAKE2b-256 7ee7df0f1b678cc6989e0be11513a8894484934a800dd0cbf1bc8880ae1e05c7

See more details on using hashes here.

File details

Details for the file Trainify_proto-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: Trainify_proto-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 72.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for Trainify_proto-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cc6861cfae93c6aa9203fa411092f7c005d56db90b9b6cbe0bda71d41335bb51
MD5 c9bc41f3b3a1ec67ee6210b3459efe0a
BLAKE2b-256 f17320f4fb33346e13d52e8d26b1c77c4b89bcb8c93a1606024a2b6a1412d78e

See more details on using hashes here.

Supported by

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