Documentation ¶
Index ¶
- func NewClassSettings(cfg moduletools.ClassConfig) *classSettings
- type ClassSettings
- type Client
- type Vectorizer
- func (v *Vectorizer) Object(ctx context.Context, object *models.Object, ...) ([]float32, models.AdditionalProperties, error)
- func (v *Vectorizer) Texts(ctx context.Context, inputs []string, cfg moduletools.ClassConfig) ([]float32, error)
- func (v *Vectorizer) VectorizeAudio(ctx context.Context, audio string, cfg moduletools.ClassConfig) ([]float32, error)
- func (v *Vectorizer) VectorizeDepth(ctx context.Context, depth string, cfg moduletools.ClassConfig) ([]float32, error)
- func (v *Vectorizer) VectorizeIMU(ctx context.Context, imu string, cfg moduletools.ClassConfig) ([]float32, error)
- func (v *Vectorizer) VectorizeImage(ctx context.Context, id, image string, cfg moduletools.ClassConfig) ([]float32, error)
- func (v *Vectorizer) VectorizeThermal(ctx context.Context, thermal string, cfg moduletools.ClassConfig) ([]float32, error)
- func (v *Vectorizer) VectorizeVideo(ctx context.Context, video string, cfg moduletools.ClassConfig) ([]float32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClassSettings ¶
func NewClassSettings(cfg moduletools.ClassConfig) *classSettings
Types ¶
type ClassSettings ¶
type ClassSettings interface { ImageField(property string) bool ImageFieldsWeights() ([]float32, error) TextField(property string) bool TextFieldsWeights() ([]float32, error) AudioField(property string) bool AudioFieldsWeights() ([]float32, error) VideoField(property string) bool VideoFieldsWeights() ([]float32, error) IMUField(property string) bool IMUFieldsWeights() ([]float32, error) ThermalField(property string) bool ThermalFieldsWeights() ([]float32, error) DepthField(property string) bool DepthFieldsWeights() ([]float32, error) }
type Vectorizer ¶
type Vectorizer struct {
// contains filtered or unexported fields
}
func New ¶
func New(client Client) *Vectorizer
func (*Vectorizer) Object ¶
func (v *Vectorizer) Object(ctx context.Context, object *models.Object, comp moduletools.VectorizablePropsComparator, cfg moduletools.ClassConfig, ) ([]float32, models.AdditionalProperties, error)
func (*Vectorizer) Texts ¶
func (v *Vectorizer) Texts(ctx context.Context, inputs []string, cfg moduletools.ClassConfig, ) ([]float32, error)
func (*Vectorizer) VectorizeAudio ¶
func (v *Vectorizer) VectorizeAudio(ctx context.Context, audio string, cfg moduletools.ClassConfig) ([]float32, error)
func (*Vectorizer) VectorizeDepth ¶
func (v *Vectorizer) VectorizeDepth(ctx context.Context, depth string, cfg moduletools.ClassConfig) ([]float32, error)
func (*Vectorizer) VectorizeIMU ¶
func (v *Vectorizer) VectorizeIMU(ctx context.Context, imu string, cfg moduletools.ClassConfig) ([]float32, error)
func (*Vectorizer) VectorizeImage ¶
func (v *Vectorizer) VectorizeImage(ctx context.Context, id, image string, cfg moduletools.ClassConfig) ([]float32, error)
func (*Vectorizer) VectorizeThermal ¶
func (v *Vectorizer) VectorizeThermal(ctx context.Context, thermal string, cfg moduletools.ClassConfig) ([]float32, error)
func (*Vectorizer) VectorizeVideo ¶
func (v *Vectorizer) VectorizeVideo(ctx context.Context, video string, cfg moduletools.ClassConfig) ([]float32, error)
Click to show internal directories.
Click to hide internal directories.