Skip to main content

Accounting GYM for Accountant Reinforcement Learning .会计强化学习GYM。

Project description

Accounting Gym-Env 智能会计强化学习虚拟环境

logo

Redefining Accounting! Developed by Bfsu Ai-Accounting Team (c) 2023 Github

PyPI - Python Version Downloads

Install & Import 安装和导入

For detailed installation instructions, see the documentation.

pip install cpagym
import gymnasium as gym
import cpagym as cg 

Accounting Envs 主要会计环境

  1. Moral_Hazard 道德风险
env = gym.make("Moral_Hazard-v1")
observation, info = env.reset(seed=2)
n_steps = 10
for _ in range(n_steps):
    action = env.action_space.sample()
    observation, reward, terminated, truncated, info = env.step(action)
    print(observation, reward, terminated, truncated, info )
    if terminated or truncated:
        observation, info = env.reset()
  1. AsymmetricInfo 信息不对称
env = gym.make("AsymmetricInfo-v1")
observation, info = env.reset(seed=2)
n_steps = 20
for _ in range(n_steps):
    action = env.action_space.sample()
    observation, reward, terminated, truncated, info  = env.step(action)
    print(observation, reward, terminated, truncated, info )
    if terminated or truncated:
        observation, info = env.reset()
  1. Inventory 存货管理
env = gym.make("Inventory-v1")
observation, info = env.reset(seed=2)
n_steps = 30
#plot demand
env.plot_demand()        
for _ in range(n_steps):
    action = env.action_space.sample()
    observation, reward, terminated, truncated, info  = env.step(action)
    print(observation, reward, terminated, truncated, info )
    if terminated or truncated:
        observation, info = env.reset()

配套智能会计包CPANLP

logo

Check out: https://cpanlp.com/reinforcement

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

cpagym-0.1.0.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

cpagym-0.1.0-py3-none-any.whl (12.2 kB view hashes)

Uploaded Python 3

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