12 const std::string jetLinkName =
"jetLink";
13 template<
typename T,
typename C>
14 std::set<std::string> merged(
T get,
const C&
c) {
18 throw std::runtime_error(
"inconsistent dependencies in folds");
24 const std::vector<std::string>& nn_files,
28 std::vector<std::shared_ptr<const ftd::GNN>> nns;
29 for (
const auto& nn_file: nn_files) {
30 nns.emplace_back(std::make_shared<const ftd::GNN>(nn_file, o));
39 const std::vector<std::string>& nn_files,
40 const std::string& fold_hash_name,
46 const std::vector<std::shared_ptr<const GNN>>& nns,
47 const std::string& fold_hash_name):
49 m_fold_hash(fold_hash_name),
50 m_jetLink(jetLinkName)
72 return merged([](
const auto&
f){
return f.getDecoratorKeys(); },
m_folds);
75 return merged([](
const auto&
f){
return f.getAuxInputKeys(); },
m_folds);
78 return merged([](
const auto&
f){
return f.getConstituentAuxInputKeys(); },
m_folds);