Typedef sparsebase::experiment::KernelFunction

Typedef Documentation

using sparsebase::experiment::KernelFunction = std::function<std::any(std::unordered_map<std::string, format::Format*> &data, std::any &fparams, std::any &pparams, std::any &kparams)>

Function template for kernel. All kernel methods that are going to be run must follow this function definition.

Param data

Contains the data needed for the preprocessing. This map is returned by the DataLoader and extended by the preprocessing.

Param fparams

Parameters specific to the target file.

Param pparams

Parameters specific to the preprocessing.

Param kparams

Parameters specific to the kernel.

Return

The results of the kernel. The results are stored in _results.