MCPcopy Create free account
hub / github.com/catboost/catboost / main

Function main

catboost/app/main.cpp:15–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <cstdlib>
14
15int main(int argc, const char* argv[]) {
16 try {
17 NCB::TCmdLineInit::Do(argc, argv);
18
19 TSetLoggingVerbose inThisScope;
20 TModChooser modChooser;
21 modChooser.AddMode("fit", mode_fit, "train a model");
22 modChooser.AddMode("calc", mode_calc, "perform model inference");
23 modChooser.AddMode("dataset-statistics", mode_dataset_statistics, "calculate dataset statistics");
24 modChooser.AddMode("fstr", mode_fstr, "evaluate feature importances");
25 modChooser.AddMode("ostr", mode_ostr, "evaluate object importances");
26 modChooser.AddMode("eval-metrics", mode_eval_metrics, "evaluate metrics for the model");
27 modChooser.AddMode("eval-feature", mode_eval_feature, "evaluate features");
28 modChooser.AddMode("metadata", mode_metadata, "get/set/dump metainfo fields of the model");
29 modChooser.AddMode("model-sum", mode_model_sum, "sum model files");
30 modChooser.AddMode("run-worker", mode_run_worker, "run a worker (for the distributed mode)");
31 modChooser.AddMode("roc", mode_roc, "evaluate data for the ROC curve");
32 modChooser.AddMode("model-based-eval", mode_model_based_eval, "model-based feature evaluation");
33 modChooser.AddMode("normalize-model", mode_normalize_model, "normalize a model on a dataset");
34 modChooser.AddMode("select-features", mode_select_features, "select the most important features");
35 modChooser.AddMode("dump-options", mode_dump_options, "dump training options");
36 modChooser.DisableSvnRevisionOption();
37 modChooser.SetVersionHandler(PrintProgramSvnVersion);
38 return modChooser.Run(argc, argv);
39 } catch (...) {
40 Cerr << "AN EXCEPTION OCCURRED. " << CurrentExceptionMessage() << Endl;
41 return EXIT_FAILURE;
42 }
43}

Callers

nothing calls this directly

Calls 6

DoFunction · 0.85
CurrentExceptionMessageFunction · 0.85
AddModeMethod · 0.80
SetVersionHandlerMethod · 0.80
RunMethod · 0.45

Tested by

no test coverage detected