-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot be cast to [Lcom.salesforce.op.stages.impl.feature.TextStats; #504
Comments
Please make sure you have JVM 1.8.x with Scala 2.11.x in your Jupyter notebook. FYI, here are the instructions on how to use TransmogrifAI from a Jupyter notebook - https://docs.transmogrif.ai/en/stable/examples/Running-from-Jupyter-Notebook.html |
Thanks @tovbinm for your response. Indeed I dont think it's the problem of compatibility. It works well when there're only numerical features. Whenever I add a string column to input dataframe, I got the same Exception. Do you have any other hint? |
Not really. We explicitely test for text features with SmartTextVectorizer already - https://github.com/salesforce/TransmogrifAI/blob/master/core/src/test/scala/com/salesforce/op/stages/impl/feature/SmartTextVectorizerTest.scala#L55 Perhaps @leahmcguire / @Jauntbox / @wsuchy would have some ideas? |
This is not about the string type. One point it that we are built on Spark 2.4.5 not 2.4.4. This kind of thing is most likely to pop up with version incompatibilities. |
Yes it might be one of the issue. The problem is that sometime I manage to make it works by adding
but when I change to a different dataset, same problem came back. Maybe as @leahmcguire mentioned, it's indeed due to version incompatibilities. Any workaround for this? The one I have in mind is to perform one-hot encode all categorical variables (I suppose behind it's the same if I don't want any text transformation, see this). |
Describe the bug
I try to launch a minimal example (Titanic) from a Jupyter hub with Spark 2.4.4, and got the following exception for string features:
The unit test in my local repo seems to work well, with the following dependencies:
To Reproduce
This work on local:
While the same doesn't from jupyter hub:
Expected behavior
Logs or screenshots
If applicable, add logs or screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: