This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import numpy as np | |
import scipy.stats | |
import math | |
__author__ = 'herve.schnegg' | |
class MultiGaussianAnomalyDetection(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import numpy as np | |
import scipy.stats | |
import math | |
__author__ = 'herve.schnegg' | |
class GaussianAnomalyDetection(object): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select (mytext ~ '^([0-9]+[.]?[0-9]*|[.][0-9]+)$'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dummy attributes matrix | |
x <- matrix(c(1:12), ncol=4) | |
# Select attributes for combination (TRUE: in) | |
s1 <- c(TRUE, TRUE, FALSE, FALSE) | |
s2 <- c(FALSE, TRUE, FALSE, TRUE) | |
sel.x <- data.frame(s1, s2) | |
# Use higher order functions |