PathmindAI / nativerl

Train reinforcement learning agents using AnyLogic or Python-based simulations
Apache License 2.0
19 stars 4 forks source link

Uploading gym or OR gym fails model analyzer #507

Closed slinlee closed 2 years ago

slinlee commented 3 years ago

When running train() from gym or OR gym, it fails model analysis with this message. This is on dev where @kepricon built the conda env so that it includes the latest Pathmind package (0.4)

 DENY\r\n\r\nNo module named 'pathmind.simulation.from_gym'; 'pathmind.simulation' is not a package"
def test_from_gym():
    env = gym.make("CartPole-v0")
    sim = from_gym(env)
    sim.train()

def test_from_or_gym():
    env = or_gym.make("Knapsack-v0")
    sim = from_gym(env)
    sim.train()
slinlee commented 3 years ago

@kepricon - fyi - Uploading gym/or gym env was a feature Max added after your latest updates to MA, which detect python simulation types. https://github.com/PathmindAI/pathmind-api/pull/31