class_docstr: Object which carries out genetic search and returns top performing model
  upon completion.
code: def _record_stats(self, model, genome, loss, accuracy):
      with open(self.datafile, "a") as csvfile:
          writer = csv.writer(
              csvfile,
              delimiter=",",
              quotechar='"',
              quoting=csv.QUOTE_MINIMAL,
          )
          row = list(genome) + [loss, accuracy]
          writer.writerow(row)
  
      met = loss if self._metric == "loss" else accuracy
      if (
          self._bssf is -1
          or self._metric_op(met, self._bssf)
          and accuracy is not 0
      ):
          try:
              os.remove("best-model.h5")
          except OSError:
              pass
          self._bssf = met
          model.save("best-model.h5")
  
imports: from __future__ import print_function
  import random
  import csv
  import operator
  import gc
  import os
  from datetime import datetime
  from keras.callbacks import EarlyStopping
  from keras.models import load_model
  import keras.backend
  from sklearn.metrics import log_loss
  import numpy
label_desc: Use image node_id 6 for calling the DEvol obj's underlying member method code with example usage: obj._record_stats(model, genome, loss, accuracy) without return types