// Copyright (C) 2010 Davis E. King (davis@dlib.net) // License: Boost Software License See LICENSE.txt for the full license. #undef DLIB_MULTICLASS_TOoLS_ABSTRACT_Hh_ #ifdef DLIB_MULTICLASS_TOoLS_ABSTRACT_Hh_ #include #include #include "../unordered_pair.h" namespace dlib { // ---------------------------------------------------------------------------------------- template std::vector select_all_distinct_labels ( const std::vector& labels ); /*! ensures - Determines all distinct values present in labels and stores them into a sorted vector and returns it. They are sorted in ascending order. !*/ // ---------------------------------------------------------------------------------------- template std::vector > find_missing_pairs ( const std::map,U>& binary_decision_functions ); /*! ensures - Let L denote the set of all label_type values present in binary_decision_functions. - This function finds all the label pairs with both elements distinct and in L but not also in binary_decision_functions. All these missing pairs are stored in a sorted vector and returned. They are sorted in ascending order. !*/ // ---------------------------------------------------------------------------------------- } #endif // DLIB_MULTICLASS_TOoLS_ABSTRACT_Hh_