MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / train_network

Function train_network

yolo_detector/darknet_opt/src/network.c:310–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310float train_network(network *net, data d)
311{
312 assert(d.X.rows % net->batch == 0);
313 int batch = net->batch;
314 int n = d.X.rows / batch;
315
316 int i;
317 float sum = 0;
318 for(i = 0; i < n; ++i){
319 get_next_batch(d, batch, i*batch, net->input, net->truth);
320 float err = train_network_datum(net);
321 sum += err;
322 }
323 return (float)sum/(n*batch);
324}
325
326void set_temp_network(network *net, float t)
327{

Callers 15

train_threadFunction · 0.85
train_regressorFunction · 0.85
train_tagFunction · 0.85
train_captchaFunction · 0.85
train_yoloFunction · 0.85
train_cocoFunction · 0.85
train_voxelFunction · 0.85
train_attentionFunction · 0.85
train_superFunction · 0.85
train_dcganFunction · 0.85
train_colorizerFunction · 0.85
train_segmenterFunction · 0.85

Calls 2

get_next_batchFunction · 0.85
train_network_datumFunction · 0.85

Tested by

no test coverage detected