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