Documentation ¶
Index ¶
- Constants
- type API
- type Getter
- type Scheduler
- func (s *Scheduler) Do(ctx context.Context) (*models.Classification, error)
- func (s *Scheduler) WithBasedOnProperties(basedOnProperties []string) *Scheduler
- func (s *Scheduler) WithClassName(name string) *Scheduler
- func (s *Scheduler) WithClassifyProperties(classifyProperties []string) *Scheduler
- func (s *Scheduler) WithSettings(settings interface{}) *Scheduler
- func (s *Scheduler) WithSourceWhereFilter(whereFilter *filters.WhereBuilder) *Scheduler
- func (s *Scheduler) WithTargetWhereFilter(whereFilter *filters.WhereBuilder) *Scheduler
- func (s *Scheduler) WithTrainingSetWhereFilter(whereFilter *filters.WhereBuilder) *Scheduler
- func (s *Scheduler) WithType(classificationType string) *Scheduler
- func (s *Scheduler) WithWaitForCompletion() *Scheduler
Constants ¶
const Contextual = "text2vec-contextionary"
Contextual classification labels a data object with the closest label based on their vector position (which describes the context). It can only be used with the text2vec-contextionary vectorizer.
const KNN = "knn"
KNN (k nearest neighbours) a non parametric classification based on training data
const ZeroShot = "zeroshot"
ZeroShot classification labels a data object with the closest label based on their vector position (which describes the context) It can be used with any vectorizer or custom vectors.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API classifications API
type Getter ¶
type Getter struct {
// contains filtered or unexported fields
}
Getter builder to retrieve a classification status object
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler builder to schedule a classification
func (*Scheduler) WithBasedOnProperties ¶
WithBasedOnProperties defines the properties that will be considered for the classification
func (*Scheduler) WithClassName ¶
WithClassName that should be classified
func (*Scheduler) WithClassifyProperties ¶
WithClassifyProperties defines the properties that will be labeled through the classification
func (*Scheduler) WithSettings ¶
WithSettings sets the classification settings
func (*Scheduler) WithSourceWhereFilter ¶
func (s *Scheduler) WithSourceWhereFilter(whereFilter *filters.WhereBuilder) *Scheduler
WithSourceWhereFilter filter the data objects to be labeled
func (*Scheduler) WithTargetWhereFilter ¶
func (s *Scheduler) WithTargetWhereFilter(whereFilter *filters.WhereBuilder) *Scheduler
WithTargetWhereFilter filter the label objects
func (*Scheduler) WithTrainingSetWhereFilter ¶
func (s *Scheduler) WithTrainingSetWhereFilter(whereFilter *filters.WhereBuilder) *Scheduler
WithTrainingSetWhereFilter filter the objects that are used as training data. E.g. in a knn classification
func (*Scheduler) WithWaitForCompletion ¶
WithWaitForCompletion block while classification is running (until classification succeeded or failed)