Public Member Functions | Public Attributes | List of all members
keras::DataChunkFlat Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-04-15/ExoticsTriggers/KerasModel.h"

Inheritance diagram for keras::DataChunkFlat:
keras::DataChunk keras::DataChunk

Public Member Functions

 DataChunkFlat (size_t size)
 
 DataChunkFlat (size_t size, float init)
 
 DataChunkFlat (void)
 
std::vector< float > & get_1d_rw ()
 
std::vector< float > const & get_1d () const
 
void set_data (std::vector< float > const &d)
 
size_t get_data_dim (void) const
 
void show_name ()
 
void show_values ()
 
void read_from_file (const std::string &fname)
 
 DataChunkFlat (size_t size)
 
 DataChunkFlat (size_t size, float init)
 
 DataChunkFlat (void)
 
std::vector< float > & get_1d_rw ()
 
std::vector< float > const & get_1d () const
 
void set_data (std::vector< float > const &d)
 
size_t get_data_dim (void) const
 
void show_name ()
 
void show_values ()
 
void read_from_file (const std::string &fname)
 
virtual std::vector< std::vector< std::vector< float > > > const & get_3d () const
 
virtual std::vector< std::vector< std::vector< float > > > const & get_3d () const
 
virtual void set_data (std::vector< std::vector< std::vector< float > > > const &)
 

Public Attributes

std::vector< float > f
 

Detailed Description

Definition at line 82 of file KerasModel.h.

Constructor & Destructor Documentation

keras::DataChunkFlat::DataChunkFlat ( size_t  size)
inline

Definition at line 85 of file KerasModel.h.

85 : f(size) { }
std::vector< float > f
Definition: KerasModel.h:88
keras::DataChunkFlat::DataChunkFlat ( size_t  size,
float  init 
)
inline

Definition at line 86 of file KerasModel.h.

86 : f(size, init) { }
std::vector< float > f
Definition: KerasModel.h:88
keras::DataChunkFlat::DataChunkFlat ( void  )
inline

Definition at line 87 of file KerasModel.h.

87 { }
keras::DataChunkFlat::DataChunkFlat ( size_t  size)
inline

Definition at line 82 of file KerasModel.h.

82 : f(size) { }
std::vector< float > f
Definition: KerasModel.h:88
keras::DataChunkFlat::DataChunkFlat ( size_t  size,
float  init 
)
inline

Definition at line 83 of file KerasModel.h.

83 : f(size, init) { }
std::vector< float > f
Definition: KerasModel.h:88
keras::DataChunkFlat::DataChunkFlat ( void  )
inline

Definition at line 84 of file KerasModel.h.

References MakeMiniprodValidationCuts::f.

84 { }

Member Function Documentation

std::vector<float> const& keras::DataChunkFlat::get_1d ( ) const
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 88 of file KerasModel.h.

References MakeMiniprodValidationCuts::f.

88 { return f; }
std::vector< float > f
Definition: KerasModel.h:88
std::vector<float> const& keras::DataChunkFlat::get_1d ( ) const
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 90 of file KerasModel.h.

References MakeMiniprodValidationCuts::f.

90 { return f; }
std::vector< float > f
Definition: KerasModel.h:88
std::vector<float>& keras::DataChunkFlat::get_1d_rw ( )
inline

Definition at line 87 of file KerasModel.h.

References MakeMiniprodValidationCuts::f.

87 { return f; }
std::vector< float > f
Definition: KerasModel.h:88
std::vector<float>& keras::DataChunkFlat::get_1d_rw ( )
inline
virtual std::vector<std::vector<std::vector<float> > > const& keras::DataChunk::get_3d ( ) const
inlinevirtualinherited

Reimplemented in keras::DataChunk2D, and keras::DataChunk2D.

Definition at line 35 of file KerasModel.h.

35 { throw "not implemented"; };
virtual std::vector<std::vector<std::vector<float> > > const& keras::DataChunk::get_3d ( ) const
inlinevirtualinherited
size_t keras::DataChunkFlat::get_data_dim ( void  ) const
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 90 of file KerasModel.h.

90 { return 1; }
size_t keras::DataChunkFlat::get_data_dim ( void  ) const
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 92 of file KerasModel.h.

92 { return 1; }
void keras::DataChunkFlat::read_from_file ( const std::string fname)
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 100 of file KerasModel.h.

References fin.

100 {};
void keras::DataChunkFlat::read_from_file ( const std::string fname)
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 102 of file KerasModel.h.

102 {};
virtual void keras::DataChunk::set_data ( std::vector< std::vector< std::vector< float > > > const &  )
inlinevirtualinherited
void keras::DataChunkFlat::set_data ( std::vector< float > const &  d)
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 89 of file KerasModel.h.

References d.

89 { f = d; };
std::vector< float > f
Definition: KerasModel.h:88
Float_t d
Definition: plot.C:236
void keras::DataChunkFlat::set_data ( std::vector< float > const &  d)
inlinevirtual

Reimplemented from keras::DataChunk.

Definition at line 91 of file KerasModel.h.

References d.

91 { f = d; };
std::vector< float > f
Definition: KerasModel.h:88
Float_t d
Definition: plot.C:236
void keras::DataChunkFlat::show_name ( )
inlinevirtual

Implements keras::DataChunk.

Definition at line 92 of file KerasModel.h.

References om::cout, and allTimeWatchdog::endl.

92  {
93  std::cout << "DataChunkFlat " << f.size() << std::endl;
94  }
std::vector< float > f
Definition: KerasModel.h:88
OStream cout
Definition: OStream.cxx:6
void keras::DataChunkFlat::show_name ( )
inlinevirtual

Implements keras::DataChunk.

Definition at line 94 of file KerasModel.h.

94  {
95  // std::cout << "DataChunkFlat " << f.size() << std::endl;
96  }
void keras::DataChunkFlat::show_values ( )
inlinevirtual

Implements keras::DataChunk.

Definition at line 95 of file KerasModel.h.

References om::cout, allTimeWatchdog::endl, and MECModelEnuComparisons::i.

95  {
96  std::cout << "DataChunkFlat values:" << std::endl;
97  for(size_t i = 0; i < f.size(); ++i) std::cout << f[i] << " ";
99  }
std::vector< float > f
Definition: KerasModel.h:88
OStream cout
Definition: OStream.cxx:6
void keras::DataChunkFlat::show_values ( )
inlinevirtual

Implements keras::DataChunk.

Definition at line 97 of file KerasModel.h.

97  {
98  // std::cout << "DataChunkFlat values:" << std::endl;
99  // for(size_t i = 0; i < f.size(); ++i) std::cout << f[i] << " ";
100  // std::cout << std::endl;
101  }

Member Data Documentation

std::vector< float > keras::DataChunkFlat::f

Definition at line 88 of file KerasModel.h.


The documentation for this class was generated from the following file: