outliertree | anomaly detection through decision tree conditioning | Predictive Analytics library
kandi X-RAY | outliertree Summary
kandi X-RAY | outliertree Summary
Explainable outlier/anomaly detection based on smart decision tree grouping, similar in spirit to the GritBot software developed by RuleQuest research. Written in C++ with interfaces for R and Python (additional Ruby wrapper can be found here). Supports columns of types numeric, categorical, binary/boolean, and ordinal, and can handle missing values in all of them. Ideal as a sanity checker in exploratory data analysis.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of outliertree
outliertree Key Features
outliertree Examples and Code Snippets
library(outliertree)
### random data frame with an obvious outlier
nrows = 100
set.seed(1)
df = data.frame(
numeric_col1 = c(rnorm(nrows - 1), 1e6),
numeric_col2 = rgamma(nrows, 1),
categ_col = sample(c('categA', 'categB', 'categC'),
row [1138] - suspicious column: [age] - suspicious value: [75.00]
distribution: 95.122% <= 42.00 - [mean: 31.46] - [sd: 5.28] - [norm. obs: 39]
given:
[pregnant] = [TRUE]
row [2230] - suspicious column: [T3] - suspicious value: [10.60]
dist
install.packages("outliertree")
pip install outliertree
pip install --no-use-pep517 outliertree
export ENABLE_OMP=1
pip install outliertree
Community Discussions
Trending Discussions on outliertree
QUESTION
I know there is already a lot on Assertion Failure. But none was useful for me. Hear me out.
This is the code:
...ANSWER
Answered 2021-Mar-31 at 17:21I don't know enough about OutlierTree to know how to fix the error. However, the error you see is in the function std::vector::operator[]
, which is std::vector
's access by index function. The assertion error simply means that you tried to access an item at an index that is greater than the vector's length.
As to why you see this error only in VS Code, I assume that it's because assertions are usually checked only in debug mode. Google Collab is probably compiled in release mode without the assertions - that doesn't mean that you don't access out-of-bounds items, it just doesn't catch the error.
I suggest you use gdb or another debugger to understand which vector you try to access out-of-bound, then attaching a stacktrace to your question. Maybe file a bug report with OutlierTree - this seems something they could handle better.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install outliertree
For R:
For Python:
For C++: package doesn't have a build system, nor a main function that can produce an executable, but can be built as a shared object and wrapped into other languages with any C++11-compliant compiler (std=c++11 in most compilers, /std:c++14 in MSVC). For parallelization, needs OpenMP linkage (-fopenmp in most compilers, /openmp in MSVC). Package should not be built with optimization higher than O3 (i.e. don't use -Ofast). Needs linkage to the math library, which should be enabled by default in most C++ compilers, but otherwise would require -lm argument. No external dependencies are required.
For Ruby: see external repository with wrapper.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page