MCPcopy Create free account
hub / github.com/CDTrans/CDTrans / compute_knn_idx

Function compute_knn_idx

processor/processor_uda.py:120–138  ·  view source on GitHub ↗
(logger, model, train_loader1, train_loader2, feat_memory1, feat_memory2, label_memory1, label_memory2, img_num1, img_num2, target_sample_num=2, topk=1, reliable_threshold=0.0)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

do_train_udaFunction · 0.85

Calls 2

count_target_usageFunction · 0.85
obtain_labelFunction · 0.85

Tested by

no test coverage detected