Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cora document classification dataset, from :
McCallum, A. and Nigam, K., "Automating the construction of internet portals with machine learning" Information Retrieval, 2000
Qing Lu, and Lise Getoor. "Link-based classification." ICML, 2003.
https://linqs.soe.ucsc.edu/data
The dataset consists of 2708 scientific publications classified into one of seven classes. The citation network consists of 5429 links. Each publication in the dataset is described by a 01-valued word vector indicating the absencepresence of the corresponding word from the dictionary. The dictionary consists of 1433 unique words.
Synopsis
- stash :: FilePath -> IO ()
- sourceCoraGraphEdges :: (MonadResource m, MonadThrow m) => FilePath -> Map String (Int16, Seq Int16, CoraDoc) -> ConduitT i (Maybe (Graph (ContentRow Int16 CoraDoc))) m ()
- loadCoraGraph :: FilePath -> IO (Graph (ContentRow Int16 CoraDoc))
- data CoraDoc
1. Download the dataset
2. Reconstruct the citation graph
:: (MonadResource m, MonadThrow m) | |
=> FilePath | directory of data files |
-> Map String (Int16, Seq Int16, CoraDoc) |
|
-> ConduitT i (Maybe (Graph (ContentRow Int16 CoraDoc))) m () |
See sourceGraphEdges
See loadGraph
Types
document classes of the Cora dataset
Instances
Enum CoraDoc Source # | |
Generic CoraDoc Source # | |
Show CoraDoc Source # | |
Binary CoraDoc Source # | |
Eq CoraDoc Source # | |
Ord CoraDoc Source # | |
Defined in Algebra.Graph.IO.Datasets.LINQS.Cora | |
type Rep CoraDoc Source # | |
Defined in Algebra.Graph.IO.Datasets.LINQS.Cora type Rep CoraDoc = D1 ('MetaData "CoraDoc" "Algebra.Graph.IO.Datasets.LINQS.Cora" "algebraic-graphs-io-0.5.0.1-DMAyteJuhT8EAUES5OdwH7" 'False) ((C1 ('MetaCons "CB" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "GA" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "NN" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "PM" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RL" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "RuL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Th" 'PrefixI 'False) (U1 :: Type -> Type)))) |