|
OpenMS
2.6.0
|
Go to the documentation of this file.
37 #include <OpenMS/config.h>
63 static bool canRun(
String& python_executable,
String& error_msg);
76 static bool isPackageInstalled(
const String& python_executable,
const String& package_name);
87 static String getVersion(
const String& python_executable);
the kernel type
Definition: SVMWrapper.h:93
Base class for TOPP applications.
Definition: TOPPBase.h:144
void store(const String &filename, const std::vector< ProteinIdentification > &protein_ids, const std::vector< PeptideIdentification > &peptide_ids, const String &document_id="")
Stores the data in an idXML file.
A more convenient string class.
Definition: String.h:59
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
The file pendant of the Param class used to load and store the param datastructure as paramXML.
Definition: ParamXMLFile.h:49
const DataValue & getValue(const String &key) const
Returns a value of a parameter.
Int getIntParameter(SVM_parameter_type type)
You can get the actual int- parameters of the svm.
Serves for encoding sequences into feature vectors.
Definition: LibSVMEncoder.h:55
void setParameter(SVM_parameter_type type, Int value)
You can set the parameters of the svm:
void load(const String &filename, std::vector< ProteinIdentification > &protein_ids, std::vector< PeptideIdentification > &peptide_ids)
Loads the identifications of an idXML file without identifier.
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
svm_problem * encodeLibSVMProblemWithCompositionAndLengthVectors(const std::vector< String > &sequences, std::vector< double > &labels, const String &allowed_characters, UInt maximum_sequence_length)
creates composition vectors with additional length information for 'sequences' and stores them in Lib...
Definition: SVMWrapper.h:100
static void destroyProblem(svm_problem *problem)
frees all the memory of the svm_problem instance
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
static const DataValue EMPTY
Empty data value for comparisons.
Definition: DataValue.h:62
void loadModel(std::string modelFilename)
loads the model
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
Serves as a wrapper for the libsvm.
Definition: SVMWrapper.h:79
Definition: SVMWrapper.h:101
Detect Python and retrieve information.
Definition: PythonInfo.h:49
Management and storage of parameters / INI files.
Definition: Param.h:73
void setTrainingSample(svm_problem *training_sample)
This is used for being able to perform predictions with non libsvm standard kernels.
void load(const String &filename, Param ¶m)
Read XML file.
Definition: SVMWrapper.h:107
void getSVCProbabilities(struct svm_problem *problem, std::vector< double > &probabilities, std::vector< double > &prediction_labels)
This function fills probabilities with the probability estimates for the first class.
svm_problem * loadLibSVMProblem(const String &filename)
loads the LibSVM-encoded data stored in 'filename'
Used to load and store idXML files.
Definition: IdXMLFile.h:63
svm_problem * encodeLibSVMProblemWithOligoBorderVectors(const std::vector< String > &sequences, std::vector< double > &labels, UInt k_mer_length, const String &allowed_characters, UInt border_length, bool strict=false, bool unpaired=false, bool length_encoding=false)
creates oligo border vectors vectors for 'sequences' and stores them in LibSVM compliant format