Handlers¶
BaseHandler¶
BaseHandler is only an abstract base class. You can't use it directly.
Let's Take a look at some of its functions:
| BaseHandler | |
|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21  |  | 
-  
The default codes do nothing. You can override this function to provide your own pre-processing codes.
 -  
The default codes do nothing. You can override this function to provide your own post-processing codes.
 -  
Get predict function from entrypoint name and the model object. Model can be accessed by
self.model, the entrypoint registered can be accessed byself.entrypoint. -  
You need to implement this function. Model path can be accessed by
self.model_path 
PickleHandler¶
The default handler is PickleHandler.
| PickleHandler | |
|---|---|
1 2 3 4 5 6 7 8  |  |