Documentation
¶
Index ¶
- func RandomNumberGenerate(start int, end int, count int) ([]int, error)
- func ReadFile(path string) ([][]interface{}, []string, error)
- func SplitDatafromY(X [][]interface{}, y []string) ([][]interface{}, [][]interface{})
- type UrlDetectSys
- func (sys *UrlDetectSys) DumpModel(path string) error
- func (sys *UrlDetectSys) LoadModel(path string) error
- func (sys *UrlDetectSys) PredictScore(xx [][]interface{}, yy []string)
- func (sys *UrlDetectSys) PredictX(s string) string
- func (sys *UrlDetectSys) RebuildData(splitNum int) ([][]interface{}, []string)
- func (sys *UrlDetectSys) SysReadFile()
- func (sys *UrlDetectSys) SysTrain(x [][]interface{}, y []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.