learning

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package Learning implements the learning stage of the Neurlang classifier

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HyperParameters

type HyperParameters struct {
	Threads int // number of threads for learning

	Shuffle bool // whether to shuffle the set before each learning attempt
	Seed    bool // seed prng using true rng

	Printer       uint32 // print when hit conflicting solution of at least this large size
	DeadlineMs    int    // deadline in milliseconds to throw away incomplete solution attempt
	DeadlineRetry int    // retry from scratch after this many failed deadlines

	// Factor is how hard to try to come up with a smaller solution (default: 1)
	// Usually set equal to Subtractor
	Factor uint32

	// Subtractor is how hard to try to come up with a smaller solution (default: 1)
	// Usually set equal to Factor
	Subtractor uint32

	InitialLimit int // initial limit of how small the solution must be to be saved to disk

	DisableProgressBar bool // disable progress bar

	EndWhenSolved bool // end when solved

	Name string // override model name
	EOL  []byte // override EOL string
	// contains filtered or unexported fields
}

func (*HyperParameters) Reduce

func (h *HyperParameters) Reduce(center, max uint32, maxl modulo_t, alphabet *[2][]uint32) (off [2]uint32)

func (*HyperParameters) Reduce1 added in v0.0.4

func (h *HyperParameters) Reduce1(alphabet *[2][]uint32) (off [2]uint32)

func (*HyperParameters) Reduce2 added in v0.0.4

func (h *HyperParameters) Reduce2(alphabet *[2][]uint32) (off [2]uint32)

func (*HyperParameters) SetLogger

func (h *HyperParameters) SetLogger(filename string)

SetLogger sets the output logger file where hashtron golang code programs are written

func (*HyperParameters) Solve

Solve directly solves a single hashtron on a splitted dataset d. It outputs the size of solution and the trained hashtron if successful. Most callers should use Training instead.

func (*HyperParameters) Training

Training trains a single hashtron on a dataset d. It outputs the trained hashtron if successful, or an error.

Directories

Path Synopsis
cu
Package Cu implements the learning stage of the Neurlang classifier on CUDA
Package Cu implements the learning stage of the Neurlang classifier on CUDA

Jump to

Keyboard shortcuts

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