Teacher regression cost working with face dataset