# No type named 'DataLoader' in namespace 'TMVA'

**URL:** <https://root-forum.cern.ch/t/no-type-named-dataloader-in-namespace-tmva/41370>\
**Category:** ROOT\
**Tags:** tmva\
**Created:** [September 10, 2020, 6:20am UTC](https://root-forum.cern.ch/t/no-type-named-dataloader-in-namespace-tmva/41370 "2020-09-10T06:20:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rainyday](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/90ced4/32.png) [@rainyday](https://root-forum.cern.ch/u/rainyday)\
**Post date:** [September 10, 2020, 6:20am UTC](https://root-forum.cern.ch/t/no-type-named-dataloader-in-namespace-tmva/41370/1 "2020-09-10T06:20:35Z")

</div>

Hi,

I’m trying to execute tmva tutorial code, but at the

`TMVA::DataLoader *dataloader=new TMVA::DataLoader("dataset");`

this code line, error happens.

`no type named 'DataLoader' in namespace 'TMVA'`

for using DataLoader, I wrote this line

```auto
 TMVA::Tools::Instance();

```

I used `TMVA/DataLoader.h` instead, but error again.

Also, I looked at this

> [@Error: cannot open file "TMVA/DataLoader.h"](https://root-forum.cern.ch/t/error-cannot-open-file-tmva-dataloader-h/36421):
>
> Hey! I’m trying to implement BDT for separating signal and background events. I’ve modified the TMVAClassification.C code according to my problem. But when I’m compiling it in root in lxplus6 cluster its showing me: Error: cannot open file “TMVA/DataLoader.h” TMVAClassification.C:59: \*\*\* Interpreter error recovered \*\*\* how can I fix this problem?

but nothing wrong with my root. I’m using ROOT6.

* * *

_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_

_ROOT Version:_ Not Provided  
_Platform:_ Not Provided  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [September 24, 2020, 6:20am UTC](https://root-forum.cern.ch/t/no-type-named-dataloader-in-namespace-tmva/41370/2 "2020-09-24T06:20:53Z")

</div>

Closed on September 24, 2020, 6:20am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
