欺骗skflow模型

时间:2017-06-01 06:10:29

标签: tensorflow skflow

我使用sklow中的tensorforest以及以下模型文件构建了一个模型

  1. 检查点
  2. graph.pbtxt
  3. model.ckpt-1.meta
  4. model.ckpt-1-00000-的-00001
  5. events.out.tfevents.1495890133.COGCONSs-的MacBook-Pro.local
  6. 有谁能告诉我如何编写冻结和模拟模型的代码?我是否必须使用占位符,如在tensorflow中完成或者skflow不同? 这是代码

        y_train = pd.factorize(df_train['data.0.sleeping'])[0]
        y_test = pd.factorize(df_test['data.0.sleeping'])[0]
        df_test=df_test.iloc[:, :-1]
        print(df_test.head(3))
        hparams = tf.contrib.tensor_forest.python.tensor_forest.ForestHParams(
                 num_trees=3, max_nodes=1000, num_classes=2, num_features=4)
        clf = tf.contrib.learn.TensorForestEstimator(hparams, model_dir='model/')
        clf.fit(x=df_train[features], y=y_train,steps=100)
    

0 个答案:

没有答案