15#ifndef ROOT_INTERNAL_ML_RCLUSTERLOADER
16#define ROOT_INTERNAL_ML_RCLUSTERLOADER
47 static_cast<std::size_t
>(
end -
start)};
82 std::vector<ROOT::RDF::RNode> &
fRdfs;
109 RClusterLoader(std::vector<ROOT::RDF::RNode> &rdfs,
const std::vector<std::string> &cols,
110 const std::vector<std::size_t> &vecSizes,
float vecPadding,
float validationSplit,
bool shuffle,
111 std::size_t setSeed);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest
Loads TTree/RNTuple clusters from one or more RDataFrames into RFlat2DMatrix buffers for ML training ...
std::vector< RClusterRange > fAllClusters
std::size_t GetNumTrainingEntries() const
std::size_t fAccumulatedFilteredForTrain
std::vector< RClusterRange > fValidationClusters
std::vector< std::size_t > fVecSizes
std::vector< ROOT::RDF::RNode > & fRdfs
std::size_t fTotalEntries
const std::vector< RClusterRange > & GetValidationClusters() const
void FinaliseSplitDiscovery()
Mark the train/val split as finalised after the first epoch.
std::size_t fNumTrainingEntries
void SplitDataset()
Distribute the clusters into training and validation datasets No-op for filtered RDataFrames,...
std::size_t fNumChunkCols
std::size_t GetNumChunkCols() const
std::size_t GetNumTrainingClusters() const
void LoadClusterInto(RFlat2DMatrix &dest, std::size_t rdfIdx, std::uint64_t startRow, std::uint64_t endRow)
std::size_t fNumValidationEntries
std::size_t GetNumValidationEntries() const
std::size_t fAccumulatedFilteredForVal
std::vector< RClusterRange > fTrainingClusters
std::size_t LoadTrainingClusterInto(RFlat2DMatrix &dest, std::size_t rdfIdx, std::uint64_t startRow, std::uint64_t endRow)
Load one training cluster and return the number of rows written.
void ShuffleValidationClusters(std::size_t epochIdx)
Re-order validation clusters for the upcoming epoch.
std::vector< std::size_t > fRdfSizes
std::vector< std::string > fCols
void LoadValidationClusterInto(RFlat2DMatrix &dest, std::size_t rdfIdx, std::uint64_t startRow, std::uint64_t endRow)
Load one validation cluster at the end of dest.
RClusterLoader(std::vector< ROOT::RDF::RNode > &rdfs, const std::vector< std::string > &cols, const std::vector< std::size_t > &vecSizes, float vecPadding, float validationSplit, bool shuffle, std::size_t setSeed)
std::size_t GetNumValidationClusters() const
bool IsSplitDiscovered() const
void ShuffleTrainingClusters(std::size_t epochIdx)
Re-order training clusters for the upcoming epoch.
const std::vector< RClusterRange > & GetTrainingClusters() const
std::size_t GetNmTotalClusters() const
Describes a contiguous range of entries within a single RDataFrame, corresponding to one TTree/RNTupl...
std::size_t GetNumEntries() const
void SetNumEntries(std::size_t num)
Wrapper around ROOT::RVec<float> representing a 2D matrix.