I was going through the tutorial titled "Coding a simple User Defined Problem" and ran into one error.
The issue seems to be that the jit decorator cannot be applied to classes for the time being.
The fix is simple and is present in the subsequent iteration of the problem (jit_rosenbrock2): applying the jit decorator to a static method (_fitness) that is then called by the class method (fitness).
I tested this by creating the docs myself. Unfortunately, the information for this is a bit lacking and required some tweaking. Perhaps this is something that can be improved.
I was going through the tutorial titled "Coding a simple User Defined Problem" and ran into one error.
The issue seems to be that the jit decorator cannot be applied to classes for the time being.
The fix is simple and is present in the subsequent iteration of the problem (jit_rosenbrock2): applying the jit decorator to a static method (_fitness) that is then called by the class method (fitness).
I tested this by creating the docs myself. Unfortunately, the information for this is a bit lacking and required some tweaking. Perhaps this is something that can be improved.