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

Analyse statistics from all csv files in the directory or a given data pack #12

Open
TechnologyClassroom opened this issue Oct 12, 2020 · 7 comments

Comments

@TechnologyClassroom
Copy link
Owner

TechnologyClassroom commented Oct 12, 2020

Analyse statistics from all csv files in the directory or a given data pack.

builddatapack.sh runs an arbitrary number of simulations and defaults to 40 runs. Each simulation saves its data into a csv file that looks like this. Each simulation runs some statistics function stats() in dicemechanicsim.py. It would be cool to run statistics comparing several simulations. This would allow easier comparisons between settings used to generate datapacks.

Example data packs can be found in dice-mechnanic-datapacks. data20180219-2137.zip is the latest one uploaded to dice-mechanic-datapacks (dmd).

The best place for this type of script might be a new file called data/datapackstats.py that could be called at the end of builddatapack.sh with a line like python3 ./data/datapackstats.py.

Ideas for statistics:

  • What is the average of all event 6 scores within the datapack?
  • What is the average high score within each csv?
  • What is the average low score within each csv?
  • What is the average score after each event?
  • Inspect the stats() function in dicemechanicsim.py
@neil007m
Copy link

I'd like to work on this. Can you provide some more information on this?

@TechnologyClassroom
Copy link
Owner Author

@neil007m Cool! Yes, I will write up more on my lunch break in an hour or two. Let me know if you have any specific questions.

@TechnologyClassroom
Copy link
Owner Author

@neil007m I added more details. Let me know if it makes more sense or if you need more information.

@neil007m
Copy link

@TechnologyClassroom thanks for adding the details! I have a much clearer picture now, you can assign it to me. I should be able to start on this tonight (EDT)

@TechnologyClassroom
Copy link
Owner Author

TechnologyClassroom commented Oct 13, 2020

@neil007m Cool! Assigned! Let me know if you have any questions.

The statistics part is more open ended so feel free to be creative or come up with silly metrics. If you want to graph something, feel free to reuse code from plotdicemechanic.py if it helps.

@TechnologyClassroom TechnologyClassroom changed the title Analyse and plot averages from several simulations Analyse statistics from all csv files in the directory or a given data pack Oct 13, 2020
@TechnologyClassroom
Copy link
Owner Author

@neil007m One thing to note is that there were changes to my master branch since your last pull request.

@neil007m
Copy link

@TechnologyClassroom Thanks for the heads up, I'll make sure to fetch the latest from your master. Something came up yesterday, I'll be able to get a good chunk of time after work to get to this.

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

No branches or pull requests

2 participants