![Optimizer gives me Optimizer gives me](https://lh6.googleusercontent.com/--4W_clRk_Bk/AAAAAAAAAAI/AAAAAAAANE4/AMZuucnAwTBpcU42QySLMfF7BgHgbYB86Q/photo.jpg)
Optimizer gives me " only size-1 arrays can be converted to Python scalars" error | Backtrader Community
![TypeError: only integer scalar arrays can be converted to a scalar index while in KFold - Stack Overflow TypeError: only integer scalar arrays can be converted to a scalar index while in KFold - Stack Overflow](https://i.stack.imgur.com/G0VVv.png)
TypeError: only integer scalar arrays can be converted to a scalar index while in KFold - Stack Overflow
![Como debería solucionarlo? Only size-1 arrays can be converted to Python scalars - Stack Overflow en español Como debería solucionarlo? Only size-1 arrays can be converted to Python scalars - Stack Overflow en español](https://i.stack.imgur.com/6dMcG.png)
Como debería solucionarlo? Only size-1 arrays can be converted to Python scalars - Stack Overflow en español
![Trying to train a CNN Model and getting the following: only length-1 arrays can be converted to Python scalars : r/learnprogramming Trying to train a CNN Model and getting the following: only length-1 arrays can be converted to Python scalars : r/learnprogramming](https://external-preview.redd.it/Uv6ySgJHVMVq-YJXlXcPrYlWq-qPrbznj2Fg2FrKcus.jpg?auto=webp&s=401fafd70023ab8ca418c6a7dddbdb80324782a8)