Advise-me-0.1: Assessment services for the Advise-Me project

Maintainerbastiaan.heeren@ou.nl
Stabilityprovisional
Portabilityportable (depends on ghc)
Safe HaskellNone
LanguageHaskell98

Database.HumanAssessment

Description

Access to human assessments of the databases.

This module reads spreadsheets containing human assessments of the data we have collected. This will enable us to compare the data, and use human-collected evidence to feed the Bayesian networks.

Synopsis

Documentation

data Tally Source #

Group matches together groupMatches :: [Match] -> [((StudentID,TaskID), Match)] groupMatches = orderBy (locStudent &&& locTask)

Counter for the number of times we encounter agreements and disagreements between the human and the machine assessment.

Constructors

Tally 

Fields

Instances
Semigroup Tally Source # 
Instance details

Defined in Database.HumanAssessment

Methods

(<>) :: Tally -> Tally -> Tally #

sconcat :: NonEmpty Tally -> Tally #

stimes :: Integral b => b -> Tally -> Tally #

Monoid Tally Source # 
Instance details

Defined in Database.HumanAssessment

Methods

mempty :: Tally #

mappend :: Tally -> Tally -> Tally #

mconcat :: [Tally] -> Tally #

Pretty Tally Source # 
Instance details

Defined in Database.HumanAssessment

Methods

pretty :: Tally -> Doc #

prettyList :: [Tally] -> Doc #

data Match Source #

Where did a match or mismatch occur?

Constructors

Match 

Fields

Instances
Pretty Match Source # 
Instance details

Defined in Database.HumanAssessment

Methods

pretty :: Match -> Doc #

prettyList :: [Match] -> Doc #

summarise :: Foldable t => t Tally -> Tally Source #

Combine multiple tallies.

summariseTasks :: Map (TaskID, NodeID) Tally -> Map TaskID Tally Source #

Summarise the tallies per task by combining the tallies for each node.

score :: (Tally -> Int) -> (Tally -> Int) -> Tally -> Double Source #

Convert tally fields to a corresponding score.

tally' :: Xlsx -> Map (StudentID, TaskID) Evidence -> IO (Map (TaskID, NodeID) Tally) Source #

Get the tallies for every task/node combination, based on a spreadsheet file with expected, human-assessed values and a database file with observed, IDEAS-assessed values.

getEvidence :: Xlsx -> Map (StudentID, TaskID) Evidence Source #

Get expected evidence from a spreadsheet.

getHumanMachineFiles :: FilePath -> FilePath -> IO [(PilotID, FilePath, FilePath)] Source #

Obtain a list of pilots and associated spreadsheet + database files.

readEvidence :: FilePath -> IO (Map (StudentID, TaskID) Evidence) Source #

Get evidence from an Excel file.