main_lasso.h

来自「统计学习软件包」· C头文件 代码 · 共 74 行

H
74
字号
#ifndef Kreg_CNV_H#define Kreg_CNV_H#include <stdio.h>#include <stdlib.h>#include <fstream.h>#include <time.h>#include <math.h>#include "my_mat.h"#include "LogregLASSO.h"   class main_LASSO{ public:		  main_LASSO(char* dfn, char* afn, int ntot, int dim, double cross_start, double cross_add, int cross_number, int it);  virtual ~main_LASSO();  void Classify();   void Classify_Reduced();  void ReadData(); protected:   double Predict(int);  int cross_rand( double fold);  void Enlarge_const(double const_val);  void randPerm(int* array, int length);  private:     My_Matrix*  hist_wrong_mat;  My_Matrix*  hist_correct_mat;  int** rv_hist_mat;   double intercept;  double mu_buff;  char** gene_names;  LogregLASSO* LM;  My_Matrix* XG;  My_Matrix* Relg;  My_Matrix* Relg_Buff;  My_Matrix* A;  My_Matrix* ATest;  int* Y;  int* YT;  int Acols;  int ntotal, dimension, iter;  double mu;  int* true_labs;    double* relv;  int*  orig_numbs;  char*  data_file_name;  char* annot_file_name;   int* docalc;  int rv_numb;  int retrain;  double cv_start;  double cv_add;  int cv_number;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?