本文整理汇总了C++中DataBase::setTitles方法的典型用法代码示例。如果您正苦于以下问题:C++ DataBase::setTitles方法的具体用法?C++ DataBase::setTitles怎么用?C++ DataBase::setTitles使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataBase
的用法示例。
在下文中一共展示了DataBase::setTitles方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[]){
script_timer("Total", false);
if(argv[1] && strstr(argv[1],"deb")!=NULL) debug = true; // Set debug to true if argv[1] contains "deb"
if(debug) fprintf(stderr, "Debug mode on.\n");
if(argv[1] && strstr(argv[1],"off")!=NULL) full_output = false; // Disable full RMSE output if argv[1] contains "off"
DataBase db;
db.load();
if(db.checkDB()) fprintf(stderr, "checkDB OK\n");
else fprintf(stderr, "DB Corrupt.\n");
db.setTitles();
Movie movies(&db);
User users(&db);
movies.setId(1);
users.setId(6);
/*
db.loadPreProcessor("data/somemodel"); // Load a preprocessor built using Algorithm::buildPreProcessor("data/somemodel")
*/
/*
Average avg(&db);
avg.runProbe();
avg.runQualifying("none", true);
//avg.buildPreProcessor("data/average");
*/
/*
Globals globals(&db);
globals.setAverages(10);
globals.setVariances();
globals.setThetas();
globals.runProbe();
//globals.runQualifying("none", true);
*/
#define TRAIN_SIMU true
Matrix_Factorization *mf = new Matrix_Factorization(&db);
mf->training();
//mf->cache("data/mf_simu");
mf->cache_to_text("mf");
//mf->runProbe();
//mf->runQualifying("none", true);
//mf->buildPreProcessor("data/mf_simu");
/*
User_KNN * uknn = new User_KNN(&db);
uknn->setup();
uknn->loadUserFeatures("data/mf_simu.users.cache");
uknn->runProbe();
//uknn->runQualifying("none", true);
//uknn->buildPreProcessor("data/uknn");
*//*
Blend blend(&db);
blend.setUp(3, "data/average", "data/mf_simu", "data/uknn");
blend.runProbe();
blend.runQualifying("none", true);
*/
/*
Blend_Partial blendpartial(&db);
blendpartial.setUp(3, "data/average", "data/mf_simu", "data/uknn");
blendpartial.runProbe_partial();
blendpartial.runQualifying("none", true);
*/
/*
KNN knn(&db);
knn.setup();
knn.runProbe();
E
E
E
knn.runQualifying("none", true);
*/
script_timer("Total", true);
fprintf(stderr, "\n");
print_timer_summary_map();
}