Documentation ¶
Index ¶
- func ConvertDivisorToFloat32SliceTensor(columns interface{}) (*tf.Tensor, error)
- func ConvertImageToFloat32SliceTensor(columns interface{}) (*tf.Tensor, error)
- func ConvertInt32SliceToTensor(columns interface{}) (*tf.Tensor, error)
- func ConvertInterfaceFloat32SliceToTensor(columns interface{}) (*tf.Tensor, error)
- func ConvertInterfaceInt32SliceToTensor(columns interface{}) (*tf.Tensor, error)
- func ConvertInterfaceToFloat32SliceTensor(columns interface{}) (*tf.Tensor, error)
- func ConvertInterfaceToInt32SliceTensor(columns interface{}) (*tf.Tensor, error)
- func ConvertTokenizerToFloat32SliceTensor(columns interface{}) (*tf.Tensor, error)
- func ConvertTokenizerToInt32SliceTensor(columns interface{}) (*tf.Tensor, error)
- func ReadCsvFloat32s(columns []string) interface{}
- func ReadCsvInt32s(columns []string) interface{}
- func ReadJpg(columns []string) interface{}
- func ReadStringNop(columns []string) interface{}
- type Image
- type ImageColor
- type ImageConfig
- type ProcessedImage
- type Processor
- func NewBinaryTokenizingYProcessor(errorHandler *cberrors.ErrorsContainer, cacheDir string, lineOffset int) *Processor
- func NewBinaryYProcessor(errorHandler *cberrors.ErrorsContainer, cacheDir string, lineOffset int) *Processor
- func NewProcessor(errorHandler *cberrors.ErrorsContainer, name string, config ProcessorConfig) *Processor
- func NewSparseCategoricalTokenizingYProcessor(errorHandler *cberrors.ErrorsContainer, cacheDir string, lineOffset int) *Processor
- func NewSparseCategoricalYProcessor(errorHandler *cberrors.ErrorsContainer, cacheDir string, lineOffset int) *Processor
- func (p *Processor) FinishFit() error
- func (p *Processor) FitInterface(column interface{}) error
- func (p *Processor) FitString(column []string) error
- func (p *Processor) Load() error
- func (p *Processor) ProcessInterface(columnRows interface{}) (*tf.Tensor, error)
- func (p *Processor) ProcessString(columnRows []string) (*tf.Tensor, error)
- func (p *Processor) Save(saveDir string) error
- func (p *Processor) SetLoadDir(dir string)
- func (p *Processor) Tokenizer() *Tokenizer
- type ProcessorConfig
- type RegressionDivisor
- type Tokenizer
- type TokenizerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertImageToFloat32SliceTensor ¶ added in v0.26.28
func ConvertInterfaceFloat32SliceToTensor ¶ added in v0.26.28
func ConvertInterfaceInt32SliceToTensor ¶ added in v0.26.28
func ConvertInterfaceToFloat32SliceTensor ¶ added in v0.26.28
func ConvertInterfaceToInt32SliceTensor ¶ added in v0.26.28
func ReadCsvFloat32s ¶
func ReadCsvFloat32s(columns []string) interface{}
func ReadCsvInt32s ¶
func ReadCsvInt32s(columns []string) interface{}
func ReadStringNop ¶
func ReadStringNop(columns []string) interface{}
Types ¶
type Image ¶ added in v0.26.28
type Image struct {
// contains filtered or unexported fields
}
func NewImage ¶ added in v0.26.28
func NewImage( errorHandler *cberrors.ErrorsContainer, configs ...ImageConfig, ) *Image
type ImageColor ¶ added in v0.26.28
type ImageColor string
var ( ImageColorGray ImageColor = "gray" ImageColorRGBA ImageColor = "rgba" ImageColorRGB ImageColor = "rgb" )
type ImageConfig ¶ added in v0.26.28
type ImageConfig struct { ColorMode ImageColor ResizeX int ResizeY int Interpolation resize.InterpolationFunction }
type ProcessedImage ¶ added in v0.26.28
type ProcessedImage struct { Color ImageColor Image image.Image }
type Processor ¶
type Processor struct { Name string LineOffset int // TODO: find a nicer way to capture multiple columns in a row DataLength int RequiresFit bool // contains filtered or unexported fields }
func NewBinaryTokenizingYProcessor ¶ added in v0.26.28
func NewBinaryTokenizingYProcessor( errorHandler *cberrors.ErrorsContainer, cacheDir string, lineOffset int, ) *Processor
func NewBinaryYProcessor ¶ added in v0.26.28
func NewBinaryYProcessor( errorHandler *cberrors.ErrorsContainer, cacheDir string, lineOffset int, ) *Processor
func NewProcessor ¶
func NewProcessor( errorHandler *cberrors.ErrorsContainer, name string, config ProcessorConfig, ) *Processor
func NewSparseCategoricalTokenizingYProcessor ¶ added in v0.26.28
func NewSparseCategoricalTokenizingYProcessor( errorHandler *cberrors.ErrorsContainer, cacheDir string, lineOffset int, ) *Processor
func NewSparseCategoricalYProcessor ¶ added in v0.26.28
func NewSparseCategoricalYProcessor( errorHandler *cberrors.ErrorsContainer, cacheDir string, lineOffset int, ) *Processor
func (*Processor) FitInterface ¶ added in v0.26.28
func (*Processor) ProcessInterface ¶ added in v0.26.28
func (*Processor) ProcessString ¶ added in v0.26.28
func (*Processor) SetLoadDir ¶ added in v0.26.28
type ProcessorConfig ¶ added in v0.26.28
type RegressionDivisor ¶
type RegressionDivisor struct {
// contains filtered or unexported fields
}
func NewDivisor ¶
func NewDivisor( errorHandler *cberrors.ErrorsContainer, ) *RegressionDivisor
func (*RegressionDivisor) Divide ¶
func (r *RegressionDivisor) Divide(input []float32) ([]float32, error)
func (*RegressionDivisor) Fit ¶
func (r *RegressionDivisor) Fit(input []float32)
func (*RegressionDivisor) Load ¶
func (r *RegressionDivisor) Load(configFile string) error
func (*RegressionDivisor) Save ¶
func (r *RegressionDivisor) Save(configFile string) error
type Tokenizer ¶
type Tokenizer struct {
// contains filtered or unexported fields
}
func NewTokenizer ¶
func NewTokenizer( errorHandler *cberrors.ErrorsContainer, maxLen int, numWords int, configs ...TokenizerConfig, ) *Tokenizer
type TokenizerConfig ¶ added in v0.26.28
Click to show internal directories.
Click to hide internal directories.