#include "../wrapped_calcer.h" #include int main(int argc, char** argv) { { ModelCalcerWrapper calcer; calcer.init_from_file("model.bin"); std::cout << calcer.CalcFlat(std::vector(100)) << std::endl; std::cout << calcer.CalcFlat(std::vector(100, 1.0f)) << std::endl; } { ModelCalcerWrapper calcer("model.bin"); std::vector catFeatures = {"1", "2", "3"}; std::cout << calcer.Calc(std::vector(100), catFeatures) << std::endl; std::cout << calcer.Calc(std::vector(100, 1.0f), std::vector()) << std::endl; } return 0; }