def saveWeightsToFile(self, filename, mode='pickle', counter=None):
        """
        Deprecated. Use saveWeights instead.
        """
        self.saveWeights(filename, mode, counter)
Deprecated. Use saveWeights instead.