# Convert a DecisionTree model into a TensorFlow model

**URL:** <https://discourse.julialang.org/t/convert-a-decisiontree-model-into-a-tensorflow-model/20783>\
**Category:** General Usage\
**Created:** [February 14, 2019, 9:26am UTC](https://discourse.julialang.org/t/convert-a-decisiontree-model-into-a-tensorflow-model/20783 "2019-02-14T09:26:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kimran](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kimran/32/7782_2.png) [@kimran](https://discourse.julialang.org/u/kimran)\
**Post date:** [February 14, 2019, 9:26am UTC](https://discourse.julialang.org/t/convert-a-decisiontree-model-into-a-tensorflow-model/20783/1 "2019-02-14T09:26:21Z")

</div>

Hello Everyone 🙂

Does anybody have an idea how one could convert a model coded in DecisionTree.jl into a TensorFlow model

The reason I would want that is e.g. because Firebase can host TensorFlow Lite models (converted from TensorFlow models) and it would be awesome to host a DecisionTree model with Firebase

I see that DecisionTree models can be stored as .jld2 (is this actually correct?). Can .jld2 model be converted to e.g. .GraphDef for TensorFlow?

Or any other ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![kimran](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kimran/32/7782_2.png) [@kimran](https://discourse.julialang.org/u/kimran)\
**Post date:** [February 14, 2019, 9:31am UTC](https://discourse.julialang.org/t/convert-a-decisiontree-model-into-a-tensorflow-model/20783/2 "2019-02-14T09:31:36Z")

</div>

Or is this a question for DecisionTree.jl?

---

<div class="post-metadata">

**Author:** ![kimran](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kimran/32/7782_2.png) [@kimran](https://discourse.julialang.org/u/kimran)\
**Post date:** [February 14, 2019, 9:51am UTC](https://discourse.julialang.org/t/convert-a-decisiontree-model-into-a-tensorflow-model/20783/3 "2019-02-14T09:51:07Z")

</div>

Added as an issue here: [https://github.com/bensadeghi/DecisionTree.jl/issues/93](https://github.com/bensadeghi/DecisionTree.jl/issues/93)
