from hulearn.regression import *¶
FunctionRegressor¶
This class allows you to pass a function to make the predictions you're interested in.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
func |
the function that can make predictions | required | |
**kwargs |
extra keyword arguments will be pass to the function, can be grid-search-able | {} |
The functions that are passed need to be pickle-able. That means no lambda functions!
fit(self, X, y)¶
Show source code in regression/functionregressor.py
20 21 22 23 24 25 26 27 | |
Fit the classifier. No-Op.
partial_fit(self, X, y=None)¶
Show source code in regression/functionregressor.py
29 30 31 32 33 34 35 36 | |
Fit the classifier partially. No-Op.
predict(self, X)¶
Show source code in regression/functionregressor.py
38 39 40 41 42 43 | |
Make predictions using the passed function.