-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Some suggestions on quantecon.game_theory.normal_form_game #294
Comments
@Guo-Zhang Thanks for your thoughts. These parts of the library were written by very smart people who I respect a lot. I will leave it to them to see if they want to accept any of your suggestions. For these kinds of applications, the thing that we value the most is well written code that implements algorithms, or pull requests that improve those algorithms. |
Thanks for your reply. I am very impressed by the algorithms. However, the implement is only part of the open source program. Whether it is easy to use depends on not only the implements, but also the friendly interfaces and tutorials. For open source programs, people will always care whether it is easy to use, otherwise they will change to another packages or write codes by themselves. We write open source programs because we want others to use them. A good interface can also attract people to contribute them. What's more, good APIs and good organizations of the pacakges help people to find where they can contribute. Therefore, in my opinion, interfaces and documentations are more important than algorithms, especially in the early development of the packages. |
Hi @Guo-Zhang. This is great -- Thanks for giving us some feedback. We are always looking for constructive feedback from people using the code. I think what @jstac probably had in mind in his response, was that while ideas/suggestions are useful, what is often more useful is implementing the ideas/suggestions and letting them go through the pull request process. Having concrete changes in the code/documentation allows us to capture the vision of the comments better and then have a discussion about whether we think those changes are improvements. It seems like a lot of what you have in mind for the documentation could be captured by moving some of the documentation for As for the names, I think you are right that I think the API suggestion you have in mind is already implemented. At least if I run I'm having difficulty picturing what you have in mind for the suggestion related to using Of course I am always open to changing my mind if people disagree. @oyamad, @shizejin, and @mmcky will also have insightful comments to this discussion. |
@Guo-Zhang Thanks for the feedback. For the API, if you do something like import quantecon.game_theory as gt it will be even shorter as Adding labels to the actions, as in I too am curious about your plot method to visualize a game. A demonstrating notebook would be helpful. |
@cc7768 Thanks very much. I am going to explain more about my ideas. |
@jstac @cc7768 @oyamad Sorry for the late reply. I searched for all possible methods, but no good way to plot them directly because of the poor implements of visualization in Python. Here I write a very simple sample: It seems that if I want to express it clearly, I have to redefine a whole data structure for high-dimensional payoffs matrix and game tree structure. I am searching for good implements. |
Documentation
Names
game_thoery
can change togames
. It will not lose information, but we can think it more Pythonic becausegames
are objects, but theory itself is more abstract. Andnormal_form_game
can benormal
API
quantecon.game_theory.normal_form_game.Player
can bequantecon.games.Player
or evenquantecon.Player
. (The formal one may be better to read.)Implements
game.Alice
andgame['Alice']
to look at Alice's payoffs, and game.action1 or game['action1] to look at the payoffs of action1. (They are not difficult to implement by Python.)My contracts:
The text was updated successfully, but these errors were encountered: