mirror of https://github.com/davisking/dlib.git
Updated the normalized_function so that it also works with routines
expecting something that looks like a multiclass decision function.
This commit is contained in:
parent
962ba9ae94
commit
5c9e84f896
|
@ -593,6 +593,12 @@ namespace dlib
|
|||
function(f.function)
|
||||
{}
|
||||
|
||||
const std::vector<result_type> get_labels(
|
||||
) const { return function.get_labels(); }
|
||||
|
||||
unsigned long number_of_classes (
|
||||
) const { return function.number_of_classes(); }
|
||||
|
||||
normalized_function (
|
||||
const vector_normalizer<sample_type>& normalizer_,
|
||||
const function_type& funct
|
||||
|
|
|
@ -660,6 +660,20 @@ namespace dlib
|
|||
- populates this object with the vector_normalizer and function object
|
||||
!*/
|
||||
|
||||
const std::vector<result_type> get_labels(
|
||||
) const;
|
||||
/*!
|
||||
ensures
|
||||
- returns function.get_labels()
|
||||
!*/
|
||||
|
||||
unsigned long number_of_classes (
|
||||
) const;
|
||||
/*!
|
||||
ensures
|
||||
- returns function.number_of_classes()
|
||||
!*/
|
||||
|
||||
result_type operator() (
|
||||
const sample_type& x
|
||||
) const
|
||||
|
|
Loading…
Reference in New Issue