update render script resolution and font size
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
class WLBPosteriorEstimator(PosteriorEstimatorTrainer):
|
class WLBPosteriorEstimator(PosteriorEstimatorTrainer):
|
||||||
"""
|
"""
|
||||||
Weighted likelihood bootstrap (WLB) estimator.
|
Weighted likelihood bootstrap (WLB) estimator.
|
||||||
@@ -26,10 +27,12 @@ class WLBPosteriorEstimator(PosteriorEstimatorTrainer):
|
|||||||
point-wise basis for a given training run, and we load them later where
|
point-wise basis for a given training run, and we load them later where
|
||||||
we need them in the ``train()`` loop.
|
we need them in the ``train()`` loop.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
theta, x, prior_masks = self.get_simulations(starting_round)
|
theta, x, prior_masks = self.get_simulations(starting_round)
|
||||||
|
|
||||||
# generate session specific WLB weights to attach point-wise
|
# generate session specific WLB weights to attach point-wise
|
||||||
N = theta.shape[0]
|
N = theta.shape[0]
|
||||||
|
|
||||||
wlb_z = Exponential(1.0).sample((N,))
|
wlb_z = Exponential(1.0).sample((N,))
|
||||||
wlb_w = (wlb_z / wlb_z.sum()) * N
|
wlb_w = (wlb_z / wlb_z.sum()) * N
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 167 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 170 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 174 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 174 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 174 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 174 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 174 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 174 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 171 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 174 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 174 KiB |
|
Before Width: | Height: | Size: 960 KiB After Width: | Height: | Size: 794 KiB |
@@ -16,6 +16,7 @@ kitty -o allow_remote_control=yes --listen-on "unix:$sock" --title "$title" "$@"
|
|||||||
# create a targeted rule for the marked window and resize
|
# create a targeted rule for the marked window and resize
|
||||||
sleep 2
|
sleep 2
|
||||||
swaymsg "for_window [title=\"$title\"] mark --add $title, floating enable, resize set width ${w} px height ${h} px, move position center" >/dev/null
|
swaymsg "for_window [title=\"$title\"] mark --add $title, floating enable, resize set width ${w} px height ${h} px, move position center" >/dev/null
|
||||||
|
kitty @ --to "unix:$sock" set-font-size 24
|
||||||
|
|
||||||
# get the spawned window geometry
|
# get the spawned window geometry
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ prefix=${1:-}
|
|||||||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
render_script="$script_dir/render.sh"
|
render_script="$script_dir/render.sh"
|
||||||
|
|
||||||
biomes=(alpine) # badlands chaparral savanna grassland tundra reef heathland moorland)
|
biomes=(alpine badlands chaparral savanna grassland tundra reef heathland moorland)
|
||||||
modes=(light)
|
modes=(light)
|
||||||
|
|
||||||
for biome in "${biomes[@]}"; do
|
for biome in "${biomes[@]}"; do
|
||||||
@@ -25,7 +25,7 @@ for biome in "${biomes[@]}"; do
|
|||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
echo "Taking screenshot..."
|
echo "Taking screenshot..."
|
||||||
"$render_script" 800 600 "images/render/$prefix-$biome-$mode.png" nvim \
|
"$render_script" 1920 1440 "images/render/$prefix-$biome-$mode.png" nvim \
|
||||||
+':highlight Cursor blend=100' \
|
+':highlight Cursor blend=100' \
|
||||||
+':set guicursor=n:block-Cursor' \
|
+':set guicursor=n:block-Cursor' \
|
||||||
+':silent! setlocal nonumber nocursorline signcolumn=no foldcolumn=no' \
|
+':silent! setlocal nonumber nocursorline signcolumn=no foldcolumn=no' \
|
||||||
|
|||||||