the conditional statement
self.variance(c) > self.variance_threshold
in the pruning extraction method of ESNetwork class needs a continue inserting on the line after
self.pruning_extraction(coord, c, outgoing)
otherwise it will continue on with the variables d_left, d_right, d_top and d_bottom all assigned as None resulting in TypeError: Unorderable types: NoneType() < NoneType()
Thanks for noticing, this is totally correct - fixed it by moving the code below into the else statement, which is how it should look.
This is the pseudocode:
and it looks like that now.
the conditional statement self.variance(c) > self.variance_threshold in the pruning extraction method of ESNetwork class needs a continue inserting on the line after self.pruning_extraction(coord, c, outgoing) otherwise it will continue on with the variables d_left, d_right, d_top and d_bottom all assigned as None resulting in TypeError: Unorderable types: NoneType() < NoneType()