예제 #1
0
    def tester(self, testpoint):

        if self.__type == 'regression':
            regressionmanager = Regressionmanager()
            result = regressionmanager.testing(self.method, self.model,
                                               testpoint)

        elif self.__type == 'supervise':
            classifymanager = Classifymanager()
            result = classifymanager.testing(self.method, self.model,
                                             testpoint)

        elif self.__type == 'others':
            others = Othersmanager()
            result = others.testing(self.method, self.model, testpoint)

        print result
        return result
예제 #2
0
파일: main.py 프로젝트: pm429015/SmartML
    def tester(self, testpoint):

        if self.__type == 'regression':
            regressionmanager = Regressionmanager()
            result = regressionmanager.testing(self.method, self.model, testpoint)

        elif self.__type == 'supervise':
            classifymanager = Classifymanager()
            result = classifymanager.testing(self.method, self.model, testpoint)

        elif self.__type == 'others':
            others = Othersmanager()
            result = others.testing(self.method, self.model, testpoint)

        print result
        return result


        #if __name__ == "__main__":
        #my = Main('./iris_proc.data', ',', 'supervise')
        #my.loadfile()