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

Bad design of Scorer (it was me) #247

Open
fredshone opened this issue Sep 8, 2023 · 0 comments
Open

Bad design of Scorer (it was me) #247

fredshone opened this issue Sep 8, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@fredshone
Copy link
Collaborator

What can be improved?

Not urgent.

pam.scoring.PlanScorer as a nasty interface (score_person and score_plan). Config object (a nested dict with requiring particular nesting and keys) mostly to blame.

Suggest we design a matsim config file object that can be relied upon to provide a solid design here.

Might be worth using mc.build.Config(matsim_config.xml). This has the advantage of also describing which attribute key is being used (usually "subpopulation") and would allow matsim.xml to be used rather than carefully creating a new config. Obvious downside is that mc becomes a dependancy and we would presumably want to publish (it is already open however).

But thinking further ahead, this would facilitate cli commands such as optimise gridsearch PLANS_PATH CONFIG_PATH OUT_PATH.

Version

0.2.0

@fredshone fredshone added the enhancement New feature or request label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant