ml

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassifierPrediction

type ClassifierPrediction struct {
	Class       string  `json:"predicted_class,omitempty"`
	Probability float64 `json:"predicted_probability,omitempty"`
	Score       string  `json:"predicted_score,omitempty"`
	SHA256      string  `json:"sha256,omitempty"`
}

ClassifierPrediction represents the classifier prediction result.

func PEClassPrediction

func PEClassPrediction(server string, buff []byte) (
	ClassifierPrediction, error)

PEClassPrediction returns the ML PE classifier results.

type StringsRanker

type StringsRanker struct {
	Strings []string `json:"strings,omitempty"`
	SHA256  string   `json:"sha256,omitempty"`
}

StringsRanker represents the string ranker results.

func RankStrings

func RankStrings(server string, buff []byte) (StringsRanker, error)

RankStrings applies the String ranker model to a list of strings.

Jump to

Keyboard shortcuts

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