I have just started working on Azure Data bricks.
I am facing some error while running a already created Python NoteBook.
Here is the code:
import mmlspark
from mmlspark import *
lime = TabularLIME()\
.setModel(randomForestModel)\
.setPredictionCol("predict")\
.setOutputCol("weights")\
.setInputCol("feat")
lime_model = lime.fit(eng_train_pipe)
lime_model.save('dbfs:/mnt/aimodels/rf-eng-lag-lime')
Getting this error:
NameError Traceback (most recent call last)
<command-2244283784192060> in <module>
2 from mmlspark import *
3
----> 4 lime = TabularLIME()\
5 .setModel(rfModel)\
6 .setPredictionCol("prediction")\
NameError: name 'TabularLIME' is not defined
Cluster Runtime is :6.5 (includes Apache Spark 2.4.5, Scala 2.11)