Open gucasbrg opened 7 years ago
if(this->x.find(key) == this->x.end()) { this->x[key] = value; } else { this->x[key] += value; }
麻烦问一下,这段代码特征自加是个什么场景?
同一行样本出现了重复的特征名,我采取的做法是把特征值累加,当然也可以覆盖,或者直接报错。看项目需要。
麻烦问一下,这段代码特征自加是个什么场景?