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'
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.
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!
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.
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.
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
Full details here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With