Current collected state Current
Observed since 20 Oct, 22:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A simple agentic AI package using reinforcement learning
A simple agentic AI package using reinforcement learning. This package provides a basic implementation of a Q-learning agent that can interact with a simple environment to achieve goals.
pip install AgenticLearnPro
from AgenticLearnPro.agent import QLearningAgent
from AgenticLearnPro.environment import SimpleEnv
# Create environment and agent
env = SimpleEnv()
agent = QLearningAgent(state_space=env.state_space, action_space=env.action_space)
# Train the agent
for episode in range(100):
state = env.reset()
done = False
while not done:
action = agent.choose_action(state)
next_state, reward, done = env.step(action)
agent.learn(state, action, reward, next_state)
state = next_state
agent.decay_exploration()
# Test the trained agent
state = env.reset()
done = False
total_reward = 0
while not done:
action = agent.choose_action(state)
next_state, reward, done = env.step(action)
total_reward += reward
state = next_state
print(f"State: {state}, Action: {action}, Reward: {reward}")
print(f"Total reward: {total_reward}")
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.2 | 25 May 2025 | 2 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 22:17 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:b3ed85613b158dcf1873b77fa9d49e3767bc3239586bcd60cd7cd4855a6fa8b8