Skip to content

Instantly share code, notes, and snippets.

@naiborhujosua
Created October 26, 2020 15:45
Show Gist options
  • Save naiborhujosua/6dfcd09f79fc2eb9169b062ef5e5a311 to your computer and use it in GitHub Desktop.
Save naiborhujosua/6dfcd09f79fc2eb9169b062ef5e5a311 to your computer and use it in GitHub Desktop.
# Import numpy
import numpy
# Find the index of the smallest ROEM
i = numpy.argmin(ROEMS)
print("Index of smallest ROEM:", i)
# Find ith element of ROEMS
print("Smallest ROEM: ", ROEMS[i])
@naiborhujosua
Copy link
Author

For purposes of walking you through the steps, the test predictions for 192 models have already been generated, and their ROEM has been calculated. They are found in the ROEMS list provided. Because a list isn't unique to Pyspark, and because numpy works really well with lists, we're going to use numpy here. Follow the instructions below to find the best ROEM and the model that provided it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment