Y mnisttrainimages205 y

This preview shows page 5 - 6 out of 6 pages.

y <- rowMeans(mnist$train$images>50 & mnist$train$images<205) qplot(as.factor(mnist$train$labels), y, geom = "boxplot") The proportion of pixels can be calculated using mean(y) .
© All Rights Reserved Ask your questions or make your comments about Working with Matrices here! Remember, one of the best ways to reinforce your own learning is by explaining something to someone else, so we encourage you to answer each other's questions (without giving away the answers, of course). Some reminders: Search the discussion board before posting to see if someone else has asked the same thing before asking a new question Please be speci±c in the title and body of your post regarding which question you're asking about to facilitate answering your question. Posting snippets of code is okay, but posting full code solutions is not. If you do post snippets of code, please format it as code for readability. If you're not sure how to do this, there are instructions in a pinned post in the "general" discussion forum. Show all posts by recent activity Discussion: Working with Matrices Topic: Section 3: Linear Regression for Prediction, Smoothing, and Working with Matrices / 3.3: Working with Matrices Add a Post There are no posts in this topic yet. Hide Discussion

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture