Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
192 B
3
Indexable
Never
        val model = sc.broadcast(sc.textFile(args.model() + "/part-00000").map(line => {
			val words = line.split(",")
			(words(0).tail.toInt, words(1).init.toDouble)
		}).collectAsMap())
Leave a Comment