Feature Selection Toolbox FST4
UTIA · Czech Academy of Sciences
Loading...
Searching...
No Matches
fst4_cli::Observer_JSON Class Reference

--progress json: emits one JSON line per improved solution to the progress stream; free-text progress is dropped More...

Inheritance diagram for fst4_cli::Observer_JSON:
FST::Search_Observer< RETURNTYPE, SUBSET >

Public Member Functions

 Observer_JSON (std::ostream &os)
virtual void on_solution (const RETURNTYPE value, const SUBSET &sub, const std::string &msg) override
 emits {"event":"solution","value":…,"d":…,"features":[…]} for the improved solution sub; msg (the text form) is dropped
Public Member Functions inherited from FST::Search_Observer< RETURNTYPE, SUBSET >
virtual void on_progress (const std::string &msg)
 one pre-formatted progress message
virtual void on_solution (const RETURNTYPE value, const SUBSET &sub, const std::string &msg)
 a new (sub-)solution has been reached (msg = its pre-formatted text form); copy sub if kept beyond the call

Private Attributes

std::ostream & _os
 the progress stream (stderr for text/JSON/CSV results, per --output)

Additional Inherited Members

Public Types inherited from FST::Search_Observer< RETURNTYPE, SUBSET >
typedef std::shared_ptr< SUBSET > PSubset
 shared pointer to a feature subset (not used by the interface itself; kept for observer implementations' convenience)

Detailed Description

--progress json: emits one JSON line per improved solution to the progress stream; free-text progress is dropped

Constructor & Destructor Documentation

◆ Observer_JSON()

fst4_cli::Observer_JSON::Observer_JSON ( std::ostream & os)
inlineexplicit

emits JSON progress lines to os (the --progress stream)


The documentation for this class was generated from the following file:
Copyright © 2000–present ÚTIA, Institute of Information Theory and Automation of the Czech Academy of Sciences · Contacts · This site sets no cookies and uses no analytics.