Skip to content

Elzair/IDXParser.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IDXParser

Build Status

IDXParser parses an IDX-formatted file (such as the MNIST database of handwritten digits and returns an array of values in the given datatype.

API

Currently, IDXParser has only one function:

  • parseIDX(file_name) Parses given file

IDX File Format

Byte # Description
0 0x00
1 0x00
2 Array Datatype: 0x08 -> UInt8, 0x09 -> Int8, 0x0B -> Int16, 0x0C -> Int32, 0x0D -> Float32, 0x0E -> Float64
3 # Dimensions: 0x01 for vector, 0x02 for 2D matrix, etc.
4-7 Length of first dimension (32-bit Little Endian)
... ...
4+4n - 4+4n+1 Start of Data

About

Parser for IDX files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages