Skip to content

Commit

Permalink
Remove unused group tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
peddie committed Aug 6, 2024
1 parent 20723e1 commit f350f50
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/albatross/src/models/pic_gp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,15 +639,12 @@ class PICGaussianProcessRegression
features.size());
Eigen::VectorXi col_alloc{Eigen::VectorXi::Zero(features.size())};
bool all_same_group = true;
bool all_in_groups = true;
for (Eigen::Index j = 0; j < features.size(); ++j) {
groups[j] = sparse_gp_fit.measurement_groups.find(
independent_group_function_(without_measurement(features[j])));
if (groups[j] != sparse_gp_fit.measurement_groups.end()) {
col_alloc(j) = groups[j]->second.block_size;
all_same_group = all_same_group && groups[j] == groups[0];
} else {
all_in_groups = false;
}
feature_to_block[j] =
std::distance(sparse_gp_fit.measurement_groups.begin(), groups[j]);
Expand Down Expand Up @@ -726,15 +723,12 @@ class PICGaussianProcessRegression
features.size());
Eigen::VectorXi col_alloc{Eigen::VectorXi::Zero(features.size())};
bool all_same_group = true;
bool all_in_groups = true;
for (Eigen::Index j = 0; j < features.size(); ++j) {
groups[j] = sparse_gp_fit.measurement_groups.find(
independent_group_function_(without_measurement(features[j])));
if (groups[j] != sparse_gp_fit.measurement_groups.end()) {
col_alloc(j) = groups[j]->second.block_size;
all_same_group = all_same_group && groups[j] == groups[0];
} else {
all_in_groups = false;
}
feature_to_block[j] =
std::distance(sparse_gp_fit.measurement_groups.begin(), groups[j]);
Expand Down

0 comments on commit f350f50

Please sign in to comment.