Add training code for SVARclassifier.