Skip to content

Commit

Permalink
fix scatter binding
Browse files Browse the repository at this point in the history
  • Loading branch information
axsk committed Jun 27, 2024
1 parent 6a9cabe commit 09760ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/bonito.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function content(session)
isoui, isoo = @time isocreator()
global ISO
ISO = isoo
Grid(isoui)
#Grid(isoui)
Grid(isoui, @lift(dashboard($isoo, session)))
end

Expand All @@ -24,7 +24,7 @@ function isocreator()
pdbid = TextField("")
steps = StylableSlider(1:1000, value=10)
temperature = StylableSlider(-10:70, value=30)
optim = Dropdown(["Adam", "Nesterov"], index=2)
optim = Dropdown(["Adam", "Nesterov"], index=1)
learnrate = StylableSlider(sort([logrange(1e-4, 1e-2, 10); 1e-3]), value=1e-3)
regularization = StylableSlider(sort([logrange(1e-6, 1e-3, 10); 1e-4]), value=1e-4)
nx = StylableSlider(2:100, value=10)
Expand Down Expand Up @@ -111,7 +111,7 @@ function serve()
return content(session)
end

server = Bonito.get_server()
route!(server, "/" => app)
#server = Bonito.get_server()
#route!(server, "/" => app)
return app
end
2 changes: 1 addition & 1 deletion src/makie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function dashboard(iso::Iso2, session=nothing)


lines(fig[2, 1], losses, axis=(yscale=log10, limits=@lift((((1, max(length($losses), 2)), nothing)))))
scatter(fig[3, 1], chis, axis=(limits=@lift((1, $n, 0, 1)),))
WGLMakie.scatter(fig[3, 1], chis, axis=(limits=@lift((1, $n, 0, 1)),))

frameselector = SliderGrid(fig[4, 1],
(label="Data Frame", range=@lift(1:$n), startvalue=n)
Expand Down
2 changes: 1 addition & 1 deletion src/models.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ end
`features` allows to pass a featurizer as preprocessor,
`activation` determines the activation function for each but the last layer
`lastactivation` can be used to modify the last layers activation function """
function pairnet(n::Int=22; layers=3, features=identity, activation=Flux.sigmoid, lastactivation=identity, nout=1, layernorm=false)
function pairnet(n::Int=22; layers=3, features=identity, activation=Flux.sigmoid, lastactivation=identity, nout=1, layernorm=true)
float32(x) = Float32.(x)
nn = Flux.Chain(
#float32,
Expand Down

0 comments on commit 09760ca

Please sign in to comment.