ak0da project
.editorconfig | ||
.envrc | ||
.gitattributes | ||
.gitignore | ||
.golangci.yml | ||
.pre-commit-config.yaml | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
go.mod | ||
go.sum | ||
main.go | ||
README.md | ||
shell.nix |
ak0da
this repo contains code of the compulsory task for AK0DA
course.
the topic is anomaly/outlier detection using
golearn
's Isolation Forest model
implementation.
to test the functionality you'd need:
with Go ready, do:
go install -v git.dotya.ml/wanderer/ak0da@latest
$GOPATH/bin/ak0da
# or to run the code directly:
go run -v git.dotya.ml/wanderer/ak0da@latest
or with (flake-enabled) Nix, do:
nix run git+https://git.dotya.ml/wanderer/ak0da#proj
both of the above should put the ak0da
binary in your $GOPATH
, from where
you can run it.
it then drops a data.csv
file in $PWD
which is overwritten everytime the
program is run.
the last 15 (the amount is hardcoded) values are outliers, which should stand out to the model and be detected as such.
by default there are 10001 "normal" (standard normal distribution or uniform
distribution < -1; 1 >
) values generated, to array of which the outliers are
appended.