-
Notifications
You must be signed in to change notification settings - Fork 7
/
Models.jl
executable file
·62 lines (49 loc) · 1.3 KB
/
Models.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module Models
using ..CounterfactualExplanations
using ..DataPreprocessing
using DataFrames: DataFrames
using Flux
using LazyArtifacts: LazyArtifacts
using MLJBase: MLJBase
using MLUtils
using ProgressMeter
using Serialization
using Statistics: Statistics
include("utils.jl")
include("core_struct.jl")
include("traits.jl")
include("mlj.jl")
include("differentiable/differentiable.jl")
include("pretrained/pretrained.jl")
export AbstractModel
export Model
export Linear
export MLP
export DeepEnsemble
export FluxModel
export FluxEnsemble
export flux_training_params
export probs, logits
export load_mnist_mlp, load_fashion_mnist_ensemble, load_fashion_mnist_vae
export load_cifar_10_mlp, load_cifar_10_ensemble, load_cifar_10_vae
"""
standard_models_catalogue
A dictionary containing all differentiable machine learning models.
"""
const standard_models_catalogue = Dict(
:Linear => Linear, :MLP => MLP, :DeepEnsemble => DeepEnsemble
)
"""
all_models_catalogue
A dictionary containing both differentiable and non-differentiable machine learning models.
"""
const all_models_catalogue = Dict(
:Linear => Linear, :MLP => MLP, :DeepEnsemble => DeepEnsemble
)
export standard_models_catalogue
export all_models_catalogue
export fit_model
export model_evaluation
export predict_label
export predict_proba
end