Skip to content

Commit

Permalink
make arff parser useable for all datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
davnn committed Nov 3, 2021
1 parent 1110ee5 commit 99a6c71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/ELKI/ELKI.jl
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 99a6c71

Please sign in to comment.