MCPcopy Create free account
hub / github.com/IntelligentSystemsLab/ST-EVCDP / data_mix

Function data_mix

functions.py:223–227  ·  view source on GitHub ↗
(ori_data, pse_data, mix_ratio)

Source from the content-addressed store, hash-verified

221
222
223def data_mix(ori_data, pse_data, mix_ratio):
224 shred = int(ori_data.shape[0] * mix_ratio)
225 mix_data = ori_data
226 mix_data[shred:] = pse_data[shred:] # mix on the 1st dimension: batch
227 return mix_data

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected