Commit 5c9e84f8 authored by Davis King's avatar Davis King

Updated the normalized_function so that it also works with routines

expecting something that looks like a multiclass decision function.
parent 962ba9ae
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment