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

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

?? artmap.h

?? ARTMAP source code. include: Fuzzy ARTMAP, Default ARTMAP, Instance-Counting ARTMAP, Distributed ART
?? H
字號:
/**
 * \file
 * artmap.h
 *
 * Copyleft (C) - Boston University CELEST Technology Laboratory
 */

#ifndef ARTMAP_H
#define ARTMAP_H

#include <iostream>
#include <vector>
#include <fstream>
#include <valarray>

#include "Logger.h"
#include "MsgException.h"
#include "util.h"

using std::ifstream;
using std::vector;
using std::string;
using std::istringstream;

#ifndef ARTMAP_DLL
#define ARTMAP_DECLSPEC
#else
#ifdef ARTMAP_IMPORT
#define ARTMAP_DECLSPEC __declspec(dllimport)
#else
#define ARTMAP_DECLSPEC __declspec(dllexport)
#endif
#endif

/**
  Artmap class - Implements the Distributed ARTMAP model.
	         Depending on the NetworkType setting, can emulate
					 fuzzy ARTMAP, Default ARTMAP, or the instance
					 counting and distributed varieties. A flowchart 
					 of the training process is shown below:
					 \image html TrainingFlowchart.png "ARTMAP Training Flowchart"

 */

class ARTMAP_DECLSPEC artmap {
 public:
	 /** The available ARTMAP models (See main page for differences between models). */
  typedef enum RunModeType { FUZZY, DEFAULT, IC, DISTRIB };

 private:
  RunModeType NetworkType;  ///< Controls the algorithm used

	int     M;          ///< Number of inputs (before complement-coding) 
  int     L;	        ///< Number of output classes ([1-L], not [0-(L-1)]) 
  
  float   RhoBar;     ///< Baseline vigilance - training
  float   RhoBarTest; ///< Baseline vigilance - testing
  float   Alpha;      ///< Signal rule parameter
  float   Beta;       ///< Learning rate
  float   Eps;        ///< Match tracking parameter
  float   P;          ///< CAM rule power parameter
  
  int     C;          ///< Number of committed nodes 
  
  int     J;          ///< In WTA mode, index of the winning node 
  int     K;          ///< The target class (1-L, not 0-(L-1)) 

  float   rho;        ///< Current vigilance 

  /** Index ranges - i: 1-M, j: 1-C; k: 1-L */
  float * A;          ///< Indexed by i - Complement-coded input 
  float * x;          ///< Indexed by i - F1, matching 
  float * y;          ///< Indexed by j - F2, coding 
  float * Y;          ///< Indexed by j - F3, counting 
  float * T;          ///< Indexed by j - Total F0->F2 
  float * S;          ///< Indexed by j - Phasic F0->F2 
  float * H;          ///< Indexed by j - Tonic F0->F2 (Capital Theta) 
  float * c;          ///< Indexed by j - F2->F3 
  bool  * lambda;     ///< Indexed by j - T if node is eligible, F otherwise 
  float * sigma_i;    ///< Indexed by i - F3->F1 
  float * sigma_k;    ///< Indexed by k - F3->F0ab 
  int   * kap;        ///< Indexed by j - F3->Fab (small kappa) 
	float * dKap;				///< Distributed version of kap 
  float * tIj;        ///< Indexed by i&j - F0->F2 (tau sub ij) 
  float * tJi;        ///< Indexed by j&i - F3->F1 (tau sub ji) 

	bool    dMapWeights;  ///< if true, use dKap, else use kap 

  /* Utility variables (not in algorithm) */
  float  Tu;          ///< Uncommitted node activation 
  float  sum_x;       ///< To avoid recomputing norm 
  int    _2M;         ///< To keep from repeatedly calculating 2*M 
  int    N;           ///< Growable upper bound on coding nodes 
  int    i, j, k;     ///< Indices i, j and k, so we don't have to declare 'em everywhere 

  void complementCode(float  *a);
  int  F0_to_F2_signal();
  void newNode();
  void CAM_distrib();
  void CAM_WTA();
  void F1signal_WTA();
  void F1signal_distrib();
  bool passesVigilance();
  int  prediction_distrib();
  int  prediction_WTA();
  void matchTracking();
  void creditAssignment();
  void resonance_distrib();
  void resonance_WTA();
  void growF2 (float  factor);

	/** 
	 This cost function takes the input signal \f$T_j\f$ to an F2 node,
	 and rescales the metric so that nodes that match the training/test 
	 sample being evaluated well have low cost. It reaches a minimum of zero 
	 when the argument \f$T_j\f$ is equal to \f$(2-\alpha)M\f$, which 
	 corresponds to the training/test sample falling within a point category box.
	 @param x The input signal \f$T_j\f$ to a category node.
	 @return A measure of the 'cost' of the category node with respect to a particular training/test sample.
	 */
  float cost(float x) { return ((2-Alpha)*M - x); }
	ofstream *ostCategoryActivations;
  void toStr();
  void toStr_dimensions();
  void toStr_A();
  void toStr_nodeJTSH(int j);
  void toStr_nodeJdetails(int j);
  void toStr_nodeJtauIj(int j);
  void toStr_nodeJtauJi(int j);
  void toStr_x();
  void toStr_sigma_i();
  void toStr_sigma_k();
		
 public:
				 artmap    (int M, int L);
		    ~artmap();
  void   train     (float  *a, int K);
  void   test      (float  *a);
	/** Returns the k-th output (distributed prediction).
	    @param k The index of the output to retrieve 
			@return The predicted likelihood that the input is of class k
			        If no choice is appropriate, then all output values are 1.0
	 */
  float  getOutput (int k) { return sigma_k[k]; }
	/** 
   Returns the index of the largest output prediction, which
	 in a winner-take-all situation (fuzzy ARTMAP) is the predicted class.
	 @return The index of the predicted class, or -1 if there's a tie.
	 */
	int    getMaxOutputIndex () { 
		std::valarray<float> outs = std::valarray<float> (sigma_k, L);
		return getIndexOfMaxElt (outs);
	}

  void   fwrite    (ofstream &ofs);
  void   fread     (ifstream &ifs, string &specialRequest);

  void setParam (const string &name, const string &value);
	/** Returns the number of category nodes (aka templates learned by the network) */
  int         getC()            { return C;           }
	/** Returns the output class associated with a category node with the given index */
	int         getNodeClass (int j) { if ((j < 0) || (j > C) || dMapWeights) { return -1; } else { return kap[j]; } }
	/** Returns the number of bytes required to store the weights for the network */
  int         getLtmRequired () { return C * M * 2 * sizeof (float ); }
  float  &tauIj (int i, int j);
  float  &tauJi (int i, int j);
  int     getOutputType (const string &name);
  int     getInt        (const string &name);
  float   getFloat      (const string &name);
  string &getString     (const string &name);

	void    requestOutput (const string &name, ofstream *ost);
	void    closeStreams  ();

  void setNetworkType (RunModeType v) { NetworkType = v; } ///< Accessor method
  void setM           (int         v) { M	    = v; }       ///< Accessor method
  void setL           (int         v) { L	    = v; }       ///< Accessor method 
  void setRhoBar      (float       v) { RhoBar      = v; } ///< Accessor method
  void setRhoBarTest  (float       v) { RhoBarTest  = v; } ///< Accessor method
  void setAlpha       (float       v) { Alpha       = v; } ///< Accessor method
  void setBeta        (float       v) { Beta        = v; } ///< Accessor method
  void setEps         (float       v) { Eps         = v; } ///< Accessor method
  void setP           (float       v) { P           = v; } ///< Accessor method

  RunModeType getNetworkType() { return NetworkType; }     ///< Accessor method
  int 	      getM()           { return M;           }     ///< Accessor method
  int 	      getL()           { return L;           }     ///< Accessor method
  float       getRhoBar()      { return RhoBar;      }     ///< Accessor method
  float       getRhoBarTest()  { return RhoBarTest;  }     ///< Accessor method
  float       getAlpha()       { return Alpha;       }     ///< Accessor method
  float       getBeta()        { return Beta;        }     ///< Accessor method
  float       getEps()         { return Eps;         }     ///< Accessor method
  float       getP()           { return P;           }     ///< Accessor method
};

/* Used to iterate the 'official' indices */
#define foreach_i for (i = 0; i < _2M; i++)
#define foreach_j for (j = 0; j <   C; j++) 
#define foreach_k for (k = 0; k <   L; k++)

#define forall_j  for (j = 0; j < N; j++)

#endif


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区视频在线观看2020| 国产aⅴ综合色| 欧美久久久一区| 首页国产欧美久久| 在线综合视频播放| 奇米影视7777精品一区二区| 欧美一级欧美一级在线播放| 久久草av在线| 国产天堂亚洲国产碰碰| 成人黄页毛片网站| 亚洲一区二区中文在线| 91精品啪在线观看国产60岁| 精品一区二区三区视频| 欧美国产乱子伦| 欧洲一区在线电影| 免费观看日韩av| 欧美激情艳妇裸体舞| 色综合咪咪久久| 男男视频亚洲欧美| 国产精品久久毛片| 欧美日韩免费一区二区三区| 久久av资源网| 日韩理论片在线| 日韩欧美久久久| 99国产麻豆精品| 美女在线观看视频一区二区| 欧美国产日韩亚洲一区| 欧美日韩亚洲综合一区| 精品亚洲porn| 一区二区三区日韩精品视频| 日韩美女一区二区三区| 99re亚洲国产精品| 久久99国产精品久久99| 亚洲激情第一区| 欧美www视频| 色视频欧美一区二区三区| 免费高清在线视频一区·| 中文字幕精品一区二区精品绿巨人 | 亚洲丝袜自拍清纯另类| 91精品国产入口| 99国产精品久久| 久久成人免费日本黄色| 亚洲国产精品久久久久婷婷884 | 成人福利在线看| 免费在线观看精品| 亚洲男人天堂av网| 久久久高清一区二区三区| 欧美日本国产视频| 99久精品国产| 国产精品系列在线观看| 日韩av在线免费观看不卡| 中文字幕在线播放不卡一区| 精品久久国产老人久久综合| 欧美综合天天夜夜久久| 成人国产精品免费观看动漫| 精品一区二区三区久久| 天堂在线一区二区| 一区二区三区电影在线播| 久久综合一区二区| 91精品国产品国语在线不卡| 欧美在线一区二区三区| 99精品国产一区二区三区不卡| 国产一区二区电影| 日本不卡不码高清免费观看| 亚洲午夜一二三区视频| 中文字幕一区二区三区四区不卡| 久久亚区不卡日本| 天天操天天色综合| 亚洲欧美日韩在线| 亚洲女女做受ⅹxx高潮| 亚洲欧洲成人精品av97| 国产精品久久久一本精品 | 懂色av中文一区二区三区| 九九久久精品视频| 青青草97国产精品免费观看无弹窗版| 亚洲午夜羞羞片| 午夜久久电影网| 亚洲mv在线观看| 午夜精品久久久久久久久久久| 亚洲综合色丁香婷婷六月图片| 亚洲九九爱视频| 一区二区三区欧美| 亚洲一区二区三区四区中文字幕 | 亚洲美女区一区| 亚洲美女屁股眼交3| 亚洲精品国产一区二区精华液| 亚洲黄色免费网站| 亚洲综合小说图片| 五月婷婷久久丁香| 免费成人小视频| 国产精品888| 99国产精品久久久久| 欧洲精品视频在线观看| 7777精品伊人久久久大香线蕉经典版下载 | 一区二区三区四区精品在线视频 | 国产成人免费av在线| 成人免费福利片| 色网综合在线观看| 欧美日韩黄色影视| 精品三级av在线| 中文字幕av一区二区三区高| 亚洲少妇最新在线视频| 成人一级黄色片| 狂野欧美性猛交blacked| 国产福利一区二区| 日韩视频免费观看高清完整版| 国产成都精品91一区二区三| 国产精品一区在线| 男人操女人的视频在线观看欧美| 亚洲精品中文字幕乱码三区| 国产精品久久久久久久久快鸭 | 午夜精品在线视频一区| 久久亚洲综合色一区二区三区| 日韩精品一区二区三区中文不卡 | 亚洲精品国产第一综合99久久| 欧美日韩激情一区二区三区| 国产精品66部| 国产一区二区伦理片| 亚洲一区在线看| 自拍偷拍国产亚洲| 亚洲欧洲综合另类| 中日韩免费视频中文字幕| 国产精品二三区| 日韩av一区二区在线影视| 国产精品一品二品| 欧美性大战久久久久久久| 精品国产网站在线观看| 亚洲日本va在线观看| 91无套直看片红桃| 99热这里都是精品| 亚洲人成网站色在线观看| 91在线观看地址| 成熟亚洲日本毛茸茸凸凹| 欧美日韩亚洲综合一区二区三区| www日韩大片| 首页综合国产亚洲丝袜| 99re成人在线| 国产欧美日韩综合精品一区二区| 午夜影院久久久| 成人黄色a**站在线观看| 精品噜噜噜噜久久久久久久久试看| 亚洲综合网站在线观看| 成人av网站在线观看免费| 337p日本欧洲亚洲大胆精品| 同产精品九九九| 色综合网站在线| 国产精品国产馆在线真实露脸 | 中文字幕日韩一区| 国模冰冰炮一区二区| 91麻豆精品国产91久久久久久| 亚洲老司机在线| 99久久伊人精品| 国产日本欧美一区二区| 国内精品嫩模私拍在线| 欧美变态tickling挠脚心| 日日欢夜夜爽一区| 欧美高清视频www夜色资源网| 亚洲情趣在线观看| 91丨porny丨首页| 亚洲欧洲国产日韩| 不卡在线视频中文字幕| 国产欧美一区二区三区在线老狼| 麻豆精品在线观看| 欧美成人精品高清在线播放| 日韩黄色小视频| 5月丁香婷婷综合| 五月天欧美精品| 欧美一卡在线观看| 免费成人在线视频观看| 精品精品国产高清a毛片牛牛 | 亚洲另类在线制服丝袜| 日韩欧美电影一区| 日韩国产精品久久久| 91精品国产综合久久婷婷香蕉| 日韩有码一区二区三区| 6080yy午夜一二三区久久| 奇米综合一区二区三区精品视频| 69堂成人精品免费视频| 另类调教123区| 26uuu国产日韩综合| 国产精品一区二区在线观看网站| 久久亚洲精品国产精品紫薇| 成人午夜又粗又硬又大| 最新不卡av在线| 91精品1区2区| 日韩精品欧美精品| 久久久久国产精品免费免费搜索| 国产很黄免费观看久久| 亚洲视频在线一区观看| 在线观看日韩精品| 蜜臀精品一区二区三区在线观看| 精品国产免费人成电影在线观看四季| 国产一区二区三区在线看麻豆| 国产精品视频一区二区三区不卡| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 国产成人免费在线| 国产精品成人免费精品自在线观看| 色综合久久中文字幕综合网| 日韩综合小视频| 欧美激情中文不卡|