MCPcopy Create free account
hub / github.com/YikiDragon/SolarPanelDefectDetect / balanced_dataset

Function balanced_dataset

SVM_Kernel/utils.py:50–94  ·  view source on GitHub ↗

:param data_list: 数据标签列表 :param sample_refer: 取样参考,0参考损坏集,1参考完好集 :param sample_rate: 取样率 :param label_ratio: 标签比 :param shuffle: 是否打乱 :return: train_dataset 平衡训练集 test_dataset 平衡测试集

(data_list, sample_refer=0, sample_rate=0.8, label_ratio=1, shuffle=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

train.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected