xcrepo

package
v0.0.0-...-eb36bdb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2020 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Overview

I/O support for The Extreme Classification Repository Multi-label Datasets sparse format.

http://manikvarma.org/downloads/XC/XMLRepository.html

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMalformedHeader         = errors.New("xcrepo.Scanner: malformed or missing header")
	ErrNotEnoughFields         = errors.New("xcrepo.Scanner: not enough fields")
	ErrMalformedLabels         = errors.New("xcrepo.Scanner: malformed labels")
	ErrMissingFeatures         = errors.New("xcrepo.Scanner: missing features")
	ErrMalformedFeatures       = errors.New("xcrepo.Scanner: malformed features")
	ErrLabelOutOfBounds        = errors.New("xcrepo.Scanner: label value out of bounds")
	ErrFeatureIndexOutOfBounds = errors.New("xcrepo.Scanner: feature index out of bounds")
)

Errors returned by Scanner.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(r io.Reader) *Scanner

func (*Scanner) Err

func (s *Scanner) Err() error

Err returns the first non-EOF error that was encountered by the Scanner.

func (*Scanner) Example

func (s *Scanner) Example() dataset.Example

func (*Scanner) LineNumber

func (s *Scanner) LineNumber() int

func (*Scanner) NumFeatures

func (s *Scanner) NumFeatures() int

func (*Scanner) NumLabels

func (s *Scanner) NumLabels() int

func (*Scanner) Scan

func (s *Scanner) Scan() bool

func (*Scanner) TotalPoints

func (s *Scanner) TotalPoints() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL