SEXP CatBoostOutputModel_R(SEXP modelParam, SEXP fileParam) { R_API_BEGIN(); TFullModelHandle model = reinterpret_cast<TFullModelHandle>(R_ExternalPtrAddr(modelParam)); OutputModel(*model, CHAR(asChar(fileParam))); R_API_END(); return ScalarLogical(1); }
void cTrainerInterface::OutputActor(const std::string& filename) const { OutputModel(filename); }