Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is tensor_forest in tensorflow 2.0

Tags:

tensorflow

I am trying to implement a random forest using tensorflow 2.0. I have looked at a number of examples (https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/2_BasicModels/random_forest.py), but these are not compatible with tensorflow 2.0. I am trying to figure out if tensor_forests are supported in 2.0 and where I can find them.

I know that the contrib module is unsupported and the modules are supposed to have moved to either the core or addons. However, I can't find any mentions of where it has moved to. I have run the background script and it does not solve the problem. I have also tried just removing the contrib symbols as suggested on the migration guide to no success.

Traceback (most recent call last):
  File "testFileUpgraded.py", line 12, in <module>
    from tensorflow.contrib.tensor_forest.python import tensor_forest
ModuleNotFoundError: No module named 'tensorflow.contrib'
like image 379
JB Anderson Avatar asked Apr 02 '19 00:04

JB Anderson


People also ask

What is TensorFlow 2?

TensorFlow 2.0 is a library that provides a comprehensive ecosystem of tools for developers, researchers, and organizations who want to build scalable Machine Learning and Deep Learning applications. TensorFlow is a popular open-source library released in 2015 by the Google Brain team for building machine learning and deep learning models.

Is tensor_forest being moved from contrib to core?

Unfortunately it looks as though there is still work to be done in migrating some of the modules under contrib into other modules. tensor_forest module will be moved to core, but this has not been done yet Thanks for contributing an answer to Stack Overflow!

What is TF-DF in TensorFlow?

TensorFlow Decision Forests ( TF-DF) is a collection of state-of-the-art algorithms for the training, serving and interpretation of Decision Forest models. The library is a collection of Keras models and supports classification, regression and ranking. TF-DF is a wrapper around the Yggdrasil Decision Forest C++ libraries.

What is TensorFlow Keras?

Keras is the official high-level API of TensorFlow 2.0. TensorFlow has incorporated Keras as tf.keras. It provides several model building APIs such as Sequential, Functional, and Sub-classing.


1 Answers

tensorflow.contrib module has been dropped as of tensor_flow v2.0.0 see issue #93

Unfortunately it looks as though there is still work to be done in migrating some of the modules under contrib into other modules. tensor_forest module will be moved to core, but this has not been done yet

enter image description here

Full details here

like image 108
Arran Duff Avatar answered Oct 19 '22 18:10

Arran Duff