microsoft / SynapseML

Simple and Distributed Machine Learning
http://aka.ms/spark
MIT License
5.07k stars 832 forks source link

Error When Trying To Use CNTKModel() #819

Open Kinchenn opened 4 years ago

Kinchenn commented 4 years ago

Describe the bug I am trying to follow the DeepLearning - BiLSTM Medical Entity Extraction.ipynb example which I have done previously. But, this time I am getting an error when running this block of code:

model = CNTKModel() \
    .setModelLocation(modelSchema.uri) \
    .setInputCol("features") \
    .setOutputCol("probs") \
    .setOutputNodeIndex(0) \
    .setMiniBatchSize(1)

To Reproduce Run this notebook: https://github.com/Azure/mmlspark/blob/master/notebooks/samples/DeepLearning%20-%20BiLSTM%20Medical%20Entity%20Extraction.ipynb

Info (please complete the following information):

Stacktrace

Py4JJavaError: An error occurred while calling None.com.microsoft.ml.spark.cntk.CNTKModel.
: java.lang.NoSuchMethodError: com.microsoft.CNTK.CNTKUtils$.ArgumentPrefix()Ljava/lang/String;
    at com.microsoft.ml.spark.cntk.CNTKModel.<init>(CNTKModel.scala:207)
    at com.microsoft.ml.spark.cntk.CNTKModel.<init>(CNTKModel.scala:148)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:247)
    at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:380)
    at py4j.Gateway.invoke(Gateway.java:250)
    at py4j.commands.ConstructorCommand.invokeConstructor(ConstructorCommand.java:80)
    at py4j.commands.ConstructorCommand.execute(ConstructorCommand.java:69)
    at py4j.GatewayConnection.run(GatewayConnection.java:251)
    at java.lang.Thread.run(Thread.java:748)
welcome[bot] commented 4 years ago

šŸ‘‹ Thanks for opening your first issue here! If you're reporting a šŸž bug, please make sure you include steps to reproduce it.