def class_accuracy (cat, y_true, y_pred):
  """
  Function for individual Class Accuracy score
  :param string cat: name of class.
  :param array y_true: True classes, shape = [n_samples].
  :param array y_pred: Predicted classes, shape = [n_samples].
  :return: cba (`float`): The individual Class Accuracy score (returned as percentage)
  """
  total = list(y_true).count(cat)
  y_true_ = list(y_true)
  y_pred_ = list(y_pred)
  correct = [i for i, x in enumerate(y_true_) if x == str(cat) and y_true_[i] == y_pred_[i]]
  if total == 0:  
    acc = None
  else:
    acc = len(correct)/total
    acc = round((acc*100),2)
  return acc