Function cpphots::train(Network&, std::vector<Events>, const ClustererSeedingType&, bool, bool)

Function Documentation

std::vector<Events> cpphots::train(Network &network, std::vector<Events> training_events, const ClustererSeedingType &seeding, bool use_all = true, bool skip_check = false)

Seed and train layers in a network.

This function seeds the centroids of each layer and then train the layer with the events, in a layer-by-layer sequence.

Parameters
  • network – the newtork

  • training_events – sequences of events

  • seeding – a clustering seeding function

  • use_all – if true use all sequence to seed the centroids (all sequences will used for training regardless)

  • skip_check – if true consider all events as valid

Returns

events generated by the last layer of the network