Closed PixelChen24 closed 4 months ago
What's more, you should consider the init_increment
part, which may not be equal to increment
.
Actually, we do not care about group accuracy in CIL. If group accuracy matters in your application, you can modify it according to your description.
Hello, I've found some bugs about your code computing the accuracy after each task. After training on the new task, the learner is expected to evaluate on all seen data, and in your code it is done by calling
self.eval_task()
: inbase.py
line 84:When taking a close look at the
_evaluate()
function:where the function
accuracy()
is defined as:Here
increment
is used to pick indexs of those old tasks, but in your code you don't pass the param "increment" to theaccuracy()
function, which means even I customize the increment in config file, the code fails to evaluate on my pattern. I think you should passself.args["increment"]
when calling theaccuracy()
function.