我正在尝试让Python + deepwater + tensorflow在RHEL 6.7上运行。使用conda
,我安装了python 3.6.0
,tensorflow 1.1.0
和gcc 4.8.5
。 TF工作正常。
我使用pip install
安装了以下库:h2o-3.11.0.3904-py2.py3-none-any.whl
和h2o-3.11.0-py2.py3-none-any.whl
。
我尝试从h2o教程
运行以下示例import h2o
from h2o.estimators.deepwater import H2ODeepWaterEstimator
h2o.init()
train = h2o.import_file("https://h2o-public-test-data.s3.amazonaws.com/bigdata/laptop/mnist/train.csv.gz")
features = list(range(0,784))
target = 784
train[target] = train[target].asfactor()
model = H2ODeepWaterEstimator(epochs=100, activation="Rectifier", hidden=[200,200], ignore_const_cols=False,
mini_batch_size=256, input_dropout_ratio=0.1, hidden_dropout_ratios=[0.5,0.5], stopping_rounds=3,
stopping_tolerance=0.05, stopping_metric="misclassification", score_interval=2, score_duty_cycle=0.5,
score_training_samples=1000, score_validation_samples=1000, nfolds=5, gpu=False, seed=1234, backend="tensorflow")
model.train(x=features, y=target, training_frame=train)
抛出以下异常
Exception: Unable to initialize the native Deep Learning backend: Cannot find TensorFlow native library for OS: linux, architecture: x86_64. See https://github.com/tensorflow/tensorflow/tree/master/java/README.md for possible solutions (such as building the library from source).
还有什么我想念的吗?我是否需要从头开始为这个平台构建位?