robertwb commented on code in PR #21803: URL: https://github.com/apache/beam/pull/21803#discussion_r894880365
########## 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: Should this be private with a leading underscore? (Another idea is to put it in a common base class, but there are pros and cons to that so I'm fine with this.) -- 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]
