Skip to content

monochromegane/adwin-v

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

ADWIN-V Actions Status

ADWIN-V is an adaptive windowing algorithm for vector data. It detects a change point using the vector magnitude and cosine similarity between mean vector and the vector. The change detection algorithm is ADWIN or ADWIN2 which is from Learning from time-changing data with adaptive windowing, Bifet, Albert, and Ricard Gavalda; Proceedings of the 2007 SIAM international conference on data mining. Society for Industrial and Applied Mathematics, 2007.

See also:

Usage

ADWIN-V

ADWIN-V uses ADWIN for change detection of vector magnitude and cosine similarity.

        dim := 2
	deltaM := 0.01
	deltaA := 0.01
	adwinv := NewAdwinV(dim, deltaM, deltaA)
	adwinv.Conservative(true) // if you wants
	adwinv.ScaleMagnitudes(0.1) // if you wants
	adwinv.ScaleAngles(1.0) // if you wants

	// Add stream data
	adwinv.Add([]float64{1.0, 2.0})

	// Show status
	adwinv.Size()
	adwinv.SizeMagnitudes()
	adwinv.SizeAngles()
	adwinv.Mean()
	adwinv.Detected()

ADWIN2-V

ADWIN2-V uses ADWIN2 for change detection of vector magnitude and cosine similarity.

  • Note: This version provides SyncWindow option to synchronize the bucket size of the exponential histogram.
        dim := 2
	deltaM := 0.01
	deltaA := 0.01
	adwinv := NewAdwin2V(dim, deltaM, deltaA)
	adwinv.SyncWindow(true) // if you wants
	adwinv.Conservative(true) // if you wants
	adwinv.ScaleMagnitudes(0.1) // if you wants
	adwinv.ScaleAngles(1.0) // if you wants

	// Add stream data
	adwinv.Add([]float64{1.0, 2.0})

	// Show status
	adwinv.Size()
	adwinv.SizeMagnitudes()
	adwinv.SizeAngles()
	adwinv.Mean()
	adwinv.Detected()

Installation

$ go get github.com/monochromegane/adwin-v

License

MIT

Author

monochromegane

About

ADWIN-V is an adaptive windowing algorithm for vector data using ADWIN and ADWIN2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages