Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AI and Deep Learning by (17.6k points)

This is a follow up from this question. I've imported the following jars into my notebook:

pixiedust.installPackage("http://central.maven.org/maven2/com/typesafe/scala-logging/scala-logging-slf4j_2.10/2.1.2/scala-logging-slf4j_2.10-2.1.2.jar")

pixiedust.installPackage("http://central.maven.org/maven2/com/typesafe/scala-logging/scala-logging-api_2.10/2.1.2/scala-logging-api_2.10-2.1.2.jar")

But when I do an extremely basic command using tensorframes, I get the following error:

import tensorframes as tfs

from pyspark.sql import Row

data = [Row(x=[float(x), float(2 * x)],

            key=str(x % 2),

            z = float(x+1)) for x in range(1, 6)]

df = spark.createDataFrame(data)

tfs.print_schema(df)

.... NoClassDefFoundError: org.tensorflow.DataType ....

I can't update Tensorflow any more than it is, and even the latest version using python 3.5 is giving me an error. How should I be implementing tensorframes in IBM's Data Science Experience?

2 Answers

0 votes
by (108k points)
Here is the jar that will get passed the above code:

pixiedust.installPackage("http://central.maven.org/maven2/org/tensorflow/libtensorflow/1.1.0/libtensorflow-1.1.0.jar")
0 votes
by (41.4k points)

You can use the below jar that will help in passing the above code:

pixiedust.installPackage("http://central.maven.org/maven2/org/tensorflow/libtensorflow/1.1.0/libtensorflow-1.1.0.jar")

Browse Categories

...