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:
Davis King 2012-12-16 08:30:47 -05:00
parent 962ba9ae94
commit 5c9e84f896
2 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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