Accounting Reinforcement Learning GYM for Ai-Accountants .为会计人打造的专属智能会计强化学习框架。
Project description
Accounting Gym-Env 智能会计强化学习虚拟环境
Redefining Accounting! Developed by Bfsu Ai-Accounting Team (c) 2023 Github
Install & Import 安装和导入
For detailed installation instructions, see the documentation.
pip install cpagym
import gymnasium as gym
import cpagym as cg
Accounting Envs 主要会计环境
- 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()
- 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()
- 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
Check out: https://cpanlp.com/reinforcement
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(10.7 kB
view hashes)
Built Distribution
cpagym-0.1.2-py3-none-any.whl
(13.6 kB
view hashes)