Content quiz performance#97
Open
nononovia wants to merge 17 commits into
Open
Conversation
Comment and readme file is still required
…nt_quiz attempts. Clean up graph generated. Change using Statistic.stdev to numpy.std due to statistical rounding error.
write new util funtions to compute first attempt grade on content quizzes
…t_quiz_performance
added modular graph
Opeyem1a
requested changes
Feb 7, 2022
…culations. Eg. overall on module graph is calculated by averaging the mean of each module and calculating the standard deviation of the mean of each module, rather than getting each student's submission and averaging it across all page and modules.
Opeyem1a
requested changes
Feb 8, 2022
| cols = [col for col in page_content_quiz_df if col.startswith('q')] | ||
| questions_df = page_content_quiz_df[cols] | ||
|
|
||
| def first_attempt_grade(row): |
Collaborator
There was a problem hiding this comment.
You could probably generalize this inner function since it's being used twice I think
| Retrieves the average number of content quiz attempts before a correct answer for a page. If given a | ||
| data448_id, only retrieves that student's reading speed for the page. Without a data448_id, retrieves the | ||
| average reading speed of that page. | ||
| average number of attempts of that page. |
| from .canvas_api import setup_submissions_filepath, get_quiz_id_from_file_name, DateTimeEncoder | ||
| from .data_cleaner import keep_latest_survey_attempt | ||
| from .util import normalize | ||
| from .plots import set_plot_settings |
Collaborator
There was a problem hiding this comment.
it's dangerous to auto-format __init__.py files since it can create circular imports
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactored code for processing number of content quiz attempts to utilize util functions.
Added calculation and graphing for content quiz first attempt grade.
Generates both by page and by module plots for both extra attempts and first attempt grade.