logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Bio::Tools::PSort::SVMLoc - Perl bindings for the libsvm Support Vector Machine library in Psortb.

Acknowledgements

       Thanks go out to Fiona Brinkman and the other members of the Simon Fraser University Brinkman Laboratory
       for providing me the opportunity to develop this module.  Additional thanks go to Chih-Jen Lin, one of
       the libsvm authors, for being particularly helpful during the development process.

perl v5.34.0                                       2022-02-06                     Bio::Tools::PSort::SVMLoc(3pm)

Constructor

         # Load an existing SVM.
         $svm = new Bio::Tools::PSort::SVMLoc(Model  => 'sample.model', FreqPattern => 'FreqPatt');

       A Bio::Tools::PSort::SVMLoc object must be created loaded from an existing model file.

       An existing SVM is loaded from a file using the Model named parameter and the frequent patterns set.  The
       model file should be of the format produced by the svm->train program (distributed with the libsvm
       library) or from the $svm->save() method in Algorithm::SVM.

Description

       Bio::Tools::PSort::SVMLoc implements a Support Vector Machine for Perl.  Support Vector Machines provide
       a method for creating classifcation functions from a set of labeled training data, from which predictions
       can be made for subsequent data sets.

       Bio::Tools::PSort::SVMLoc is a stripped down version of Algorithm::SVM design specifically for PSortb.
       If you need functionality such as training of SVM, please use that module instead.

Maintainer

       Matthew Laird <matt@brinkman.mbb.sfu.ca>

Methods

         $result = $svm->classify($seq);

       The classify method is used to classify a set of data according to the loaded model.  The method accepts
       a single parameter, which should be a protein sequence object.  Returns a floating point number
       corresponding to the predicted value.

Name

       Bio::Tools::PSort::SVMLoc - Perl bindings for the libsvm Support Vector Machine library in Psortb.

See Also

Synopsis

         use Bio::Tools::PSort::SVMLoc;

         # Load the model stored in the file 'sample.model' and Frequent Patterns in 'FreqPatt'
         $svm = new Bio::Tools::PSort::SVMLoc(Model => 'sample.model', FreqPattern => 'FreqPatt');

         # Classify a sequence in $seq, do not include FASTA headers!
         $svm->classify($seq);

return

See Also