Created
October 26, 2020 15:45
-
-
Save naiborhujosua/6dfcd09f79fc2eb9169b062ef5e5a311 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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