projector

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureProjection

type FeatureProjection struct {
	Vector []float32 `json:"vector"`
}

type FeatureProjector

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

func New

func New() *FeatureProjector

func (*FeatureProjector) AdditionalPropertyFn

func (f *FeatureProjector) AdditionalPropertyFn(ctx context.Context,
	in []search.Result, params interface{}, limit *int,
	argumentModuleParams map[string]interface{}, cfg moduletools.ClassConfig,
) ([]search.Result, error)

func (*FeatureProjector) AdditonalPropertyDefaultValue

func (f *FeatureProjector) AdditonalPropertyDefaultValue() interface{}

func (*FeatureProjector) ExtractAdditionalFn

func (f *FeatureProjector) ExtractAdditionalFn(param []*ast.Argument) interface{}

func (*FeatureProjector) Reduce

func (f *FeatureProjector) Reduce(in []search.Result, params *Params) ([]search.Result, error)

type Params

type Params struct {
	Enabled          bool
	Algorithm        *string // optional parameter
	Dimensions       *int    // optional parameter
	Perplexity       *int    // optional parameter
	Iterations       *int    // optional parameter
	LearningRate     *int    // optional parameter
	IncludeNeighbors bool
}

func (*Params) SetDefaultsAndValidate

func (p *Params) SetDefaultsAndValidate(inputSize, dims int) error

Jump to

Keyboard shortcuts

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