Class Signal implements signal handling to e.g. allow CTRL+C to cancel a long running process.
- A signal handler is attached to trap the SIGINT signal. Pressing CTRL+C or sending the SIGINT (kill ...) signal to the shogun process will make shogun print a message asking the user to choose an option bewteen: immediately exit the running method and fall back to the command line, prematurely stop the current algoritmh and do nothing.
Definition at line 37 of file Signal.h.
|
int32_t | ref () |
|
int32_t | ref_count () |
|
int32_t | unref () |
|
virtual CSGObject * | shallow_copy () const |
|
virtual CSGObject * | deep_copy () const |
|
virtual bool | is_generic (EPrimitiveType *generic) const |
|
template<class T > |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
template<> |
void | set_generic () |
|
void | unset_generic () |
|
virtual void | print_serializable (const char *prefix="") |
|
virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
|
virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
|
void | set_global_io (SGIO *io) |
|
SGIO * | get_global_io () |
|
void | set_global_parallel (Parallel *parallel) |
|
Parallel * | get_global_parallel () |
|
void | set_global_version (Version *version) |
|
Version * | get_global_version () |
|
SGStringList< char > | get_modelsel_names () |
|
void | print_modsel_params () |
|
char * | get_modsel_param_descr (const char *param_name) |
|
index_t | get_modsel_param_index (const char *param_name) |
|
void | build_gradient_parameter_dictionary (CMap< TParameter *, CSGObject *> *dict) |
|
bool | has (const std::string &name) const |
|
template<typename T > |
bool | has (const Tag< T > &tag) const |
|
template<typename T , typename U = void> |
bool | has (const std::string &name) const |
|
template<typename T > |
void | set (const Tag< T > &_tag, const T &value) |
|
template<typename T , typename U = void> |
void | set (const std::string &name, const T &value) |
|
template<typename T > |
T | get (const Tag< T > &_tag) const |
|
template<typename T , typename U = void> |
T | get (const std::string &name) const |
|
SGObservable * | get_parameters_observable () |
|
void | subscribe_to_parameters (ParameterObserverInterface *obs) |
|
void | list_observable_parameters () |
|
virtual void | load_serializable_pre () throw (ShogunException) |
|
virtual void | load_serializable_post () throw (ShogunException) |
|
virtual void | save_serializable_pre () throw (ShogunException) |
|
virtual void | save_serializable_post () throw (ShogunException) |
|
template<typename T > |
void | register_param (Tag< T > &_tag, const T &value) |
|
template<typename T > |
void | register_param (const std::string &name, const T &value) |
|
virtual void | update_parameter_hash () |
|
virtual bool | parameter_hash_changed () |
|
virtual bool | equals (CSGObject *other, float64_t accuracy=0.0, bool tolerant=false) |
|
virtual CSGObject * | clone () |
|
bool | clone_parameters (CSGObject *other) |
|
void | observe (const ObservedValue value) |
|
void | register_observable_param (const std::string &name, const SG_OBS_VALUE_TYPE type, const std::string &description) |
|