Git Product home page Git Product logo

mnistr's Introduction

mnistR

A simple R package to download, collate, and load the classic MNIST dataset in R.

Installation

You can install mnistR from GitHub with:

# install.packages("devtools")
devtools::install_github("itsrainingdata/mnistR")

Usage

Access the data in one line, as quickly as possible:

MNIST <- mnistR::autoloadMNIST()

By default, the data will be saved to the current working directory. This directory can be manually specified via the dest argument (see Overview).

Overview

Download the data to your local drive at /path/to:

mnistR::downloadMNIST(dest = "/path/to/")

Load the data (after downloading):

mnistR::loadMNIST(dest = "/path/to/")

The result is a list containing two data frames (train and test). The labels are stored in the last column, train$y and test$y.

The autoloadMNIST method is simply a wrapper to combine these steps into one method. For even finer grained access, see the methods load_mnist_train, load_mnist_test, and the corresponding download and autoload methods.

Credit

This package is a port of code written by @brendano and @daviddalpiaz. The original code can be found here:

mnistr's People

Contributors

daviddalpiaz avatar itsrainingdata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

daviddalpiaz

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.