Commit d771596f authored by Davis King's avatar Davis King

Clarified spec and also slightly improved usability

parent d9d6fa12
...@@ -263,7 +263,8 @@ namespace dlib ...@@ -263,7 +263,8 @@ namespace dlib
) )
{ {
learn_nonnegative_weights = value; learn_nonnegative_weights = value;
prior = trained_function_type(); if (learns_nonnegative_weights)
prior = trained_function_type();
} }
void set_c ( void set_c (
......
...@@ -175,6 +175,8 @@ namespace dlib ...@@ -175,6 +175,8 @@ namespace dlib
/*! /*!
ensures ensures
- #learns_nonnegative_weights() == value - #learns_nonnegative_weights() == value
- if (value == true) then
- #has_prior() == false
!*/ !*/
void set_prior ( void set_prior (
......
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