From 99a6c71b78fc487566387a53ebfb67fc41d84530 Mon Sep 17 00:00:00 2001 From: David Muhr Date: Wed, 3 Nov 2021 16:22:55 +0100 Subject: [PATCH] make arff parser useable for all datasets --- src/{ELKI => ARFF}/ARFF.jl | 0 src/{ELKI => ARFF}/parsing.jl | 0 src/ELKI/ELKI.jl | 6 +++--- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/{ELKI => ARFF}/ARFF.jl (100%) rename src/{ELKI => ARFF}/parsing.jl (100%) diff --git a/src/ELKI/ARFF.jl b/src/ARFF/ARFF.jl similarity index 100% rename from src/ELKI/ARFF.jl rename to src/ARFF/ARFF.jl diff --git a/src/ELKI/parsing.jl b/src/ARFF/parsing.jl similarity index 100% rename from src/ELKI/parsing.jl rename to src/ARFF/parsing.jl diff --git a/src/ELKI/ELKI.jl b/src/ELKI/ELKI.jl index 21e840a..c386b67 100644 --- a/src/ELKI/ELKI.jl +++ b/src/ELKI/ELKI.jl @@ -1,11 +1,11 @@ module ELKI + using ..OutlierDetectionData: ARFF using OutlierDetection: CLASS_NORMAL, CLASS_OUTLIER, to_categorical using DataFrames: DataFrame, Not, select, convert, disallowmissing!, rename! using DataDeps export list, load - include("ARFF.jl") include("datasets.jl") ELKI_DATASETS = vcat(ELKI_SEMANTIC, ELKI_LITERATURE) @@ -38,10 +38,10 @@ module ELKI function to_dep(dataset_name::AbstractString) if dataset_name in ELKI_LITERATURE dep = @datadep_str to_name("literature") - return "$dep/literature" + return joinpath(dep, "literature") elseif dataset_name in ELKI_SEMANTIC dep = @datadep_str to_name("semantic") - return "$dep/semantic" + return joinpath(dep, "semantic") else throw(ArgumentError("$dataset_name was not found in the available datasets")) end