Showing 3 of 5 total issues
Function Read
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func Read(rootDir string) (*MNIST, error) {
trainRawImages, err := idx.ReadFile(
filepath.Join(rootDir, "train-images-idx3-ubyte.gz"))
if err != nil {
return nil, err
Function Read
has 7 return statements (exceeds 4 allowed). Open
Open
func Read(rdr io.Reader) (*IDX, error) {
// Read in the "magic number" which provides us with information about
// the format of the data in this IDX file.
magic := make([]byte, 4)
n, err := rdr.Read(magic)
Function Read
has 5 return statements (exceeds 4 allowed). Open
Open
func Read(rootDir string) (*MNIST, error) {
trainRawImages, err := idx.ReadFile(
filepath.Join(rootDir, "train-images-idx3-ubyte.gz"))
if err != nil {
return nil, err