亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? svmfusvmlargeopt.h

?? Linux環境下的人臉識別程序
?? H
字號:
//     This is a part of the SvmFu library, a library for training//     Support Vector Machines.//     Copyright (C) 2000  rif and MIT////     Contact: rif@mit.edu//     This program is free software; you can redistribute it and/or//     modify it under the terms of the GNU General Public License as//     published by the Free Software Foundation; either version 2 of//     the License, or (at your option) any later version.//     This program is distributed in the hope that it will be useful,//     but WITHOUT ANY WARRANTY; without even the implied warranty of//     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the//     GNU General Public License for more details.//     You should have received a copy of the GNU General Public//     License along with this program; if not, write to the Free//     Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,//     MA 02111-1307 USA#ifndef SVMFU_SVM_LARGE_OPT_HEADER#define SVMFU_SVM_LARGE_OPT_HEADER#include <set>#include <list>#include <queue>#include <vector>#include "SvmFuSvmConstants.h"#include "SvmFuSvmTypedefs.h"#include "SvmFuSvmSmallOpt.h"#include "SvmFuSvmBase.h"#include "SvmFuSvmKernCache.h"//! Contains an index into the training set and an alpha delta.//! For use in containers.//! This class could be functionally replaced by QueueElt_,//! but with a loss of program clarity.class AlphaDiffElt_ { public:  int elt_;  double diff_;    AlphaDiffElt_(int elt, double diff)     : elt_(elt), diff_(diff) {}  AlphaDiffElt_() : elt_(0), diff_(0) {}};//! Chunking Svm/*! * This class is used for solving * large-scale Svm optimization problems.  It makes repeated * use of SvmFuSvmSmallOpt to solve subproblems.  It declares a single * SvmFuSvmKernCache object, then repeatedly modifies it and a trnSetPtr, * and creates and optimizes successive SvmFuSvmSmallOpt objects. * * For best results, PRE-RANDOMIZE THE TRAINING SET!  (We include * the perl script randomize.pl that does this on the distribution * end.) * * We maintain a priority queue that contains an integer priority for * each element not in the working set.  When elements are removed from * the working set, they are given a priority of 1 if they still violate, * 2 otherwise (note that if we have to remove violators, we're in BAD * shape...)  At each iteration, we check all the points at the lowest priority * that contains at least one violator. * * modifications by vking@mit.edu spring 2001: *  - use the new higher-level cache * */template <class DataPt, class KernVal> class SvmLargeOpt :   public virtual SvmBase<DataPt, KernVal> {public:  //! The standard, cold-start constructor   SvmLargeOpt(int svmSize,	      const IntVec y,	      DataPt *trnSetPtr, // not const so kernCache can switch points	      const KernVal (*kernProdFuncPtr)(const DataPt &pt1,					       const DataPt &pt2),	      int chunkSize=SVM_LARGEOPT_DEFAULT_CHUNK_SIZE,	      double C=10, double tol=10E-4, double eps = 10E-12,	      int verbosity=1);    //! The standard, cold-start constructor, with an extraCacheRows arg  SvmLargeOpt(int svmSize,	      const IntVec y,	      DataPt *trnSetPtr, // not const so kernCache can switch points	      int extraCacheRows,	      const KernVal (*kernProdFuncPtr)(const DataPt &pt1,					       const DataPt &pt2),	      int chunkSize=SVM_LARGEOPT_DEFAULT_CHUNK_SIZE,	      double C=10, double tol=10E-4, double eps = 10E-12,	      int verbosity=1);    //! The warm-start constructor  SvmLargeOpt(int svmSize, const IntVec y,	      DataPt *trnSetPtr,	      const KernVal (*kernProdFuncPtr)(const DataPt &pt1,					       const DataPt &pt2),	      DoubleVec cVec, DoubleVec alphaVec, DoubleVec outputVec, 	      double b, int chunkSize=SVM_LARGEOPT_DEFAULT_CHUNK_SIZE,	      double tol=10E-4, double eps = 10E-12, int verbosity=1);    //! The hot-start constructor  SvmLargeOpt(int svmSize, const IntVec y,	      DataPt *trnSetPtr,	      const KernVal (*kernProdFuncPtr)(const DataPt &pt1,					       const DataPt &pt2),	      DoubleVec cVec, DoubleVec alphaVec, DoubleVec outputVec,	      double b, int chunkSize, 	      SvmKernCache<DataPt, KernVal> *chunkKernCache,	      double tol=10E-4, double eps = 10E-12, int verbosity=1);    void useLinearKernel(int dims, const void(*afunc)(double *&w, const DataPt &p, double amt), const double(*mfunc)(double *w, const DataPt &p));    virtual ~SvmLargeOpt();    void optimize();  void reoptimize();  virtual double outputAtTrainingExample(int ex) const;  virtual double dualObjFunc() const;  //! These are not guaranteed to be correct in general.  //! They are correct immediately after a call to computeTrainingSetPerf().  void getCurrentOutputVals(DoubleVec outputVals);  int computeLeaveOneOutErrors(DoubleVec LOO_Vals);private:  // Support for Linear SVMs  const void(*addToWPtr_) (double *& w, const DataPt &p, double amt);  const double(*multWPtr_) (double *w, const DataPt &p);  bool usingLinear_;  double *w_;  int linDims_;  int chunkSize_;    double tol_;  int verbosity_;    SvmSmallOpt<DataPt, KernVal> *chunkSvm_;    //! chunkSize_ indexes into the training set  IntVec workingSet_;  //! svmSize_ indexes into workingSet_  IntVec workingSetPos_;    IntVec chunkY_;  DataPt *chunkTrnSetPtr_;  SvmKernCache<DataPt, KernVal> *chunkKernCache_;  bool chunkKernCacheAllocatedP_;  int extraCacheRows_;    DoubleVec chunkC_Vec_;  DoubleVec chunkAlphas_;  int numChunkSVs_, numChunkUSVs_;    mutable DoubleVec outputs_;    // Note that QueueElt_'s are set up so that the front item  // of the queue is the one with the LARGEST priority:  //   eltQueue_: priority = -KKT_Dist  //   removalQueue_: priority = KKT_Dist + 1 * (alpha == 0)  priority_queue<QueueElt_> eltQueue_; // examples to check  priority_queue<QueueElt_> removalQueue_; // removal from working set    vector<AlphaDiffElt_ *> alphaDiffHistory_;  vector<double> alphaDiffLengths_;  vector<double> bHistory_;    int majorIterations_;  //! Number of the last major iteration   IntVec lastCheckIter_;    //! for use by update in outputAtTrainingExample  mutable IntVec updateHelper_;     //! used to store temporary kernel products  mutable KernVal *tempKernProds_;   mutable int updateNumber_;    KernVal *selfProds_;  vector<double> phis_;    //! number of times we have to check a point before shrinking it.  //! For large chunk sizes, 0 seems to work pretty well...  int checksBeforeShrinking_;    //! we keep this percentage of the points we would otherwise shrink  double nonShrinkProportion_;   bool optimized_;  enum {coldStart, warmStart, hotStart} startType_;  void initInternal();  void setupAndSolveInitialChunk();  bool setupAndSolveNewChunk();  void forceCurrentChunk();    void createInitialWorkingSet();  void createInitialWorkingSetCold();  void createInitialWorkingSetWarm();  void createInitialWorkingSetHot();    void setupInitialChunkData();  void buildAndSolveChunk();  void updateAlphasAndB();  void destroyChunk();    bool updateWorkingSetAndChunkData();    void pivotWorkingSet(int pointToAdd, int pointToRemove);  //! POSITIVE results -> violation, NEGATIVE results ->  //! how far we are FROM being a violation.  double KKT_ViolationAmt(int ex) const;  int computeLeaveOneOutErrorsInternal(BoolVec LOO_CompNeededP,				       DoubleVec LOO_Vals);};#endif // SVMFU_SVM_LARGE_OPT_HEADER

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
肉色丝袜一区二区| 国产精品久久久久一区二区三区| 亚洲欧洲成人精品av97| 91激情五月电影| 久久er精品视频| 国产精品久久久久一区二区三区共| 在线电影国产精品| 国产精品69毛片高清亚洲| 国产精品久久久久久久蜜臀| 国产调教视频一区| 在线成人免费视频| 欧美人妖巨大在线| 欧美浪妇xxxx高跟鞋交| 色域天天综合网| 国产一区二区视频在线播放| 亚洲精品国产一区二区精华液| 精品国产青草久久久久福利| 91丨九色丨国产丨porny| 裸体歌舞表演一区二区| 国内久久精品视频| 日韩vs国产vs欧美| 有码一区二区三区| 亚洲第四色夜色| 亚洲日本乱码在线观看| 国产日产精品1区| 欧美一区午夜视频在线观看| 色老汉一区二区三区| 欧美三级在线看| 欧洲亚洲国产日韩| 91小视频在线观看| 欧美精品高清视频| 久久众筹精品私拍模特| 91精品中文字幕一区二区三区| av资源站一区| av一二三不卡影片| 欧美三区免费完整视频在线观看| 日韩欧美在线观看一区二区三区| 欧美日韩美女一区二区| 精品久久一二三区| 欧美精品一区二区三区在线| 亚洲欧洲精品一区二区三区不卡| 亚洲成人综合视频| 国产乱码精品一区二区三区五月婷 | 久久国内精品视频| 成人动漫精品一区二区| 国产很黄免费观看久久| 国产制服丝袜一区| 欧美亚洲自拍偷拍| 欧美二区在线观看| 国产精品久久久久婷婷二区次| 亚洲影院理伦片| 视频一区免费在线观看| 成人va在线观看| 欧美白人最猛性xxxxx69交| 一区二区三区四区在线播放| 一区二区三区精品视频| 国产又黄又大久久| 欧美另类变人与禽xxxxx| 综合中文字幕亚洲| 久久99精品国产麻豆不卡| 国模大尺度一区二区三区| 欧美视频你懂的| 亚洲在线一区二区三区| av电影在线不卡| 久久精品人人爽人人爽| 日韩不卡一区二区三区| 欧美日韩久久不卡| 亚洲一区二区欧美| 91一区二区在线观看| 中文字幕久久午夜不卡| 一区二区三区四区在线| 99精品国产99久久久久久白柏 | 亚洲精品欧美在线| 夫妻av一区二区| 色激情天天射综合网| 国产精品美女久久久久av爽李琼| 亚洲成人中文在线| 在线观看免费亚洲| 亚洲国产日韩在线一区模特| 激情欧美一区二区三区在线观看| 欧美美女喷水视频| 无码av免费一区二区三区试看| 国产jizzjizz一区二区| 亚洲国产精品v| 99v久久综合狠狠综合久久| 国产精品福利一区二区三区| 91在线国内视频| 亚洲美女屁股眼交| 懂色av一区二区三区免费观看| 久久人人爽爽爽人久久久| 亚洲国产一区视频| 欧美精品123区| 久久99精品国产麻豆不卡| 国产视频一区二区在线| aaa亚洲精品一二三区| 亚洲日本va在线观看| 欧洲精品在线观看| 调教+趴+乳夹+国产+精品| 日韩一级完整毛片| 一本色道久久综合亚洲91| 亚洲精品美腿丝袜| 欧美精品第1页| 国精产品一区一区三区mba桃花 | 国产不卡高清在线观看视频| 国产精品久久久久影视| 精品视频在线看| 久久aⅴ国产欧美74aaa| 亚洲国产成人一区二区三区| 色呦呦国产精品| 麻豆国产欧美日韩综合精品二区| 色婷婷av一区二区三区之一色屋| 午夜精品免费在线| 久久久电影一区二区三区| 色婷婷久久综合| 九色|91porny| 亚洲日本韩国一区| 日韩欧美一级精品久久| 日本欧美一区二区| 国产免费观看久久| 777a∨成人精品桃花网| 成人蜜臀av电影| 中文字幕亚洲在| 欧美一区二区三区四区五区| 97国产一区二区| 久久 天天综合| 亚洲精品一二三| 2019国产精品| 欧美二区在线观看| 色先锋资源久久综合| 国产毛片精品国产一区二区三区| 玉足女爽爽91| 国产精品免费丝袜| 欧美成人一区二区三区在线观看| 99精品视频中文字幕| 国产中文一区二区三区| 天天综合网天天综合色| 一区二区三区在线观看国产| 国产午夜三级一区二区三| 日韩一级欧美一级| 91精品国产综合久久久久久漫画| 91在线视频播放地址| 国产+成+人+亚洲欧洲自线| 久久精品国产一区二区三| 亚洲国产精品精华液网站| **欧美大码日韩| 中文字幕第一区综合| 久久久久国产精品厨房| 日韩亚洲欧美成人一区| 欧美日本一区二区| 在线免费观看一区| 一本高清dvd不卡在线观看| 高清shemale亚洲人妖| 国产成人免费在线视频| 国产精品中文有码| 国产成人日日夜夜| 波多野洁衣一区| 成人av网站在线观看| 99精品久久久久久| 91免费国产视频网站| 一本久道久久综合中文字幕| 91福利在线观看| 91精彩视频在线观看| 欧美三级视频在线播放| 欧美日韩色一区| 91精品国产综合久久精品| 91精品婷婷国产综合久久性色| 这里只有精品视频在线观看| 欧美一区二区三区电影| 亚洲精品一区二区三区99| 精品国产91洋老外米糕| 欧美激情一区不卡| 亚洲丝袜另类动漫二区| 亚洲综合色噜噜狠狠| 日韩av午夜在线观看| 极品少妇xxxx精品少妇| 风间由美一区二区av101| 成人福利视频网站| 欧美系列一区二区| 欧美一区二区三区四区五区| 久久色.com| 中文字幕在线不卡| 亚洲国产精品影院| 日本aⅴ亚洲精品中文乱码| 亚洲视频免费看| 亚洲国产中文字幕在线视频综合| 日本一区中文字幕| 成人性生交大片免费看中文| 99免费精品视频| 538prom精品视频线放| 精品国产不卡一区二区三区| 亚洲欧洲国产日本综合| 日本伊人午夜精品| 成人免费视频视频| 欧美精品精品一区| 国产精品对白交换视频| 免费观看一级特黄欧美大片| 成人美女在线视频| 日韩欧美国产三级电影视频| 国产精品国产三级国产aⅴ无密码| 天天av天天翘天天综合网|