1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
| struct model
{
double parameters[5][1] ={{1},{1},{1},{10},{0.150000000000000}};
double *nr_class[1][1]={3}; /* number of classes, = 2 in regression/one class svm */
double *totalSV[1][1]= {38}; /* total #SV */
//double svm_node **SV=SVs=
double *rho[3][1]= {{3.85250072056665},{1.98260813354295},{-9.85381777928213}};
double *label[3][1]= {{1},{2},{3}}; /* label of each class (label[k]) */
double *sv_indices[38][1]= {{1},{3],{11},{18},},{70},{71},{72},{73},{75},{82},{83},{90},{94},{98},{102},{104},{107},{110},{113},{119}}; /* sv_indices[0,...,nSV-1] are values in [1,...,num_traning_data] to indicate SVs in the training set */
double *probA[3][1]= {{-3.04020468884611},{-3.02985537320699},{-1.22838128162279}}; /* pariwise probability information */
double *probB[3][1]= {{-0.143832034298135},{-0.331592706939798},{-0.317353460209991}};
double *sv_coef [38][2]= {
{0.0441014900184046,0},
{0.115481676752995,0.0247201450973238},
{0.0284525394158882,0},
{0.115481676752995,0.0247201450973238},
{0,2.56566567302770},
{-0.115481676752995,0},
{-0.115481676752995,0},
{-0.115481676752995,0},
{0,-2.56566567302770},
{-0.0247201450973238,-2.56566567302770},
{-0.0247201450973238,-0.106867010440775},
{0,-1.24158009628657},
{-0.0247201450973238,-2.56566567302770},
{-0.0247201450973238,-1.28942381799513}}; /* coefficients for SVs in decision functions (sv_coef[k-1][l]) */
/* constants in decision functions (rho[k*(k-1)/2]) */
/* for classification only */
//double *label= [1;2;3]; /* label of each class (label[k]) */
double *nSV[3][1] ={{10},{17},{11}}; /* number of SVs for each class (nSV[k]) */
/* nSV[0] + nSV[1] + ... + nSV[k-1] = l */
double *SVs[38][14]={
{-0.579400000000000,-0.924500000000000,-0.878900000000000,-0.907400000000000,-0.902800000000000,-0.979600000000000,-0.977000000000000,-0.918200000000000,-0.904600000000000,-0.965100000000000,-0.972900000000000,-0.941700000000000,-0.961900000000000,-0.936700000000000},
{-0.422700000000000,-0.443500000000000,-0.809000000000000,-0.880800000000000,-0.879800000000000,-0.924100000000000,-0.930800000000000,-0.978100000000000,-0.949100000000000,-0.970100000000000,-0.990400000000000,-0.975300000000000,-0.981400000000000,-0.953000000000000},
{-0.604400000000000,-0.850700000000000,-0.851100000000000,-0.788000000000000,-0.885200000000000,-0.825500000000000,-0.921000000000000,-0.933900000000000,-0.966800000000000,-0.917600000000000,-0.965200000000000,-0.930500000000000,-0.948600000000000,-0.938700000000000},
,-0.711100000000000,-0.884900000000000,-0.735900000000000,-0.878500000000000,-0.868500000000000,-0.913100000000000,-0.938700000000000,-0.925300000000000,-0.932200000000000,-0.958400000000000,-0.848600000000000}};
/* XXX */
//int free_sv; /* 1 if svm_model is created by svm_load_model*/
/* 0 if svm_model is created by svm_train */
}; |
Partager