def __init__(self, dataset, nodes, sigma_0, learn_rate_0, total_iterations, scaler, sigma_timeconst, learn_t, plot_interval): SOM.__init__(self, dataset, nodes, sigma_0=sigma_0, learn_rate_0=learn_rate_0, total_iterations=total_iterations, sigma_timeconst=sigma_timeconst, learn_timeconst=learn_t, plot_interval=plot_interval, graphics=TSPGraphics()) self.scaler = scaler
def __init__(self, train_x, train_y, test_x, test_y, nodes, sigma_0, learn_rate_0, total_iterations, learn_rate_timeconst, scaler, sigma_timeconst, plot_interval): SOM.__init__(self, train_x, nodes, sigma_0, learn_rate_0, sigma_timeconst, learn_rate_timeconst, total_iterations, plot_interval=plot_interval, graphics=MNISTGraphics()) self.scaler = scaler self.train_y = train_y self.test_x = test_x self.test_y = test_y