コード例 #1
0
        void process01EntropyAlgo()
        {
            this.dt_ready = TheTool.dataTable_partitize(dt_raw_exclude, partition_range); //01 partitize
            //------------------------------------------------------------------------------
            this.EnAlgo_first_list_F = TheTool.dataTable_getColList(dt_raw_exclude);      //unselected feature (pointed by id)
            this.list_entropy        = TheEntropy.calEntropy(dt_ready);
            this.list_MI             = TheEntropy.calMIList(dt_ready, list_entropy);      //for reuse MI
            //Feature Selection Start : get first --------------------------------------
            String fi1 = TheEntropy.temp_colWithHigestEntropy;

            this.EnAlgo_first_list_F.Remove(fi1);
            this.EnAlgo_first_S = TheData.getFeature(fi1, dt_threshold_pose1, dt_threshold_pose2);//Initial Threshold is assigned here (Not optimized)
        }
コード例 #2
0
        void process01DCFS()
        {
            //prepare
            this.DCFS_listDelta            = getListDelta();
            this.DCFS_listDeltaCorrelation = TheTool.list_Copy(DCFS_listDelta);
            this.DCFS_first_list_F         = TheTool.dataTable_getColList(dt_raw_exclude);
            this.DCFS_listCorrelation      = getlistCorrelation();
            //pick first feature
            string fi1 = DCFS_listDelta_getMaxValue();

            this.DCFS_first_list_F.Remove(fi1);
            this.DCFS_first_S = TheData.getFeature(fi1, dt_threshold_pose1, dt_threshold_pose2);
            DCFS_listDelta_update(fi1);
        }