// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/mlp.c
// Function: prepare_Mlpparameters
Mlpparameters prepare_Mlpparameters(Instanceptr data, Instanceptr validation, int weightdecay, double decayalpha, int layernum, int* hiddennodes, int windowsize, double errorthreshold, double errordropratio, int maxhidden, SUPERVISED_ALGORITHM_TYPE algorithm_type)
{
 /*!Last Changed 16.04.2007 added dnc parameter preparation*/
	/*!Last Changed 25.06.2005*/
	int i;
	Mlpparameters mlpparams;
	mlpparams.alpha = get_parameter_f("alpha");
 switch (algorithm_type)
  {
   case CLASSIFICATION:mlpparams.classnum = current_dataset->classno;
                       break;
   case    AUTOENCODER:mlpparams.classnum = current_dataset->multifeaturecount - 1;
                       break;
   case     REGRESSION:mlpparams.classnum = 1;
                       break;
               default:mlpparams.classnum = 1;
                       break;
  }
	mlpparams.dimnum = current_dataset->multifeaturecount - 1;
	mlpparams.epochs = get_parameter_i("perceptronrun");
	mlpparams.eta = get_parameter_f("learning_rate");
	mlpparams.etadecrease = get_parameter_f("etadecrease");
	mlpparams.weightdecay = weightdecay;
	mlpparams.decayalpha = decayalpha;
 mlpparams.windowsize = windowsize;
 mlpparams.errorthreshold = errorthreshold;
 mlpparams.errordropratio = errordropratio;
	mlpparams.layernum = layernum;
	mlpparams.maxhidden = maxhidden;
 if (layernum == 1 && hiddennodes == NULL)
   mlpparams.hidden[0] = 1;
 else
	  for (i = 0; i < layernum; i++)
    	mlpparams.hidden[i] = hiddennodes[i];
	mlpparams.initialeta = get_parameter_f("learning_rate");
	mlpparams.inputnum = data_size(data);
	mlpparams.trnum = mlpparams.inputnum;
	mlpparams.cvnum = data_size(validation);
	mlpparams.randrange = 0.01;
	return mlpparams;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x50(%rbp)
movq %rdi, -0x58(%rbp)
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rsi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movsd %xmm0, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movq %r9, -0x30(%rbp)
movsd %xmm1, -0x38(%rbp)
movsd %xmm2, -0x40(%rbp)
leaq 0x807a3(%rip), %rdi     # 0xe2745
callq 0x79040
movq -0x50(%rbp), %rdi
movsd %xmm0, 0x30(%rdi)
movl 0x20(%rbp), %eax
movl %eax, -0x48(%rbp)
testl %eax, %eax
je 0x61fd0
jmp 0x61fbc
movl -0x48(%rbp), %eax
subl $0x1, %eax
je 0x62000
jmp 0x61fc6
movl -0x48(%rbp), %eax
subl $0x2, %eax
je 0x61fe5
jmp 0x6200c
movq -0x50(%rbp), %rax
leaq 0xa3865(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
movl 0x10(%rcx), %ecx
movl %ecx, (%rax)
jmp 0x62016
movq -0x50(%rbp), %rax
leaq 0xa3850(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
movl 0x1c0(%rcx), %ecx
subl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x62016
movq -0x50(%rbp), %rax
movl $0x1, (%rax)
jmp 0x62016
movq -0x50(%rbp), %rax
movl $0x1, (%rax)
movq -0x50(%rbp), %rax
leaq 0xa381f(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
movl 0x1c0(%rcx), %ecx
subl $0x1, %ecx
movl %ecx, 0x4(%rax)
leaq 0x805e6(%rip), %rdi     # 0xe261d
callq 0x78f10
movl %eax, %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x14(%rax)
leaq 0x805c3(%rip), %rdi     # 0xe260f
callq 0x79040
movq -0x50(%rbp), %rax
movsd %xmm0, 0x38(%rax)
leaq 0x805a2(%rip), %rdi     # 0xe2603
callq 0x79040
movq -0x50(%rbp), %rax
movsd %xmm0, 0x40(%rax)
movl -0x14(%rbp), %ecx
movl %ecx, 0x58(%rax)
movsd -0x20(%rbp), %xmm0
movsd %xmm0, 0x60(%rax)
movl 0x10(%rbp), %ecx
movl %ecx, 0x68(%rax)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x70(%rax)
movsd -0x40(%rbp), %xmm0
movsd %xmm0, 0x78(%rax)
movl -0x24(%rbp), %ecx
movl %ecx, 0x54(%rax)
movl 0x18(%rbp), %ecx
movl %ecx, 0x84(%rax)
cmpl $0x1, -0x24(%rbp)
jne 0x620c2
cmpq $0x0, -0x30(%rbp)
jne 0x620c2
movq -0x50(%rbp), %rax
movl $0x1, 0x48(%rax)
jmp 0x620f5
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x620f3
movq -0x50(%rbp), %rax
movq -0x30(%rbp), %rcx
movslq -0x44(%rbp), %rdx
movl (%rcx,%rdx,4), %edx
movslq -0x44(%rbp), %rcx
movl %edx, 0x48(%rax,%rcx,4)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x620c9
jmp 0x620f5
leaq 0x80513(%rip), %rdi     # 0xe260f
callq 0x79040
movq -0x50(%rbp), %rax
movsd %xmm0, 0x20(%rax)
movq -0x8(%rbp), %rdi
callq 0x449f0
movl %eax, %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x8(%rax)
movl 0x8(%rax), %ecx
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rdi
callq 0x449f0
movq -0x50(%rbp), %rcx
movl %eax, %edx
movq -0x58(%rbp), %rax
movl %edx, 0xc(%rcx)
movsd 0x7fee0(%rip), %xmm0    # 0xe2020
movsd %xmm0, 0x28(%rcx)
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax,%rax)