// File: /workspace/github_cpp_makefile_star2_O1/0asa[P]TTree-source/RandomTTForest.cpp
// Function: RandomTTForest::learn()
double RandomTTForest::learn() {
	clock_t clock_start = clock();
	for (int t = 0 ; t < nbtree ; ++t) {
		fprintf(stderr, "# TTree %3d ",t+1);
		term[t] = new ClassicNodeTree((BlockDB*)db,k, nmin);
		term[t]->setKint(kint);
		//term[t]->setMaxComplexity(2);
		term[t]->setGroupCand(groupcand);
		term[t]->setInternalComp(internalComp);
		term[t]->setTreeType(treeType);
		std::vector<unsigned int> bsls = Sampler::bootstrap((*ls));
		term[t]->setLS(&bsls);
		term[t]->setAttCand(cand);
		term[t]->learn();
		fprintf(_treeinfo, "Tree %03d - Complexity : %03d - ",t+1,term[t]->getComplexity());
		// 27-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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %r14
callq 0x3130
movq %rax, (%rsp)
cmpl $0x0, 0x98(%r14)
je 0x122ba
leaq 0x80(%r14), %rax
movq %rax, 0x8(%rsp)
leaq 0x80(%rsp), %rbp
leaq 0x28(%rsp), %r15
xorl %ebx, %ebx
movq 0xdf13(%rip), %rax      # 0x1ffd8
movq (%rax), %rdi
leaq 0x1(%rbx), %r13
leaq 0x4762(%rip), %rsi      # 0x16835
movl %r13d, %edx
xorl %eax, %eax
callq 0x3290
movl $0xa0, %edi
callq 0x3200
movq %rax, %r12
movq 0x8(%r14), %rsi
movl 0xa8(%r14), %edx
movl 0x10(%r14), %ecx
movq %rax, %rdi
callq 0x8128
movq 0xa0(%r14), %rax
movq %r12, (%rax,%rbx,8)
movq 0xa0(%r14), %rax
movq (%rax,%rbx,8), %rdi
movl 0x5c(%r14), %eax
movl %eax, 0x5c(%rdi)
movq 0x8(%rsp), %rsi
callq 0xf490
movq 0xa0(%r14), %rax
movq (%rax,%rbx,8), %rax
movl 0x58(%r14), %ecx
movl %ecx, 0x58(%rax)
movl 0x60(%r14), %ecx
movl %ecx, 0x60(%rax)
movq 0x20(%r14), %rsi
leaq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x11e80
movq 0xa0(%r14), %rax
movq (%rax,%rbx,8), %rdi
movq %r12, %rsi
callq 0x105a8
movq 0x30(%r14), %rsi
movq 0xa0(%r14), %rax
movq (%rax,%rbx,8), %rdi
callq 0x105b4
movq 0xa0(%r14), %rax
movq (%rax,%rbx,8), %rdi
movq (%rdi), %rax
callq *(%rax)
movq 0xa0(%r14), %rax
movq 0xb0(%r14), %r12
movq (%rax,%rbx,8), %rdi
callq 0x105ba
leal 0x1(%rbx), %edx
movq %r12, %rdi
leaq 0x46b7(%rip), %rsi      # 0x16864
movl %eax, %ecx
xorl %eax, %eax
callq 0x3290
movq 0xa0(%r14), %rax
movq 0xb0(%r14), %rdi
movq (%rax,%rbx,8), %rax
movl 0x9c(%rax), %edx
leaq 0x46b0(%rip), %rsi      # 0x16885
xorl %eax, %eax
callq 0x3290
movq 0x8(%r14), %rsi
movq %rbp, %rdi
callq 0x12870
movq 0x28(%r14), %rcx
incl %ebx
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x12332
movq 0x28(%rsp), %rax
movq %rax, 0x80(%rsp)
leaq 0x88(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x7392
leaq 0xa0(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x7472
movl 0x60(%rsp), %eax
movl %eax, 0xb8(%rsp)
leaq 0xc0(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x7550
movq %r15, %rdi
callq 0x1288e
movq 0xb0(%r14), %rbx
movq %rbp, %rdi
movsd 0x3dad(%rip), %xmm0     # 0x16010
callq 0x128b0
movq %rbx, %rdi
leaq 0x4136(%rip), %rsi      # 0x163a8
movb $0x1, %al
callq 0x3290
movq 0xb0(%r14), %rsi
movq %rbp, %rdi
callq 0x12898
movq %rbp, %rdi
callq 0x1288e
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x122a7
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3210
movl 0x98(%r14), %eax
movq %r13, %rbx
cmpq %rax, %r13
jb 0x120be
callq 0x3130
subq (%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x122ee
jmp 0x1230f
movq %rax, %rbx
movl $0xa0, %esi
movq %r12, %rdi
jmp 0x12324
movq %rax, %rbx
jmp 0x12300
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x1288e
leaq 0x80(%rsp), %rdi
callq 0x1288e
jmp 0x12312
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x12329
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3210
movq %rbx, %rdi
callq 0x3320
nop