Skip to content

Commit 4bf3623

Browse files
committed
refactor and separate AD from classification and regression
1 parent b2a6697 commit 4bf3623

25 files changed

Lines changed: 511 additions & 76 deletions

AutoAD/Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name = "AutoAD"
2+
uuid = "a90a1e1f-13cb-41ec-be1f-24b06fd2b474"
3+
authors = ["Paulito Palmes, PhD <ppalmes@gmail.com>"]
4+
version = "0.1.0"

AutoAD/src/AutoAD.jl

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
module AutoAD
2+
3+
greet() = print("Hello World!")
4+
5+
using Reexport
6+
@reexport using AutoMLPipeline
7+
@reexport using AMLPipelineBase
8+
9+
using CSV
10+
using DataFrames
11+
using AMLPipelineBase.AbsTypes
12+
export fit, fit!, transform, transform!, fit_transform, fit_transform!
13+
import AMLPipelineBase.AbsTypes: fit!, transform!, fit, transform
14+
using AMLPipelineBase: AbsTypes, Utils
15+
16+
export get_iris
17+
18+
19+
function get_iris()
20+
iris = CSV.read(joinpath(Base.@__DIR__, "../../data", "iris.csv"), DataFrame)
21+
return iris
22+
end
23+
24+
# -------------
25+
include("autoclassification.jl")
26+
using .AutoClassifications
27+
export AutoClassification
28+
29+
include("autoregression.jl")
30+
using .AutoRegressions
31+
export AutoRegression
32+
33+
include("skanomalydetector.jl")
34+
using .SKAnomalyDetectors
35+
export SKAnomalyDetector, skanomalydetectors
36+
export skaddriver
37+
38+
include("caretanomalydetector.jl")
39+
using .CaretAnomalyDetectors
40+
export CaretAnomalyDetectors, CaretAnomalyDetector
41+
export caretdriver
42+
43+
44+
include("carettspredictor.jl")
45+
using .CaretTSPredictors
46+
export CaretTSPredictor, carettsdriver
47+
48+
include("autoanomalydetection.jl")
49+
using .AutoAnomalyDetections
50+
export AutoAnomalyDetection
51+
export autoaddriver
52+
53+
include("automlflowclassification.jl")
54+
using .AutoMLFlowClassifications
55+
export AutoMLFlowClassification
56+
export mlfcldriver
57+
58+
include("automlflowregression.jl")
59+
using .AutoMLFlowRegressions
60+
export AutoMLFlowRegression
61+
export mlfregdriver
62+
63+
include("automlflowanomalydetection.jl")
64+
using .AutoMLFlowAnomalyDetections
65+
export AutoMLFlowAnomalyDetection
66+
export mlfaddriver
67+
68+
end # module AutoAD
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
module AutoAnomalyDetections
22
using Distributed
3-
using AutoMLPipeline
3+
using ..AutoMLPipeline
44
using DataFrames: DataFrame, nrow, rename!
5-
using AutoMLPipeline: score
65
using Random
76
using Statistics
87
using ..AbsTypes
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ using Random
1111
using ..AbsTypes
1212
using ..Utils
1313
using ..AutoAnomalyDetections
14-
using ..AutoMLPipeline: getiris
1514

1615
import ..AbsTypes: fit, fit!, transform, transform!
1716
export fit, fit!, transform, transform!

AutoAD/test/runtests.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module TestAutoAI
2+
using Distributed
3+
4+
nprocs() == 1 && addprocs()
5+
@everywhere using AutoAI
6+
7+
@everywhere include("./test_automl.jl")
8+
@everywhere include("./test_caret_anomalydetector.jl")
9+
include("./test_skanomalydetector.jl")
10+
@everywhere include("./test_caret_tspredictor.jl")
11+
end

0 commit comments

Comments
 (0)