def load_history(self, f):
        """Load the history of a ``NeuralNet`` from a json file. See
        ``save_history`` for examples.

        Parameters
        ----------
        f : file-like object or str

        """
        # TODO: Remove warning in a future release
        warnings.warn(
            "load_history is deprecated and will be removed in the next "
            "release, please use load_params with the f_history keyword",
            DeprecationWarning)

        self.history = History.from_file(f)