Help us shape the future of Go! Take the 2026 Go Developer Survey

projector

package
v1.37.10 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: BSD-3-Clause Imports: 13 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) AdditionalFeatureProjectionField

func (f *FeatureProjector) AdditionalFeatureProjectionField(classname string) *graphql.Field

func (*FeatureProjector) AdditionalPropertyDefaultValue

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

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) ExtractAdditionalFn

func (f *FeatureProjector) ExtractAdditionalFn(param []*ast.Argument, class *models.Class) 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