MCPcopy Create free account
hub / github.com/davisking/dlib / corpus

Function corpus

dlib/test/tfidf.cpp:27–34  ·  view source on GitHub ↗

Three documents over terms 0 to 3: term: 0 1 2 3 documents in: 1 3 1 1 total count: 1 4 3 1

Source from the content-addressed store, hash-verified

25 // documents in: 1 3 1 1
26 // total count: 1 4 3 1
27 std::vector<sparse_type> corpus()
28 {
29 return {
30 {{0,1}, {1,2}},
31 {{1,1}, {2,3}},
32 {{1,1}, {3,1}}
33 };
34 }
35
36// ----------------------------------------------------------------------------------------
37

Callers 7

test_defaultsFunction · 0.85
test_term_selectionFunction · 0.85
test_weighting_optionsFunction · 0.85
test_edge_casesFunction · 0.85
test_map_samplesFunction · 0.85
test_integer_countsFunction · 0.85
test_serializationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected