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

Function meta_division

functions.py:207–212  ·  view source on GitHub ↗
(data, support_rate, query_rate)

Source from the content-addressed store, hash-verified

205
206
207def meta_division(data, support_rate, query_rate):
208 data_length = len(data)
209 support_division_index = int(data_length * support_rate)
210 supprot_set = data[:support_division_index, :]
211 query_set = data[support_division_index:, :]
212 return supprot_set, query_set
213
214
215def zero_init_global_gradient(model):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected