How to use the skorch.history.History function in skorch

To help you get started, we’ve selected a few skorch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github skorch-dev / skorch / skorch / net.py View on Github external
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))
github skorch-dev / skorch / skorch / net.py View on Github external
def initialize_history(self):
        """Initializes the history."""
        self.history = History()
github skorch-dev / skorch / skorch / net.py View on Github external
def initialize_history(self):
        """Initializes the history."""
        self.history_ = History()