TensorFrames无法在数据科学经验上与Tensorflow一起使用 [英] TensorFrames not working with Tensorflow on Data Science Experience

查看:155
本文介绍了TensorFrames无法在数据科学经验上与Tensorflow一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是来自这个问题。我已将以下罐子导入笔记本:

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 ....

我无法更新Tensorflow,甚至连使用python 3.5的最新版本也给我一个错误。我应该如何在IBM的数据科学经验中实现张量框架?

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?

推荐答案

我找到了一个将传递上述代码的jar,但是我无法使用TensorFrames进行任何计算。我想我可以问另一个后续问题:

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")

这篇关于TensorFrames无法在数据科学经验上与Tensorflow一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆