validate¶
-
LinearRegression.
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:
l = getml.predictors.LinearRegression() l.learning_rate = 8.1 l.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.