Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mnist dataset use Multi-class SVM to predict Chapter 4 #161

Open
anbo1024 opened this issue May 20, 2019 · 0 comments
Open

Mnist dataset use Multi-class SVM to predict Chapter 4 #161

anbo1024 opened this issue May 20, 2019 · 0 comments

Comments

@anbo1024
Copy link

anbo1024 commented May 20, 2019

Hi,
I want to apply 04_Support_Vector_Machines to Mnist dataset.
I found that I couldn't use the following function for testing (because it contained lable):

prediction_output = tf.matmul(tf.multiply(y_target, b), pred_kernel)
prediction = tf.argmax(prediction_output - tf.expand_dims(tf.reduce_mean(prediction_output, 1), 1)

Then,you gave a way to predict new data:

test_predictions] = sess.run(prediction, feed_dict={x_data: x_vals,
y_target: np.transpose([y_vals]),
prediction_grid: test_points})

But,I found that x_vals in the code represented the entire data set.It is impossible to load all data sets on larger data sets.So I want to know how to extend it to mini-batch to predict new data.
I'm in a hurry. I hope to get back to you. Thank you very much.

@anbo1024 anbo1024 changed the title Chapter 4 Multi-class SVM to predict Mnist dataset Mnist dataset use Multi-class SVM to predict Chapter 4 May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant