Closed YELLOWH closed 2 years ago
for(unordered_map<string, double>::iterator iter = sample1.x.begin(); iter != sample1.x.end(); ++iter) { const string& index = iter->first; if(theta.find(index) == theta.end()) { theta[index] = pModel->getOrInitModelUnit(index); } }
for(unordered_map<string, double>::iterator iter = sample2.x.begin(); iter != sample2.x.end(); ++iter) { const string& index = iter->first; if(theta.find(index) == theta.end()) { theta[index] = pModel->getOrInitModelUnit(index); } }
看了楼主博客的公式推导,还是不太明白,望楼主看到的话可以解答下,谢谢啦
for(unordered_map<string, double>::iterator iter = sample1.x.begin(); iter != sample1.x.end(); ++iter) { const string& index = iter->first; if(theta.find(index) == theta.end()) { theta[index] = pModel->getOrInitModelUnit(index); } }
for(unordered_map<string, double>::iterator iter = sample2.x.begin(); iter != sample2.x.end(); ++iter) { const string& index = iter->first; if(theta.find(index) == theta.end()) { theta[index] = pModel->getOrInitModelUnit(index); } }
看了楼主博客的公式推导,还是不太明白,望楼主看到的话可以解答下,谢谢啦