sassoftware / python-dlpy

The SAS Deep Learning Python (DLPy) package provides the high-level Python APIs to deep learning methods in SAS Visual Data Mining and Machine Learning. It allows users to build deep learning models using friendly Keras-like APIs.
Apache License 2.0
224 stars 131 forks source link

Load model from astore? #366

Closed jlwalke2 closed 3 years ago

jlwalke2 commented 3 years ago

Is there a way to load a model from an astore file? Or convert an astore loaded in CAS into a Model instance?

It's easy to go from a Model to an astore with dlpy.Model.save_to_astore() but there doesn't appear to be a dlpy.Model.from_astore().

eusdougc commented 3 years ago

@jlwalke2 and I communicated offline. The main question here is this: the Model class has a number of user-friendly features, like .predict(), .plot_evaluate_res(), .heat_map_analysis(), etc. I’m trying to figure out if saving the model as an ASTORE prevents me from using these features down the road.

The short answer to this question is yes. Once a model has been saved in ASTORE format, you cannot use the Model interface with it. That could be a new feature request, although there are some Model interfaces that would not be supported.

jlwalke2 commented 3 years ago

thanks @eusdougc