 |
Belle II Software
release-05-02-19
|
13 #include <tracking/trackFindingVXD/filterTools/FBDTClassifierHelper.h>
14 #include <tracking/trackFindingVXD/segmentNetwork/DirectedNodeNetworkContainer.h>
16 #include <tracking/spacePointCreation/SpacePoint.h>
18 #include <framework/core/Module.h>
19 #include <framework/datastore/StoreObjPtr.h>
40 class FastBDTClassifierTrainingModule :
public Module {
51 void event()
override;
std::string m_PARAMfbdtOutFileName
output file name into which the FBDTClassifier is stored.
bool m_PARAMdoTrain
actually train a classifier or only do collection
bundle together the classifier input and the target value into one struct for easier passing around.
bool m_PARAMstoreSamples
store the collected samples into a file
std::vector< TrainSample > m_samples
vector in which all samples are collected on the fly in event.
double m_PARAMshrinkage
shrinkage parameter of FastBDT.
FastBDTClassifierTrainingModule()
module constructor.
std::string m_PARAMsamplesFileName
filename to be used to store / read collect samples
int m_PARAMtreeDepth
tree depth in FastBDT.
SpacePoint typically is build from 1 PXDCluster or 1-2 SVDClusters.
void event() override
collect all possible combinations and store them
void terminate() override
take the collected data and train a FBDTClassifier and store it in the given output file
Belle2::StoreObjPtr< Belle2::DirectedNodeNetworkContainer > m_network
StoreObjPtr to access the DNNs that are used in this module.
Abstract base class for different kinds of events.
std::string m_PARAMnetworkInputName
name of the StoreObjPtr in which the network container is stored which contains the network that is u...
const TrainSample makeTrainSample(const Belle2::SpacePoint *outerHit, const Belle2::SpacePoint *centerHit, const Belle2::SpacePoint *innerHit)
create a trainings sample from the three hit combination
double m_PARAMrandRatio
ratio of samples to be used for training one tree in the FastBDT.
void initialize() override
initialize the module
int m_PARAMnTrees
number of trees in the FastBDT.
bool m_PARAMuseSamples
use pre-collected samples for training and bypass the collection step