TensorFrames not working with Tensorflow on Data Science Experience

萝らか妹 提交于 2019-12-02 21:56:01

问题


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?


回答1:


I found a jar that will get passed the above code, but I can't do any computations using TensorFrames. I suppose I can ask another follow up question:

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


来源:https://stackoverflow.com/questions/44140581/tensorframes-not-working-with-tensorflow-on-data-science-experience

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!