Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

New answers tagged


This is clean code for a hobbyist. ML code in particular can end up being a procedural mess, just carrying out one imported function after another, but this is quite good. It's great that you have docstrings with explanations of the arguments, but the explanations of the functions/methods themselves are a little sparse. The odd comment would help a lot too. ...


I spent sometime with the code you've currently posted @wizofe, I'm not sure if it'll ever be the same again... Side note; I heard it rumored that the character limits are just a bit more relaxed than on other sub-stacks... or in other-words this may get a bit verbose, or in other-other-words it could be another one of those posts so a snack and drink is ...


I'm concerned with this bit of code, the inner 3 loops: int registers[NUMBER_OF_REGISTERS] = {0}; for (int i = 0; i < NUMBER_OF_REGISTERS-1; i++) { for (int y = 0; y < row + STEP; y++) { for (int x = 0; x < col + STEP; x++) { registers[i] = images[m].at<uchar>(y,x); } } } The inner loop writes ...

Top 50 recent answers are included