# Unsupervise training in tmva

**URL:** <https://root-forum.cern.ch/t/unsupervise-training-in-tmva/25609>\
**Category:** TMVA\
**Created:** [July 19, 2017, 9:22am UTC](https://root-forum.cern.ch/t/unsupervise-training-in-tmva/25609 "2017-07-19T09:22:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danny\_Lee](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/45deac/32.png) [@Danny\_Lee](https://root-forum.cern.ch/u/Danny_Lee)\
**Post date:** [July 19, 2017, 9:22am UTC](https://root-forum.cern.ch/t/unsupervise-training-in-tmva/25609/1 "2017-07-19T09:22:49Z")

</div>

Is there a method in tmva for unsupervised learning? as in training data that does not have labels.

or are there any progress in this area that can be shared at the moment? I found some slide through googling that this features is still in development.

Kind regards,  
Danny

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [July 19, 2017, 10:52am UTC](https://root-forum.cern.ch/t/unsupervise-training-in-tmva/25609/2 "2017-07-19T10:52:13Z")

</div>

Hi! Yes there is an auto-encoder currently under development but it is not release ready yet 🙂

I could recommend you to use pyROOT to export your root data to python and e.g. numpy arrays. From there it is fairly straight forward to use keras, sklearn or any other ML library.

---

<div class="post-metadata">

**Author:** ![Danny\_Lee](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/45deac/32.png) [@Danny\_Lee](https://root-forum.cern.ch/u/Danny_Lee)\
**Post date:** [July 19, 2017, 1:24pm UTC](https://root-forum.cern.ch/t/unsupervise-training-in-tmva/25609/3 "2017-07-19T13:24:32Z")

</div>

Thanks for the reply!!😃 I have thought about doing it that way.

I am fairly new to ML. So, I am learning more about machine learning tools so I have been playing with pytorch, keras, predominantly ML python libraries. Just wondered if tmva has it as my experiment data are in root format. Mainly worried about the speed of handling the data between different interfaces.

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [July 19, 2017, 1:45pm UTC](https://root-forum.cern.ch/t/unsupervise-training-in-tmva/25609/4 "2017-07-19T13:45:27Z")

</div>

No worries!

If speed is an issue for prototyping and experimentation you could always convert the data into numpy format and save it as such. I think [pandas](http://pandas.pydata.org) has good interfaces for this. This would become cumbersome if you need to rerun the conversion too many times, but the approach has saved many hours from my own trainings 🙂
