Created
March 24, 2020 19:13
-
-
Save theogf/8ebf438c15eafa7114b2ab15747c041f to your computer and use it in GitHub Desktop.
Logo Julia Gaussian Processes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Plots, Colors, Measures | |
using AugmentedGaussianProcesses | |
pyplot() | |
julia_blue = RGB(0.251, 0.388, 0.847) | |
julia_green = RGB(0.22, 0.596, 0.149) | |
julia_purple = RGB(0.584, 0.345, 0.698) | |
julia_red = RGB(0.796, 0.235, 0.2) | |
x = [0.1, 0.2, 0.3] | |
y = [1.0, 2.0, 0.5] | |
xtest= range(0.05,0.35,length=100) | |
k = transform(SqExponentialKernel(),20.0) | |
m= GP(x,y,k) | |
train!(m,1) | |
mu,sig = proba_y(m, xtest) | |
plot( | |
xtest, | |
mu, | |
ribbon = sqrt.(sig), | |
color = julia_blue, | |
legend = false, | |
margin = 0.0mm, | |
lw = 6.0, | |
size = (300, 300), | |
fillalpha = 0.4, | |
) | |
scatter!( | |
x, | |
y, | |
framestyle = :none, | |
color = [julia_red, julia_green, julia_purple], | |
msw = 2.0, | |
ms = 40.0, | |
margin = 0.0mm, | |
ylim = (-0.2, 2.5), | |
xlim = extrema(xtest), | |
) |> display | |
savefig(joinpath(@__DIR__,"logojuliagps.svg")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment