|
|
|
@ -99,18 +99,22 @@ public: |
|
|
|
|
*/ |
|
|
|
|
virtual void buildIndex() |
|
|
|
|
{ |
|
|
|
|
std::ostringstream stream; |
|
|
|
|
bestParams_ = estimateBuildParams(); |
|
|
|
|
print_params(bestParams_, stream); |
|
|
|
|
Logger::info("----------------------------------------------------\n"); |
|
|
|
|
Logger::info("Autotuned parameters:\n"); |
|
|
|
|
print_params(bestParams_); |
|
|
|
|
Logger::info("%s", stream.str().c_str()); |
|
|
|
|
Logger::info("----------------------------------------------------\n"); |
|
|
|
|
|
|
|
|
|
bestIndex_ = create_index_by_type(dataset_, bestParams_, distance_); |
|
|
|
|
bestIndex_->buildIndex(); |
|
|
|
|
speedup_ = estimateSearchParams(bestSearchParams_); |
|
|
|
|
stream.str(std::string()); |
|
|
|
|
print_params(bestSearchParams_, stream); |
|
|
|
|
Logger::info("----------------------------------------------------\n"); |
|
|
|
|
Logger::info("Search parameters:\n"); |
|
|
|
|
print_params(bestSearchParams_); |
|
|
|
|
Logger::info("%s", stream.str().c_str()); |
|
|
|
|
Logger::info("----------------------------------------------------\n"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|