90 typedef std::map<std::string, std::map<std::string, double>>
NetworkInputs;
156 vNetworkBase.
print(strm);
218 static bool isFile(std::string
const &inputFile);
277 virtual void print(std::ostream &strm)
const;
289 bool isRootFile(std::string
const &filename =
"")
const;
303 void removePrefixes(std::vector<std::string> &output_names)
const;
static const std::string m_defaultTreeName
Default name for the TTree to save in.
VNetworkBase()
VNetworkBase default constructor.
virtual std::vector< std::string > getOutputLayers() const =0
List the names of the outputs.
virtual NetworkOutputs compute(NetworkInputs const &inputs) const =0
Function to pass values to the network.
std::map< std::string, std::map< std::string, double > > NetworkInputs
Format for network inputs.
static std::string representNetworkOutputs(NetworkOutputs const &outputs, int maxValues=3)
String representation of network outputs.
friend std::ostream & operator<<(std::ostream &strm, const VNetworkBase &vNetworkBase)
Put-to operator to facilitate printing.
std::string m_inputFile
Path to the file describing the network, including filename.
virtual void writeNetToTTree(TTree &tree)=0
Save the network to a TTree.
std::map< std::string, double > NetworkOutputs
Format for network outputs.
bool isRootFile(std::string const &filename="") const
Check if a string is possibly a root file path.
void removePrefixes(NetworkOutputs &outputs) const
Remove any common prefix from the outputs.
virtual void print(std::ostream &strm) const
Write a short description of this net to the string stream.
static std::string representNetworkInputs(NetworkInputs const &inputs, int maxValues=3)
String representation of network inputs.
virtual void deleteAllButNet()=0
Get rid of any memory objects that arn't needed to run the net.
bool isFile() const
Check if the argument inputFile is the path of a file on disk.
ClassDef(VNetworkBase, 1)
virtual void setupNet()=0
Perform actions that prepare network for use.
virtual void setupPersistedVariables()=0
Perform actions that prep data to create the net.