code: def from_file(cls, f):
          
  
          with open_file_like(f, 'r') as fp:
              return cls(json.load(fp))
docs: Load the history of a ``NeuralNet`` from a json file.
  
          Parameters
          ----------
          f : file-like object or str