Add label encoding to DBN.