tagenalgo
                                
                                
                                
                                    tagenalgo copied to clipboard
                            
                            
                            
                        tuple index out of range
i got that error, please help

i got that error, please help
Hi, Since I don't have enough information, could you pls paste complete codes you used in the following form? I will do my best to help you out.
# Example
# pls paste your codes.
                                    
                                    
                                    
                                
I think the problem is that _fitness_cal(self, params, sig_total=0.03) only returns fitness_val_cumret, fitness_val_winrate but _fitness_evaluation(self, pop) is attempting to obtain self._fitness_cal(ind)[2] when it doesn't exist.
I think the problem is that _fitness_cal(self, params, sig_total=0.03) only returns fitness_val_cumret, fitness_val_winrate but _fitness_evaluation(self, pop) is attempting to obtain self._fitness_cal(ind)[2] when it doesn't exist.
And how would this best be fixed?
(I am having the same issue)
Traceback (most recent call last):
File "/home/-/OptRSI.py", line 26, in