tbrown122387 / autograder_gen_site

MIT License
0 stars 3 forks source link

interface for **instructor's local machine** grading (not gradescope.com) #14

Open tbrown122387 opened 3 years ago

tbrown122387 commented 3 years ago

Instead of generating an autograder.zip file this time, we must generate two files: run_autograder.R and assignment_tests.R. The first will run on the instructor's own machine.

Extra thoughts:

library(stringr)
library(gradeR)
library(dplyr)

# set the root directory
setwd("~/UVa/all_teaching/fall19_5430/data/")

grades <- calcGrades("../homeworks/hw2/submissions/HW2/", # submission directory
                     "../homeworks/hw2/hw2_test_file.R",  # your test file
                     verbose=TRUE)  

# assign points to each number
grades$perc <- rowSums(grades[,-1])/(ncol(grades)-1)*100

# only see final scores
# grades[,c(1,ncol(grades))]

# look at the percent of students that got each question correct
# super low numbers coul dbe indicative of faulty tests
# also helpful for grade reporting
# colSums(grades[,-1])/nrow(grades)
nithvijay commented 3 years ago

15 touches upon one way we could combine the two interfaces. It allows some expandability if there are other features we want to include as well.