赞
踩
- #-*- coding:UTF-8 -*-
- import numpy as np
-
- class ABSboost():
- def __init__(self,Cdt,X,Y):
- self.Cdt = Cdt
- self.X = X
- self.Y = Y
- self.N = len(Y)
- self.D = []
- self.Gx = []
- self.createGxFun()#创建所有可能的分类器
-
- def createGxFun(self):
- self.AllGX = {}
- R = set(self.Y)
- for i,c in enumerate(self.Cdt):
- cvalue = set(self.X[::,i:i+1:1].T[0])#找到该条件的可能值
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。