Skip to content

Commit

Permalink
rm old dataset download functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Feb 13, 2024
1 parent 6fe047d commit f8f7a3f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 198 deletions.
4 changes: 1 addition & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ authors = ["Fredrik Bagge Carlson <baggepinnen@gmail.com>"]
version = "0.4.18"

[deps]
BinDeps = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"
Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
Expand All @@ -20,11 +19,11 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"

[compat]
BinDeps = "1.0"
DataStructures = "0.17, 0.18"
DelimitedFiles = "1"
Distances = "0.8, 0.9, 0.10"
FillArrays = "1"
LinearAlgebra = "<0.0.1, 1"
LoopVectorization = "0.9, 0.10, 0.11, 0.12"
ProgressMeter = "1.2"
RecipesBase = "1.0"
Expand All @@ -34,7 +33,6 @@ Statistics = "1"
StatsBase = "0.32, 0.33, 0.34"
UnPack = "0.1, 1"
julia = "1"
LinearAlgebra = "<0.0.1, 1"

[extras]
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Expand Down
4 changes: 2 additions & 2 deletions examples/dba.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ using DynamicAxisWarping
#using DynamicAxisWarping.WarpPlots
using DynamicAxisWarping.Datasets

# UCI data repository must be downloaded first, run DynamicAxisWarping.Datasets.download_ucr()
data, labels = ucr_traindata("Gun_Point");
# UCI data repository must be downloaded first, then extract and prepare the data set labeled "Gun_Point"
# data, labels = ... # Gun_Point

# c = [ cl==1 ? :blue : :red for cl in class ]'
# plot(y, linecolor=c, legend=false)
Expand Down
4 changes: 2 additions & 2 deletions examples/dbaclust.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ using DynamicAxisWarping
#using DynamicAxisWarping.WarpPlots
using DynamicAxisWarping.Datasets

# UCI data repository must be downloaded first, run DynamicAxisWarping.Datasets.download_ucr()
data, labels = ucr_traindata("MedicalImages");
# UCI data repository must be downloaded first, then extract and prepare the data set labeled "MedicalImages"
# data, labels = ... # MedicalImages

# c = [ cl==1 ? :blue : :red for cl in class ]'
# plot(y, linecolor=c, legend=false)
Expand Down
4 changes: 2 additions & 2 deletions examples/dtw.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using DynamicAxisWarping
using DynamicAxisWarping.Datasets

# UCI data repository must be downloaded first, run DynamicAxisWarping.download_data()
data = ucr_traindata("Gun_Point");
# UCI data repository must be downloaded first, then extract and prepare the data set labeled "Gun_Point"
# data = ... # Gun_Point

y1 = data[1][:,1]
y2 = data[1][:,2]
Expand Down
5 changes: 4 additions & 1 deletion examples/fastdtw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ using DynamicAxisWarping.Datasets
using Plots
gr()

data, labels = ucr_traindata("50words")
# UCI data repository must be downloaded first, then extract and prepare the data set labeled "50words"
# data, labels = ... # 50words

# data, labels = # 50words data...

plot(
[fastdtw(data[:, i], data[:, i+10], radius)[1] for radius = 1:100, i = 1:10],
Expand Down
6 changes: 0 additions & 6 deletions src/datasets/datasets.jl
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
module Datasets

import BinDeps: unpack_cmd

# UCR datasets #
export ucr_traindata, ucr_testdata, download_ucr

# synthetic datasets #
export fakedata

# place to store the data
const DATAPATH = joinpath(@__DIR__, "../../data") |> normpath

include("ucr_datasets.jl")
include("fake_datasets.jl")

end # DATASETS module
182 changes: 0 additions & 182 deletions src/datasets/ucr_datasets.jl

This file was deleted.

0 comments on commit f8f7a3f

Please sign in to comment.