#StackBounty: #machine-learning #python #pyspark #lime 'TabularLIME' is not defined Azure DataBricks

Bounty: 50

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


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.