chenchiwei / tradaboost

Transfer learning algorithm TrAdaboost,coded by python
MIT License
119 stars 75 forks source link

计算error的时候用的是目标域数据,你写的是源域数据吧。 #18

Closed zhengchu1994 closed 3 years ago

zhengchu1994 commented 3 years ago
        error_rate = calculate_error_rate(label_S, result_label[row_A:row_A + row_S, i],
                                          weights[row_A:row_A + row_S, :])
LaplaceZhang commented 3 years ago

是的,这里需要修改,不然循环空转没有提升

        error_rate = self.calculate_error_rate(Target_label, result_label[:row_A, i],
                                               weights[:row_A])