def reset(self):
        """Resets the KMeans functions and average values.

        Resets: train, predict, avg_error

        """
        self._init_func()
        if self.draw:
            init_plot()
        self.avg_error = 0
    def reset(self):
        """Resets the KMeans functions and average values.

        Resets: train, predict, avg_error

        """
        self._init_func()
        if self.draw:
            init_plot()
        self.avg_error = 0
    def __init__(self, draw, output, incremental=True, alpha=0.01,
                 figsize=(15, 8)):
        self.draw = draw
        self.output = output
        self.avg_error = 0
        self.incremental = incremental
        self._init_func()
        self.w = 0
        self.alpha = alpha

        if draw:
            init_plot(figsize)
    def __init__(self,
                 draw,
                 output,
                 incremental=True,
                 alpha=0.01,
                 figsize=(15, 8)):
        self.draw = draw
        self.output = output
        self.avg_error = 0
        self.incremental = incremental
        self._init_func()
        self.w = 0
        self.alpha = alpha

        if draw:
            init_plot(figsize)