ryanthompson591 commented on code in PR #21803: URL: https://github.com/apache/beam/pull/21803#discussion_r894902713
########## sdks/python/apache_beam/ml/inference/sklearn_inference.py: ########## @@ -43,13 +41,26 @@ class ModelFileType(enum.Enum): JOBLIB = 2 -class SklearnModelHandler(ModelHandler[Union[numpy.ndarray, pandas.DataFrame], - PredictionResult, - BaseEstimator]): - """ Implementation of the ModelHandler interface for scikit-learn. +def load_model(model_uri, file_type): Review Comment: yep it should be private. I don't think it should go in the base class, because it is sklearn specific and will not be used outside this module. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
