Understanding the Sparkdl interface