Documentation ¶
Index ¶
- type Pipeline
- func (p *Pipeline) Data() proto.Message
- func (p *Pipeline) Error() error
- func (p *Pipeline) Evaluate(in interface{}, fn func(in interface{}, data proto.Message) (err error)) *Pipeline
- func (p *Pipeline) Gather(sourceUrl, targetFile string) *Pipeline
- func (p *Pipeline) Load(protoFilename string, fn func(raw []byte) (out proto.Message, err error)) *Pipeline
- func (p *Pipeline) Organize(csvFilename string, fn func(records [][]string) (out proto.Message, err error)) *Pipeline
- func (p *Pipeline) Save(protoFilename string) *Pipeline
- func (p *Pipeline) Transform(fn func(in proto.Message) (out proto.Message, err error)) *Pipeline
- func (p *Pipeline) Validate(in interface{}, fn func(in interface{}, data proto.Message) (err error)) *Pipeline
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline provides an easy-to-use interface to work with data structures in context of data science and machine learning.
func (*Pipeline) Evaluate ¶
func (p *Pipeline) Evaluate(in interface{}, fn func(in interface{}, data proto.Message) (err error)) *Pipeline
Evaluate tries to guess a specific output by using the data and a given input.
func (*Pipeline) Gather ¶
Gather retrieves raw pipeline from an external resource and saves that into a single file.
func (*Pipeline) Load ¶
func (p *Pipeline) Load(protoFilename string, fn func(raw []byte) (out proto.Message, err error)) *Pipeline
Load reads a protobuf file and pass the raw bytes into a given function fn.
func (*Pipeline) Organize ¶
func (p *Pipeline) Organize(csvFilename string, fn func(records [][]string) (out proto.Message, err error)) *Pipeline
Organize reads a CSV file and provides serialization to a protobuf format via a given function fn.
Click to show internal directories.
Click to hide internal directories.