-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinitialization.jl
58 lines (48 loc) · 1.36 KB
/
initialization.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
@info "Installing and precompiling packages"
@time begin
using Pkg
Pkg.activate(@__DIR__)
# remove Manifest.toml
if isfile("Manifest.toml")
rm("Manifest.toml")
end
# removes ImageInspector if installed
if haskey(Pkg.project().dependencies, "ImageInspector")
Pkg.rm("ImageInspector")
Pkg.resolve()
end
Pkg.instantiate()
Pkg.precompile()
Pkg.add(url="https://github.com/JuliaTeachingCTU/ImageInspector.jl", rev="master")
using BSON
using BenchmarkTools
using CSV
using DataFrames
using DifferentialEquations
using Distributions
using Flux
using GLM
using GLPK
using HypothesisTests
using Ipopt
using JuMP
using LinearAlgebra
using MLDatasets
using PkgTemplates
using Plots
using ProgressMeter
using Query
using RDatasets
using Random
using SpecialFunctions
using Statistics
using StatsPlots
@info "Downloading datasets"
ENV["DATADEPS_ALWAYS_ACCEPT"] = true
dataset("datasets", "iris"); # download iris dataset
dataset("plm", "Snmesp"); # download Snmesp dataset
MLDatasets.MNIST(Float32, :train)[:]; # download MNIST dataset
MLDatasets.FashionMNIST(Float32, :train)[:]; # download FashionMNIST dataset
MLDatasets.CIFAR10(Float32, :train)[:]; # download CIFAR10 dataset
@info "Finished"
end