Skip to content

Instantly share code, notes, and snippets.

@benoitdescamps
Created October 28, 2018 11:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benoitdescamps/325fcfafe88f1901f945300075f5e86e to your computer and use it in GitHub Desktop.
Save benoitdescamps/325fcfafe88f1901f945300075f5e86e to your computer and use it in GitHub Desktop.
if mode == "train":
cluster.train(dataRDD, epochs)
else:
labelRDD = cluster.inference(dataRDD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment