Hey there, My guess is that you built a custom model in the jupyter lab environment where you also installed the keras package and imported the preprocessing functionality (from keras import preproc...
See more...
Hey there, My guess is that you built a custom model in the jupyter lab environment where you also installed the keras package and imported the preprocessing functionality (from keras import preprocessing). You can probably fit and apply your model just fine inside the jupyter lab. The problem is, however, that once you want to fit and apply the model over in Splunk SPL, you get the error you described. Before you do anything else, make sure that the keras package is imported in the correct cell of your jupyter notebook. The package MUST be imported in the correct cell. If you started from the barebone_template.ipynb, this is the cell: You can check if you import packages in the correct cell by navigating to /app/model/your_notebook.py and check whether the keras package is imported. This is the file that will be used once you issue the | fit or | apply command over in Splunk. Here an example of how the .py file from the barebone_template.ipynb looks like: If this did resolve your issue, great. If not, keep on reading. The docker container image you use, must have the keras library installed, otherwise the library is not available through the | fit and | apply command in Splunk SPL. Try resolving your issue by either ... ... using the pre-built 'Transformers CPU (5.1.1)' container image ... using the pre-built 'Transformers GPU (5.1.1)' container image ... build your own docker image as described here Make sure to update your DSDL app to the latest version in order to have these pre-built container images available. Let me know if I can help you any further.