 |
OpenMS
3.0.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:97
Base class for TOPP applications.
Definition: TOPPBase.h:147
static Int toInt(const String &this_s)
Definition: StringUtils.h:206
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.
static float toFloat(const String &this_s)
Definition: StringUtils.h:211
A more convenient string class.
Definition: String.h:58
The file pendant of the Param class used to load and store the param datastructure as paramXML.
Definition: ParamXMLFile.h:49
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:58
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:47
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:104
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
void loadModel(std::string modelFilename)
loads the model
std::string toString(bool full_precision=true) const
Convert ParamValue to string.
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:71
Serves as a wrapper for the libsvm.
Definition: SVMWrapper.h:83
Definition: SVMWrapper.h:105
Detect Python and retrieve information.
Definition: PythonInfo.h:49
Management and storage of parameters / INI files.
Definition: Param.h:69
static void destroyProblem(svm_problem *&problem, bool free_nodes=true)
frees all the memory of the svm_problem instance
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.
const ParamValue & getValue(const std::string &key) const
Returns a value of a parameter.
Definition: SVMWrapper.h:111
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:68
static const ParamValue EMPTY
Empty data value for comparisons.
Definition: ParamValue.h:60
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