moved transition classifier from ilastik to here
serialization