Sha256: aec3c10391c4d977b2615d0cd297b0ed64c24443618e6fa5e92c654b3bae422f

Contents?: true

Size: 1.55 KB

Versions: 13

Compression:

Stored size: 1.55 KB

Contents

// 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 <vector>
#include <map>
#include "../unordered_pair.h"

namespace dlib
{

// ----------------------------------------------------------------------------------------

    template <typename label_type>
    std::vector<label_type> select_all_distinct_labels (
        const std::vector<label_type>& 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 <typename label_type, typename U>
    std::vector<unordered_pair<label_type> > find_missing_pairs (
        const std::map<unordered_pair<label_type>,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_

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dlib-1.2.2 ext/dlib-19.4/dlib/svm/multiclass_tools_abstract.h
dlib-1.2.1 ext/dlib-19.4/dlib/svm/multiclass_tools_abstract.h
dlib-1.2.0 ext/dlib-19.4/dlib/svm/multiclass_tools_abstract.h
dlib-1.1.5 ext/dlib-19.4/dlib/svm/multiclass_tools_abstract.h
dlib-1.1.4 ext/dlib-19.4/dlib/svm/multiclass_tools_abstract.h
dlib-1.1.3 ext/dlib-19.4/dlib/svm/multiclass_tools_abstract.h
dlib-1.1.2 ext/dlib-19.4/dlib/svm/multiclass_tools_abstract.h
dlib-1.1.1 ext/dlib-19.4/dlib/svm/multiclass_tools_abstract.h
dlib-1.1.0 ext/dlib-19.4/dlib/svm/multiclass_tools_abstract.h
dlib-1.0.3 ext/dlib-18.13/dlib/svm/multiclass_tools_abstract.h
dlib-1.0.2 ext/dlib-18.13/dlib/svm/multiclass_tools_abstract.h
dlib-1.0.1 ext/dlib-18.13/dlib/svm/multiclass_tools_abstract.h
dlib-1.0.0 ext/dlib-18.13/dlib/svm/multiclass_tools_abstract.h