Datasets:
apcl
/

Modalities:
Text
Formats:
webdataset
Libraries:
Datasets
WebDataset
mcmillco's picture
init
e789b06
raw
history blame
498 Bytes
TDAT: public double sumSquaredError(V parentEntry) {
double distance = 0.0;
if (isLeaf()) {
for (V key : keys) {
distance += key.distanceSquared(parentEntry);
}
} else {
for (int i = 0; i < count(); ++i) {
distance += children.get(i).sumSquaredError(keys.get(i));
}
}
return distance;
}
COM: <s> calculate sum of squared error between vecotrs in leaves and their </s>