Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | None |
Language | Haskell98 |
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
- data Tally = Tally {
- matchState :: [Match]
- matchAbsence :: [Match]
- mismatchState :: [Match]
- expectedPresence :: [Match]
- expectedAbsence :: [Match]
- data Match = Match {}
- prettyMatches :: [Match] -> Doc
- summarise :: Foldable t => t Tally -> Tally
- summariseTasks :: Map (TaskID, NodeID) Tally -> Map TaskID Tally
- score :: (Tally -> Int) -> (Tally -> Int) -> Tally -> Double
- tally :: FilePath -> FilePath -> IO (Map (TaskID, NodeID) Tally)
- tally' :: Xlsx -> Map (StudentID, TaskID) Evidence -> IO (Map (TaskID, NodeID) Tally)
- getSpreadsheet :: FilePath -> IO Xlsx
- getEvidence :: Xlsx -> Map (StudentID, TaskID) Evidence
- getHumanMachineFiles :: FilePath -> FilePath -> IO [(PilotID, FilePath, FilePath)]
- readEvidence :: FilePath -> IO (Map (StudentID, TaskID) Evidence)
Documentation
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.
Tally | |
|
Where did a match or mismatch occur?
Match | |
|
prettyMatches :: [Match] -> Doc Source #
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.