Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
ecd602c
Initial commit
torfjelde Sep 19, 2020
7f2f35e
Files generated by PkgTemplates
torfjelde Sep 19, 2020
86f9244
added some proper docs
torfjelde Sep 19, 2020
4264995
additional docs update
torfjelde Sep 19, 2020
5e7542d
add short desc to README
torfjelde Sep 19, 2020
a38848e
updated docs a bit
torfjelde Sep 19, 2020
9a433ab
updated README
torfjelde Sep 19, 2020
cc9f765
now also tracks sampler stats
torfjelde Sep 19, 2020
98ce2fa
changed to using OnlineStats.edges instead of manual impl
torfjelde Sep 19, 2020
132d9d3
added image of histograms screen
torfjelde Sep 19, 2020
e3fed61
renamed and changed the interface a bit, its nicer now
torfjelde Sep 19, 2020
6ba3f09
added compat entries
torfjelde Sep 20, 2020
76a92f2
added a bit more optionality to what is being logged
torfjelde Sep 20, 2020
67df8f1
added further customization to TensorBoardLogger
torfjelde Sep 20, 2020
4932219
improved docstring for TensorBoardCallback
torfjelde Sep 20, 2020
c7a66a7
improved docs a bit
torfjelde Sep 20, 2020
b67aaf8
updated docs
torfjelde Sep 20, 2020
46e16ae
slight update to docstring
torfjelde Sep 20, 2020
bd57186
added Thin, Skip and WindowStat as impls of OnlineStat and refractore…
torfjelde Sep 21, 2020
a9d0edc
improved docs a bit
torfjelde Sep 21, 2020
2126032
update to docs
torfjelde Sep 21, 2020
aa3af9b
update to docs
torfjelde Sep 21, 2020
e33e7a0
updated docs
torfjelde Sep 21, 2020
53b4932
Remove Histogram (#7)
devmotion Sep 21, 2020
a4508e2
removed num_samples from TensorBoardCallback as its unnecessary
torfjelde Sep 21, 2020
ead03e7
CompatHelper: add new compat entry for "Reexport" at version "0.2" (#8)
github-actions[bot] Sep 22, 2020
f80c7a0
slight tweak to example in docs
torfjelde Sep 22, 2020
739e5dc
fixed an issue when working with multivariate variables
torfjelde Sep 22, 2020
9bd2677
Typo in variable names (#12)
jlperla Sep 26, 2020
7704013
added change suggested by #10
torfjelde Sep 26, 2020
e3d6a27
added Dates to deps as pointed out in #13
torfjelde Sep 29, 2020
7684e1e
Fixed a small typo (#14)
arm61 Nov 7, 2020
1a4bbc3
added julia version to compat
torfjelde Nov 7, 2020
b2d0c69
Update README.md (#19)
cpfiffer Dec 18, 2020
69dd226
fixed confusing constructor for TensorBoardCallback
torfjelde Mar 13, 2021
ef0152b
Update Project.toml (#24)
cpfiffer Mar 13, 2021
8f0a49e
bumped Reexport version
torfjelde Mar 13, 2021
2f75e26
Fix the TagBot action (#25)
theogf Mar 15, 2021
1bb1c53
Allow keyword args (#27)
cpfiffer May 6, 2021
947b705
CompatHelper: bump compat for "Turing" to "0.16"
github-actions[bot] Jun 3, 2021
409e074
Merge pull request #28 from TuringLang/compathelper/new_version/2021-…
yebai Jun 3, 2021
bc66565
Bump version
cpfiffer Jun 9, 2021
a09c44a
version bump of Turing
torfjelde Aug 5, 2021
238fe4e
bump patch version
torfjelde Aug 5, 2021
5f73088
CompatHelper: bump compat for Turing to 0.18, (keep existing compat)
Aug 31, 2021
4bcb6a9
Update Project.toml
cpfiffer Sep 1, 2021
5beb2bc
Merge pull request #29 from TuringLang/compathelper/new_version/2021-…
cpfiffer Sep 1, 2021
146967f
CompatHelper: bump compat for Turing to 0.19, (keep existing compat)
Dec 14, 2021
9aedc19
Update Project.toml
cpfiffer Dec 14, 2021
e03bbd2
Move CI to 1.6
cpfiffer Dec 14, 2021
d8e13dd
Merge pull request #30 from TuringLang/compathelper/new_version/2021-…
cpfiffer Dec 21, 2021
f9e97b4
CompatHelper: bump compat for Turing to 0.20, (keep existing compat)
Feb 4, 2022
8c36e24
Update compat bounds, CI and docs (#33)
torfjelde Feb 5, 2022
3427397
Merge pull request #32 from TuringLang/compathelper/new_version/2022-…
yebai Feb 6, 2022
5fb5fd3
Update .github/workflows/ci.yml
yebai Feb 6, 2022
13a7dfb
Merge branch 'master' into cpfiffer-patch-1
yebai Feb 6, 2022
06eeacc
Merge pull request #31 from TuringLang/cpfiffer-patch-1
yebai Feb 6, 2022
b067131
CompatHelper: bump compat for Turing to 0.21, (keep existing compat)
Mar 16, 2022
6f186fc
Merge pull request #34 from TuringLang/compathelper/new_version/2022-…
yebai Mar 16, 2022
ecffca1
Update Project.toml
torfjelde Jun 13, 2022
1e97f0e
CompatHelper: bump compat for DocStringExtensions to 0.9, (keep exist…
github-actions[bot] Dec 9, 2022
66a352f
Update Project.toml
torfjelde Dec 9, 2022
515ef9b
Update Project.toml
torfjelde Dec 9, 2022
96af50f
Make Turing.jl an optional dep (#36)
torfjelde Feb 23, 2023
a929818
Improved docs (#37)
torfjelde Feb 24, 2023
d025974
make param_prefix and extras_prefix customizable and fix capturing of…
torfjelde Feb 24, 2023
44b806e
Update Project.toml
torfjelde Feb 24, 2023
486b984
added a MultiCallback (#39)
torfjelde Feb 24, 2023
fbe1c21
Fix typos in docs
pitmonticone Jun 22, 2023
d9b2e48
Merge pull request #41 from pitmonticone/master
yebai Jun 23, 2023
71b04e9
loosen the logger type in TensorBoardLogger from TBLogger to Abstract…
KDr2 Jul 6, 2023
1ee8b18
Update Project.toml
yebai Jul 6, 2023
61271e5
docs update
KDr2 Jul 6, 2023
cee6b02
add `TuringCallbacks.increment_step!`
KDr2 Jul 7, 2023
2e9de56
Update Project.toml
yebai Jul 8, 2023
6473445
Merge pull request #42 from TuringLang/logger-type
yebai Jul 8, 2023
0b0d155
Bump Turing.jl compat + allow recording of hyperparameters (#46)
torfjelde Sep 18, 2023
79a053b
Bump compat entry for Turing.jl (#51)
torfjelde Apr 23, 2024
e9a15b4
bump Turing.jl compat entry (#52)
torfjelde May 18, 2024
04ca802
CompatHelper: bump compat for Turing in [weakdeps] to 0.32, (keep exi…
github-actions[bot] May 25, 2024
3080ec6
CompatHelper: bump compat for Turing in [weakdeps] to 0.33, (keep exi…
github-actions[bot] Jun 11, 2024
1039999
Update Project.toml
yebai Jun 11, 2024
5b65c25
Create DocsNav.yml
yebai Jul 4, 2024
d385971
Rename .github/workflows/.github/workflows/DocsNav.yml to .github/wor…
yebai Jul 4, 2024
d042edb
Update DocsNav.yml
yebai Jul 4, 2024
564f899
Update DocsNav.yml (#55)
shravanngoswamii Jul 14, 2024
706ce08
Documentation and Turing Navigation CI improvement (#59)
shravanngoswamii Feb 9, 2025
e1affc2
Default branch change (also updating owner, etc)
penelopeysm Mar 4, 2025
999bd3c
update to latest turing (#64)
penelopeysm Aug 8, 2025
f606cf7
CompatHelper: bump compat for Turing in [weakdeps] to 0.40, (keep exi…
github-actions[bot] Dec 26, 2025
2350dd6
CompatHelper: bump compat for Turing in [weakdeps] to 0.41, (keep exi…
github-actions[bot] Dec 26, 2025
a6b3468
CompatHelper: bump compat for Turing in [weakdeps] to 0.42, (keep exi…
github-actions[bot] Dec 26, 2025
1c22138
CompatHelper: bump compat for Turing in [extras] to 0.42, (keep exist…
github-actions[bot] Dec 26, 2025
e2f8345
Add 'TuringCallbacks/' from commit '1c2213821c0c66a3132cbd1fe4569a843…
shravanngoswamii Mar 11, 2026
622fd53
update CI and urls
shravanngoswamii Mar 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
pkg:
- name: TuringBenchmarking
dir: './TuringBenchmarking'
- name: TuringCallbacks
dir: './TuringCallbacks'

steps:
- name: Build and deploy
Expand Down
16 changes: 16 additions & 0 deletions TuringCallbacks/.github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CompatHelper
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
32 changes: 32 additions & 0 deletions TuringCallbacks/.github/workflows/Docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Documentation

on:
push:
branches:
- main
tags: '*'
pull_request:

concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

permissions:
contents: write
pull-requests: write

jobs:
docs:
runs-on: ubuntu-latest

steps:
- name: Build and deploy Documenter.jl docs
uses: TuringLang/actions/DocsDocumenter@main

- run: |
julia --project=docs -e '
using Documenter: doctest
using TuringCallbacks
doctest(TuringCallbacks)'
39 changes: 39 additions & 0 deletions TuringCallbacks/.github/workflows/DocsNav.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Rebuild docs with newest navbar

on:
# 3:25 AM UTC every Sunday -- choose an uncommon time to avoid
# periods of heavy GitHub Actions usage
schedule:
- cron: '25 3 * * 0'
# Whenever needed
workflow_dispatch:

permissions:
contents: write

jobs:
update-navbar:
runs-on: ubuntu-latest

steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Insert navbar
uses: TuringLang/actions/DocsNav@main
with:
doc-path: '.'

- name: Commit and push changes
run: |
if [[ -n $(git status -s) ]]; then
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git add -A
git commit -m "Update navbar (automated)"
git push
else
echo "No changes to commit"
fi
15 changes: 15 additions & 0 deletions TuringCallbacks/.github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: TagBot
on:
issue_comment:
types:
- created
workflow_dispatch:
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
runs-on: ubuntu-latest
steps:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
ssh: ${{ secrets.DOCUMENTER_KEY }}
42 changes: 42 additions & 0 deletions TuringCallbacks/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI
on:
push:
branches:
- main
pull_request:

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read

# Cancel existing tests on the same PR if a new commit is added to a pull request
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest

steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: "1"
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v5
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
5 changes: 5 additions & 0 deletions TuringCallbacks/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.jl.*.cov
*.jl.cov
*.jl.mem
/docs/build/
Manifest.toml
21 changes: 21 additions & 0 deletions TuringCallbacks/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Tor

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
34 changes: 34 additions & 0 deletions TuringCallbacks/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name = "TuringCallbacks"
uuid = "ea0860ee-d0ef-45ef-82e6-cc37d6be2f9c"
version = "0.4.4"
authors = ["Tor Erlend Fjelde <tor.erlend95@gmail.com> and contributors"]

[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
OnlineStats = "a15396b6-48d5-5d58-9928-6d29437db91e"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
TensorBoardLogger = "899adc3e-224a-11e9-021f-63837185c80f"

[weakdeps]
Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"

[extensions]
TuringCallbacksTuringExt = "Turing"

[compat]
DataStructures = "0.18 - 0.19"
DocStringExtensions = "0.8, 0.9"
OnlineStats = "1.5"
Reexport = "0.2, 1.0"
Requires = "1"
TensorBoardLogger = "0.1.22"
Turing = "0.39, 0.40, 0.41, 0.42"
julia = "1"

[extras]
Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
8 changes: 8 additions & 0 deletions TuringCallbacks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# TuringCallbacks

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://turinglang.github.io/Deprecated/TuringCallbacks.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://turinglang.github.io/Deprecated/TuringCallbacks.jl/dev)

A package containing some convenient callbacks to use when you `sample` in [`Turing.jl`](https://github.com/TuringLang/Turing.jl).

See the dev-docs for more information.
6 changes: 6 additions & 0 deletions TuringCallbacks/docs/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
TuringCallbacks = "ea0860ee-d0ef-45ef-82e6-cc37d6be2f9c"

[compat]
Documenter = "1"
17 changes: 17 additions & 0 deletions TuringCallbacks/docs/make.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using TuringCallbacks
using Documenter

makedocs(;
modules=[TuringCallbacks],
authors="Tor",
repo="https://github.com/TuringLang/Deprecated/blob/{commit}{path}#L{line}",
sitename="TuringCallbacks.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://turinglang.github.io/Deprecated/TuringCallbacks.jl",
assets=String[],
),
pages=[
"Home" => "index.md",
],
)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading