Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

Impala::Core::Training::Svm::Svm ( String  s  )  [inline]

Definition at line 60 of file Svm.h.

References Impala::Util::FileCopyRemoteToLocal(), Impala::FileNameTmp(), ILOG_ERROR, mIsProbabilityModel, mModel, mProbilityIndex, and SetModel().

00061     {
00062         mModel = 0;
00063         mProbilityIndex = 0;
00064         mIsProbabilityModel = false;
00065 
00066         Util::IOBuffer buf(s.size());
00067         buf.Puts(s);
00068         buf.Rewind();
00069 
00070         String tmpName = FileNameTmp();
00071         FileCopyRemoteToLocal(&buf, tmpName);
00072         svm_model* model = svm_load_model(tmpName.c_str());
00073         unlink(tmpName.c_str());
00074         if (!model)
00075         {
00076             ILOG_ERROR("Unable to load model");
00077         }
00078         else
00079         {
00080             SetModel(model);
00081         }
00082     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:20 2011 for ImpalaSrc by  doxygen 1.5.1