self.error_history = []
warnings.warn("Training error history was not found from the archive.")
else:
saved_error_history = data["error_history"].tolist()// If the error history was empty when the state was saved,// ndarray.tolist() will return None.if not saved_error_history is None:
self.error_history = saved_error_history