MCPcopy
hub / github.com/kenshohara/3D-ResNets-PyTorch / load_value_file

Function load_value_file

utils.py:45–49  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

43
44
45def load_value_file(file_path):
46 with open(file_path, 'r') as input_file:
47 value = float(input_file.read().rstrip('\n\r'))
48
49 return value
50
51
52def calculate_accuracy(outputs, targets):

Callers 5

make_datasetFunction · 0.90
make_datasetFunction · 0.90
make_datasetFunction · 0.90
make_datasetFunction · 0.90
make_untrimmed_datasetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected