validate

XGBoostRegressor.validate(params=None)[source]

Checks both the types and the values of all instance variables and raises an exception if something is off.

Args:
params (dict, optional): A dictionary containing

the parameters to validate. If not is passed, the own parameters will be validated.

Examples:

x = getml.predictors.XGBoostRegressor()
x.gamma = 200
x.validate()

Note:

This method is called at end of the __init__ constructor and every time before the predictor - or a class holding it as an instance variable - is send to the getML engine.