Giter Club home page Giter Club logo

learningml's Introduction

LearningML

This is my attempt to (finally!) do some hands-on learning about machine learning. I've learned a bit about the basic theory of ML but I've never tried it myself.

This repo will be mostly copy-pasted code from the TensorFlow Keras tutorials.

Notes

To force myself to do some thinking, I'll take notes on what the code is doing. Hopefully this will prevent me from simply blindly copy-pasting.

Theoretically as I continue going through the tutorials I should be able to figure out some of my questions and remove them.

Things I think I understand

  • The clothing classifier is a supervised learning model because we're giving it datasets that are already labeled for training.
  • This classifier gives a probability for each possible label, and we pick the highest probability as its prediction.
  • A machine learning model is created by connecting several simple layers. Some layers perform simple data manipulation (like Flatten) and others are trained (like Dense, whatever that means).
  • "Logits" are (is?) a vector represent the raw predictions generated by a classifier, which are usually then normalized so that humans can understand them.
  • Sequential takes in multiple layers and executes them in order.
  • The classifier can be very confident and still very wrong.
  • loss is the loss on the training dataset; val_loss is the loss on the cross-validation dataset.

Things I don't understand

  • Why do we need to change the image pixel values to be floats from 0 to 1?
    • I tried commenting out those lines and the model became less accurate.
  • Does the Dense layer imply the existence of a Sparse layer? If so, why are we using Dense and not Sparse?
  • What is an adam optimizer?
  • What does relu mean?
  • What the heck is a SparseCategorialCrossentropy?
    • This sounds like a randomly generated name that Replit would give you.
  • Why does do different runs yield such different predictions?
    • The 13th image (which is a sneaker but sometimes gets mixed up with a sandal) got a 98% chance of being a sandal on the run after it was classified as a sneaker with around 60% confidence.

learningml's People

Contributors

qpwoeirut avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.