9
Midas, a Streaming Anomaly Detector. Now Implemented in Go
source link: https://github.com/steve0hh/midas
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
MIDAS
MIDAS - edge stream anomaly detection - for Go
Usage and installation
Checkout the examples
folder for detailed instructions
import ( "github.com/steve0hh/midas" "fmt" ) func main () { src := []int{2,2,3,3,5,5,7,11,1,2} dst := []int{3,3,4,4,9,9,73,74,75,76} times := []int{1,1,2,2,2,2,2,2,2,2} // using function to score the edges midasAnormScore := midas.Midas(src, dst, times, 2, 769) midasRAnormScore := midas.MidasR(src, dst, times, 2, 769, 0.6) fmt.Println(midasAnormScore) fmt.Println(midasRAnormScore) // using sklearn FitPredict api m := midas.NewMidasModel(2, 769, 9460) fmt.Println(m.FitPredict(2,3,1)) fmt.Println(m.FitPredict(2,3,1)) fmt.Println(m.FitPredict(3,4,2)) }
Resources
Contributing
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features
TODOs
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK