// File: 0asa[P]TTree-source/ExtraTrees.cpp
// Function: ExtraTrees::learn()
double ExtraTrees::learn() {
	clock_t clock_start = clock();
	for (int t = 0 ; t < nbtree ; ++t) {
		term[t] = new ClassicTree(db,nmin,k);
		term[t]->setLearnFonction(EXTRATREE); 
		term[t]->setLS(ls);
		term[t]->setAttCand(cand);
		term[t]->learn();
		fprintf(_treeinfo, "Tree %03d - Complexity : %03d - ",t+1,term[t]->getComplexity());
		// 09-07-2012
		fprintf(_treeinfo, "MaxDepth : %03d - ",term[t]->getMaxDepth());
		Result result(db);
		result = test(t+1,ts);
		fprintf(_treeinfo,"Error rate : %f %%\n", result.getErrorRate());
		result.printProb(_treeinfo);
	}
	return (clock() - clock_start);	
}

// Assembly:
subq $0x118, %rsp            # imm = 0x118
movq %rdi, 0x110(%rsp)
movq 0x110(%rsp), %rax
movq %rax, 0x38(%rsp)
callq 0x3180
movq %rax, 0x108(%rsp)
movl $0x0, 0x104(%rsp)
movq 0x38(%rsp), %rcx
movl 0x104(%rsp), %eax
cmpl 0x58(%rcx), %eax
jae 0x1be8a
movl $0x170, %edi            # imm = 0x170
callq 0x3270
movq %rax, %rdi
movq 0x38(%rsp), %rax
movq %rdi, %rcx
movq %rcx, 0x30(%rsp)
movq 0x8(%rax), %rsi
movl 0x10(%rax), %edx
movl 0x5c(%rax), %ecx
callq 0x132d0
jmp 0x1bc44
movq 0x38(%rsp), %rax
movq 0x30(%rsp), %rsi
movq 0x60(%rax), %rcx
movslq 0x104(%rsp), %rdx
movq %rsi, (%rcx,%rdx,8)
movq 0x60(%rax), %rax
movslq 0x104(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movl $0x3, %esi
callq 0x167d0
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x60(%rax), %rax
movslq 0x104(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x204d0
movq 0x38(%rsp), %rax
movq 0x30(%rax), %rsi
movq 0x60(%rax), %rax
movslq 0x104(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x20510
movq 0x38(%rsp), %rax
movq 0x60(%rax), %rax
movslq 0x104(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq (%rdi), %rax
movq (%rax), %rax
callq *%rax
movq 0x38(%rsp), %rcx
movq 0x60(%rcx), %rax
movq 0x68(%rcx), %rcx
movq %rcx, 0x10(%rsp)
movslq 0x104(%rsp), %rcx
movl %ecx, %edx
incl %edx
movl %edx, 0x1c(%rsp)
movq (%rax,%rcx,8), %rdi
callq 0x20530
movq 0x10(%rsp), %rdi
movl 0x1c(%rsp), %edx
movl %eax, %ecx
leaq 0x14bed(%rip), %rsi     # 0x308fb
xorl %eax, %eax
movb %al, 0x2f(%rsp)
callq 0x3360
movq 0x38(%rsp), %rcx
movq 0x60(%rcx), %rax
movq 0x68(%rcx), %rcx
movq %rcx, 0x20(%rsp)
movslq 0x104(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x1c570
movq 0x20(%rsp), %rdi
movl %eax, %edx
movb 0x2f(%rsp), %al
leaq 0x14bce(%rip), %rsi     # 0x3091c
callq 0x3360
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rsi
leaq 0x98(%rsp), %rdi
callq 0x24ac0
movq 0x38(%rsp), %rsi
movl 0x104(%rsp), %edx
incl %edx
movq 0x28(%rsi), %rcx
leaq 0x40(%rsp), %rdi
callq 0x1bec0
jmp 0x1bd87
leaq 0x98(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x6fc0
jmp 0x1bd9b
leaq 0x40(%rsp), %rdi
callq 0x24b00
movq 0x38(%rsp), %rax
movq 0x68(%rax), %rax
movq %rax, (%rsp)
leaq 0x98(%rsp), %rdi
movsd 0x1424e(%rip), %xmm0    # 0x30010
callq 0x24ba0
movsd %xmm0, 0x8(%rsp)
jmp 0x1bdcf
movsd 0x8(%rsp), %xmm0
movq (%rsp), %rdi
leaq 0x14650(%rip), %rsi     # 0x30430
movb $0x1, %al
callq 0x3360
movq 0x38(%rsp), %rax
movq 0x68(%rax), %rsi
leaq 0x98(%rsp), %rdi
callq 0x24b20
jmp 0x1bdff
leaq 0x98(%rsp), %rdi
callq 0x24b00
movl 0x104(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x104(%rsp)
jmp 0x1bc04
movq 0x30(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
movl $0x170, %esi            # imm = 0x170
callq 0x3280
jmp 0x1bea4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
jmp 0x1be7b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xf8(%rsp)
movl %eax, 0xf4(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x24b00
leaq 0x98(%rsp), %rdi
callq 0x24b00
jmp 0x1bea4
callq 0x3180
subq 0x108(%rsp), %rax
cvtsi2sd %rax, %xmm0
addq $0x118, %rsp            # imm = 0x118
retq
movq 0xf8(%rsp), %rdi
callq 0x33e0
nopw %cs:(%rax,%rax)