Ejemplo n.º 1
0
    def on_clicked_test(self, widget):
        print(self.rbfn.testing(np.array([22.0000000, 8.4852814, 8.4852814])))
        print(self.rbfn.testing(np.array([21.0028513, 8.3706824, 8.6047198])))
        print(self.rbfn.testing(np.array([20.0084911, 8.2526888, 8.7363457])))
        print(self.rbfn.testing(np.array([19.0155847, 8.1329543, 8.8768701])))

        return

        self.rbfn = rbfn(self.training_set, 15, iteration=5, population=50)
        mycar = Car()
        count = 0
        # self.rbfn.set_test()
        self.map_draw_paper.test_sensor()
        return
Ejemplo n.º 2
0
 def on_clicked_new(self, widget):
     print("on click new")
     self.rbfn = rbfn(self.training_set, int(self.layer_size_rate_sb.get_value()), population=int(self.population_rate_sb.get_value()), crossover_rate=self.crossover_rate_sb.get_value()/100, mutation_rate=self.mutation_rate_sb.get_value()/100)