analysis script

Analysis module for estimating scores for performing statistical tests.

Run on the command line, e.g.:

$ python analysis.py

Note

This module has dependencies not required by the CAQE web application. To install these dependencies, run pip install -r analysis_requirements.txt.

analysis.get_ratings_data(output_file=None)[source]

Get the ratings data from the database as a DataFrame

Parameters:output_file (str) – A filepath to an output CSV file (default is None)
Returns:ratings – All of the rating data from the dictionary.
Return type:pandas.DataFrame
analysis.plot_mushra_boxplots(data, size=5, output_file=None)[source]

Plot the MUSHRA ratings as a grid of boxplots. If output_file is defined, then save the plot to file.

Parameters:
  • data (pandas.DataFrame) – The ratings data obtained from get_ratings_data.
  • size (float) – Height of each boxplot in inches. (default is 5)
  • output_file (str) – Path to the output file location. (default is None)
Returns:

g

Return type:

seaborn.axisgrid.FacetGrid