Skip to content

Instantly share code, notes, and snippets.

@tarlanahad
Last active January 9, 2020 14:03
Show Gist options
  • Save tarlanahad/205bb8b69a2c040501c9d4d0e3229fd4 to your computer and use it in GitHub Desktop.
Save tarlanahad/205bb8b69a2c040501c9d4d0e3229fd4 to your computer and use it in GitHub Desktop.
data = np.load('files/mnist_data.npy').astype(float)
train_y = data[0:5000, 0]
train_x = data[0:5000, 1:]
test_y = data[0:1000, 0]
test_x = data[0:1000, 1:]
RBF_CLASSIFIER = RBF(train_x, train_y, test_x, test_y, num_of_classes=10,
k=500, std_from_clusters=False)
RBF_CLASSIFIER.fit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment