Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Examples.py #36

Closed
Rapfff opened this issue Sep 30, 2022 · 2 comments
Closed

Issue with Examples.py #36

Rapfff opened this issue Sep 30, 2022 · 2 comments

Comments

@Rapfff
Copy link

Rapfff commented Sep 30, 2022

Problem:

In Examples.py, line 189, I got TypeError: cannot unpack non-iterable Mdp object while doing:
mdp, input_alphabet = generate_random_mdp(num_states, input_len, num_outputs)

Solution:

In aalpy/utils/AutomatonGenerators.py, line 269, replace:
return Mdp(states[0], states) by return Mdp(states[0], states), inputs

:)

@emuskardin
Copy link
Member

Thanks, fixed :)

@emuskardin
Copy link
Member

emuskardin commented Oct 3, 2022

I will update the random MDP and SMM generation once I am back to work in a week or so. Just to make it a bit better, it is functional as is, but some things go on my nerves :)
There are some other examples that deal with learning of stochastic models in Examples.py, which might be more suited for your needs.

Btw, cool library with Baum-Welch algorithm, I was just thinking recently about adding those to AALpy :)
If you have some questions regarding anything let us know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants