def stats(self, key):
        data = self.cache[key]
        mean = np.mean(data)
        std = np.std(data)
        slope = self.slope
        if self.calls % 100 == 0:
            lr = LinearRegression()
            x = np.arange(len(data)).astype('float32')
            lr.fit(x[:, None], np.array(data))
            self.slope = lr.coef_[0]
        self.calls += 1
        return mean, std, slope
Get the statistics for items with a particular key
dataset/ETHPy150Open cemoody/lda2vec/lda2vec/tracking.py/Tracking.stats