Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
"""
with open_file_like(f, 'r') as fp:
self.history = History(json.load(fp))
def initialize_history(self):
"""Initializes the history."""
self.history = History()
def initialize_history(self):
"""Initializes the history."""
self.history_ = History()