docs: def _check_cooling_parameters(radiuscooling, scalecooling):
      """Helper function to verify the cooling parameters of the training.
      """
      if radiuscooling != "linear" and radiuscooling != "exponential":
          raise Exception("Invalid parameter for radiuscooling: " +
                          radiuscooling)
      if scalecooling != "linear" and scalecooling != "exponential":
          raise Exception("Invalid parameter for scalecooling: " +
                          scalecooling)