uclamii / model_tuner

A library to tune the hyperparameters of common ML models. Supports calibration and custom pipelines.
Apache License 2.0
3 stars 0 forks source link

added exception for when y=set to None by user #53

Closed lshpaner closed 3 weeks ago

lshpaner commented 3 weeks ago

Added the following line at the top of the function (after the docstring) to raise an error if user does not explicitly enter a y input:

  # Check if y is provided
  if y is None:
      raise ValueError("The y parameter is required and cannot be None.")