MCPcopy
hub / github.com/bazingagin/npc_gzip / process

Function process

original_codebase/data.py:128–134  ·  view source on GitHub ↗
(dataset)

Source from the content-addressed store, hash-verified

126 """
127
128 def process(dataset):
129 pairs = []
130 for i in range(len(dataset.data)):
131 text = dataset.data[i]
132 label = dataset.target[i]
133 pairs.append((label, text))
134 return pairs
135
136 newsgroups_train = fetch_20newsgroups(subset="train")
137 newsgroups_test = fetch_20newsgroups(subset="test")

Callers 8

load_20newsFunction · 0.85
load_ohsumed_singleFunction · 0.85
load_r8Function · 0.85
load_trecFunction · 0.85
load_kinnews_kirnewsFunction · 0.85
load_swahiliFunction · 0.85
load_filipinoFunction · 0.85
load_custom_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected