aboutsummaryrefslogtreecommitdiffstats
path: root/src/Vatic.jl
blob: 3400a87df2e950fd10e852f1ca9c540f7040bcec (plain)
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
module Vatic

include("Data.jl")

include("NeuralNetworks.jl")
include("MonteCarlo.jl")

include("Bayes.jl")

include("platforms/Manifold.jl")
include("platforms/Metaculus.jl")

using ArgParse
using REPL

function main()
    args = let
        s = ArgParseSettings()
        @add_arg_table s begin
            "--sources"
                default = "sources.toml"
                arg_type = String
            "-i","--interactive"
                action = :store_true
        end
        parse_args(s)
    end

    index = Data.Index(args["sources"])

    if args["interactive"]
        term = REPL.Terminals.TTYTerminal("dumb", stdin, stdout, stderr)
        repl = REPL.LineEditREPL(term, true)
        REPL.run_repl(repl)
    end
end

end