Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Midas ¶
Takes in a list of source, destination and times to do anomaly score of each edge This function mirrors the implementation of https://github.com/bhatiasiddharth/MIDAS
Types ¶
type MidasModel ¶
type MidasModel struct {
// contains filtered or unexported fields
}
func NewMidasModel ¶
func NewMidasModel(numRows int, numBuckets int, m int) *MidasModel
Creates a new Midas struct that will enable the use of Fit and FitPredict API.
func (*MidasModel) Fit ¶
func (m *MidasModel) Fit(src, dst, time int)
Fit the source, destination and time to the MidasModel struct similar to the sklearn api
func (*MidasModel) FitPredict ¶
func (m *MidasModel) FitPredict(src, dst, time int) float64
Fit the source, destination and time to the MidasModel struct and calculate the anomaly score
type MidasRModel ¶
type MidasRModel struct {
// contains filtered or unexported fields
}
func NewMidasRModel ¶
func NewMidasRModel(numRows int, numBuckets int, m int, factor float64) *MidasRModel
func (*MidasRModel) Fit ¶
func (m *MidasRModel) Fit(src, dst, time int)
func (*MidasRModel) FitPredict ¶
func (m *MidasRModel) FitPredict(src, dst, time int) float64
type NodeHash ¶
type NodeHash struct {
// contains filtered or unexported fields
}
func NewNodeHash ¶
Click to show internal directories.
Click to hide internal directories.