Exemple #1
0
    def __init__(self, data, tree=None):
        self.__selection = set()

        self.__examples = []

        if tree is not None:
            self.__tree = tree
        else:
            self.__tree = ClusterTree(data)
        self.__clusters = None

        self.__weights = [-1.0, 1.0, 0.667]
        self.__constant, self.__constantCount = False, 0
        self.__oldconstant, self.__oldconscount = False, 0
        self.__score = None
Exemple #2
0
    def __init__(self, data, tree=None):
        self.__pselection = set()
        self.__nselection = set()

        self.__examples = []
        self.__positives = []
        self.__negatives = []

        if tree is None:
            self.__tree = ClusterTree(data)
        else:
            self.__tree = tree
        self.__pclusters = None
        self.__nclusters = None

        self.__weights = [-1.0, 1.0, 0.667]
        self.__score = None