Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for realizing support vector machine by MPI programming and OpenMP programming

A support vector machine and algorithm technology, applied in the field of machine learning, can solve the problems of high processor communication overhead, difficult programming, poor scalability, etc., and achieve the effect of solving large-scale classification problems

Inactive Publication Date: 2012-10-03
TIANJIN UNIV
View PDF2 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, the SMP architecture has the characteristics of low communication delay, and can adopt multithreading mechanism (such as Pthreads) and compilation guidance (such as OpenMP) parallel programming. Its implementation is relatively simple, but the disadvantage is that the scalability is poor; the MPP architecture is based on distributed Storage, with good scalability, mainly adopts the message passing mechanism, and the implementation standards include MPI, PVM, etc., but the communication overhead between the processors is large, and programming is relatively difficult

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing support vector machine by MPI programming and OpenMP programming
  • Method for realizing support vector machine by MPI programming and OpenMP programming
  • Method for realizing support vector machine by MPI programming and OpenMP programming

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The technical scheme adopted in the present invention is:

[0049] 1. SVM algorithm realizes classification

[0050] The specific steps of SVM algorithm classification:

[0051] 1) Count the total number of categories, record the label of the category at the same time, and count the number of samples of each category.

[0052] 2) Group samples belonging to the same class and store them consecutively.

[0053] 3) Calculate the weight C.

[0054] 4) Train n(n-1) / 2 models:

[0055] Initialize the nozero array for easy SV statistics;

[0056]During the training process, the sub-dataset needs to be reconstructed, and the characteristics of the sample remain unchanged, but the category of the sample needs to be changed to +1 / -1;

[0057] Training sub-dataset svm_train_one;

[0058] Count nozero. If nozero is already true, it will remain unchanged. If it is false, it will be changed to true.

[0059] 5) Output model, mainly to fill svm_model.

[0060] 6) Clear memory....

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a machine learning method based on statistical learning theory. In order to solve the problems on large-scale sorting and the solution optimization in practical realization of an SVM (support vector machine), and realizes control on time price and space price of calculation, the technical scheme adopted by the invention is a method for realizing support vector machine by adoption of MPI programming and OpenMP programming. According to the concept of sorting algorithm of SVM (support vector machine), the method is realizes as follows: serial program codes are complied by C++ and associated statements and functions of OpenMP and MPI based on the serial codes are added to realize parallelization. The method provided by the invention includes the following detailed steps: 1) determining functions of parts of the algorithm; communicating among the algorithm modules by MPI programming to transfer data and realize synchronization; and 2) adding compiling guidance statements by Open MP in the sub-modules of the algorithm, wherein a compiler automatically conducts thread-level parallel realization of the codes in the parallel area included in the compiling guidance statements. The method provided by the invention is mainly applied to the machine learning.

Description

technical field [0001] The invention relates to a machine learning method based on statistical learning theory, specifically, a parallel support vector classifier is realized based on mixed programming of MPI and OpenMP. Background technique [0002] 1. Support Vector Machine (SVM) [0003] Support Vector Machine (Support Vector Machine, SVM) is a machine learning method based on statistical learning theory proposed by Vapnik et al. It maximizes the classification interval to construct the optimal classification hyperplane to improve the generalization ability of the classifier. It solves problems such as nonlinearity, high dimensionality, and local minima efficiently. Compared with the traditional neural network learning method, SVM has the least structural risk, can approximate any function and guarantee the global optimum, and is suitable for the field of small sample, nonlinear kernel high-dimensional modeling. At present, SVM has been widely used in handwritten chara...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44
Inventor 廖士中卢玮
Owner TIANJIN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products