randomforest

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomNumberGenerate

func RandomNumberGenerate(start int, end int, count int) ([]int, error)

func ReadFile

func ReadFile(path string) ([][]interface{}, []string, error)

func SplitDatafromY

func SplitDatafromY(X [][]interface{}, y []string) ([][]interface{}, [][]interface{})

Types

type UrlDetectSys

type UrlDetectSys struct {
	X        [][]interface{}
	Y        []string
	Filepath string
	// contains filtered or unexported fields
}

func (*UrlDetectSys) DumpModel

func (sys *UrlDetectSys) DumpModel(path string) error

func (*UrlDetectSys) LoadModel

func (sys *UrlDetectSys) LoadModel(path string) error

func (*UrlDetectSys) PredictScore

func (sys *UrlDetectSys) PredictScore(xx [][]interface{}, yy []string)

func (*UrlDetectSys) PredictX

func (sys *UrlDetectSys) PredictX(s string) string

func (*UrlDetectSys) RebuildData

func (sys *UrlDetectSys) RebuildData(splitNum int) ([][]interface{}, []string)

func (*UrlDetectSys) SysReadFile

func (sys *UrlDetectSys) SysReadFile()

func (*UrlDetectSys) SysTrain

func (sys *UrlDetectSys) SysTrain(x [][]interface{}, y []string)

Jump to

Keyboard shortcuts

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