35 #ifndef OPENMS_CHEMISTRY_SVMTHEORETICALSPECTRUMGENERATORTRAINER_H 36 #define OPENMS_CHEMISTRY_SVMTHEORETICALSPECTRUMGENERATORTRAINER_H 77 std::map<std::pair<IonType, Size>, std::vector<double> > & observed_intensities,
79 Size number_of_regions
83 void trainSecondaryTypes_(
TextFile & info_outfile,
84 Size number_of_regions,
85 Size number_of_intensity_levels,
86 ObservedIntensMap & observed_intensities,
87 const std::vector<IonType> & ion_types,
88 const std::vector<bool> & is_primary
109 void trainModel(
const PeakMap & spectra,
const std::vector<AASequence> & annotations,
String filename,
Int precursor_charge);
117 void writeTrainingFile_(std::vector<DescriptorSet> & training_input, std::vector<double> & training_output,
String filename);
122 #endif // SvmTheoreticalSpectrumGeneratorTrainer_H nested class
Definition: SvmTheoreticalSpectrumGenerator.h:83
A more convenient string class.
Definition: String.h:57
Representation of a peptide/protein sequence.
Definition: AASequence.h:108
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
SvmTheoreticalSpectrumGenerator::IonType IonType
Definition: SvmTheoreticalSpectrumGeneratorTrainer.h:69
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
Train SVM models that are used by SvmTheoreticalSpectrumGenerator.
Definition: SvmTheoreticalSpectrumGeneratorTrainer.h:66
A set of descriptors for a single training row.
Definition: SvmTheoreticalSpectrumGenerator.h:141
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:82
std::map< std::pair< IonType, Size >, std::vector< double > > ObservedIntensMap
Definition: SvmTheoreticalSpectrumGeneratorTrainer.h:71
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
int Int
Signed integer type.
Definition: Types.h:103
SvmTheoreticalSpectrumGenerator::DescriptorSet DescriptorSet
Definition: SvmTheoreticalSpectrumGeneratorTrainer.h:70
This class provides some basic file handling methods for text files.
Definition: TextFile.h:47