MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / test_dataset

Function test_dataset

tests/c_api_test/test_.py:199–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198
199def test_dataset():
200 train = load_from_file(os.path.join(os.path.dirname(os.path.realpath(__file__)),
201 '../../examples/binary_classification/binary.train'), None)
202 test = load_from_mat(os.path.join(os.path.dirname(os.path.realpath(__file__)),
203 '../../examples/binary_classification/binary.test'), train)
204 free_dataset(test)
205 test = load_from_csr(os.path.join(os.path.dirname(os.path.realpath(__file__)),
206 '../../examples/binary_classification/binary.test'), train)
207 free_dataset(test)
208 test = load_from_csc(os.path.join(os.path.dirname(os.path.realpath(__file__)),
209 '../../examples/binary_classification/binary.test'), train)
210 free_dataset(test)
211 save_to_binary(train, 'train.binary.bin')
212 free_dataset(train)
213 train = load_from_file('train.binary.bin', None)
214 free_dataset(train)
215
216
217def test_booster():

Callers

nothing calls this directly

Calls 7

load_from_fileFunction · 0.85
load_from_matFunction · 0.85
free_datasetFunction · 0.85
load_from_csrFunction · 0.85
load_from_cscFunction · 0.85
save_to_binaryFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected