![]() |
Ultra 0.9.4
|
#include <oracle.h>
Public Member Functions | |
| basic_reg_oracle (const P &) | |
| basic_reg_oracle (std::istream &, const symbol_set &) | |
| value_t | operator() (const std::vector< value_t > &) const final |
| std::string | name (const value_t &) const final |
| bool | is_valid () const final |
| bool | save (std::ostream &) const final |
Static Public Attributes | |
| static const std::string | SERIALIZE_ID |
Oracle function specialized for regression tasks.
| S | stores the individual inside vs keep a reference only. Sometimes we need an autonomous oracle function that stores everything it needs inside (it will survive the death of the individual it's constructed on). Sometimes we prefer space efficiency (typically inside an evaluator) |
|
explicit |
| [in] | prg | the program (individual/team) to be lambdified |
| basic_reg_oracle::basic_reg_oracle | ( | std::istream & | in, |
| const symbol_set & | ss ) |
| [in] | in | input stream |
| [in] | ss | active symbol set |
|
nodiscardfinalvirtual |
Implements ultra::src::basic_oracle.
|
nodiscardfinalvirtual |
| [in] | a | value produced by basic_oracle::operator() |
Implements ultra::src::basic_oracle.
|
nodiscardfinalvirtual |
| [in] | e | input example for the oracle |
Implements ultra::src::basic_oracle.
|
finalvirtual |
Saves the object on persistent storage.
| [out] | out | output stream |
Implements ultra::src::basic_oracle.