Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 1 addition & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.12' # minimum supported (Octopus requires Julia ≥ 1.12; see Project.toml [compat])
- '1' # latest stable 1.x
- '1.12' # only supported version: Julia 1.13 needs a newer Reactant, which needs CUDA/cuDNN versions GraphNetCore 0.4 does not allow
steps:
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
Expand Down
19 changes: 5 additions & 14 deletions .github/workflows/Documenter.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
name: Documenter

# Manual-only. GitHub Actions path filters match file paths, not diff content, so
# there is no way to trigger solely on docstring changes. Rather than rebuilding on
# every push/PR, the docs are deployed on demand from the Actions tab
# ("Run workflow"). Remember to run it after merging docstring or docs/ changes.
on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- 'docs/**'
- 'README.md'
- '.github/workflows/Documenter.yml'
tags:
- '*'
workflow_dispatch:

jobs:
build:
permissions:
Expand All @@ -41,4 +32,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
run: julia --project=docs/ docs/make.jl
run: julia --project=docs/ docs/make.jl
2 changes: 0 additions & 2 deletions .github/workflows/Format.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: format-pr
on:
schedule:
- cron: '0 0 * * *'
pull_request:
types: [ opened, reopened, synchronize, labeled, unlabeled ]
jobs:
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "GraphNetSim"
uuid = "5ff66f56-808c-48e7-ac84-dd29877231f8"
version = "0.2.0"
version = "0.3.0"
authors = ["Josef Jouaux <Josef.Kircher@uni-a.de>", "JT <julian.trommer@uni-a.de>"]

[deps]
Expand Down Expand Up @@ -79,7 +79,7 @@ Statistics = "1"
Test = "1"
Zygote = "0.6, 0.7"
cuDNN = "1.4 - 1"
julia = "1.12"
julia = "~1.12"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
</p>

[![Docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://una-auxme.github.io/GraphNetSim.jl/dev)
[![CI](https://github.com/una-auxme/GraphNetSim.jl/actions/workflows/CI.yml/badge.svg)](https://github.com/una-auxme/GraphNetSim.jl/actions/workflows/CI.yml)
[![codecov](https://codecov.io/gh/una-auxme/GraphNetSim.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/una-auxme/GraphNetSim.jl)
[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/JuliaDiff/BlueStyle)

Expand All @@ -23,7 +25,7 @@ The package is build upon [**GraphNetCore.jl**](https://github.com/una-auxme/Gra

## Requirements

- **Julia ≥ 1.12**
- **Julia 1.12** (Julia 1.13 is not supported yet; it needs dependency versions that GraphNetCore v0.4 does not allow)
- Built on [GraphNetCore.jl](https://github.com/una-auxme/GraphNetCore.jl) **v0.4**, which uses a
[Lux.jl](https://github.com/LuxDL/Lux.jl) `TrainState` and pulls in a CUDA-capable stack.
- A CUDA-capable GPU is recommended for training (falls back to CPU when CUDA is unavailable).
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ GraphNetSim = "5ff66f56-808c-48e7-ac84-dd29877231f8"
Optuna = "a5d0552b-b2dc-4f08-ac5c-85ca7d701b92"

[compat]
julia = "1.12"
julia = "~1.12"
66 changes: 65 additions & 1 deletion docs/src/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,70 @@ GraphNetSim.DerivativeTraining
GraphNetSim.BatchingStrategy
```

### Default Sensitivity Algorithm

`BatchingStrategy`, `SingleShooting` and `MultipleShooting` default their `sense`
keyword to the algorithm returned here.

```@docs
GraphNetSim._default_solver_sense
```

### Schedulers

Per-pass selection rules used by `DerivativeTraining` and `BatchingStrategy`
to choose which training unit (timestep or batch) is processed at each
inner iteration of a trajectory pass.

```@docs
GraphNetSim.Scheduler
```

#### Stateless and loss-buffer schedulers

```@docs
GraphNetSim.Sequential
GraphNetSim.Shuffled
GraphNetSim.WorstLoss
GraphNetSim.UniqueWorst
GraphNetSim.WeightedWorst
GraphNetSim.TopKWorst
GraphNetSim.EpsilonGreedy
GraphNetSim.PercentileWorst
```

#### Stateful schedulers (per-pass state)

These keep per-unit state in mutable fields and rebuild it at the start of every
trajectory pass, mirroring the training loop's fresh losses buffer.

```@docs
GraphNetSim.UCB
GraphNetSim.LearningProgress
GraphNetSim.Staleness
```

#### Annealing schedulers (global step counter)

These keep a step counter across the whole run instead of resetting per pass, so
their behaviour shifts as training progresses.

```@docs
GraphNetSim.ProgressiveHorizon
GraphNetSim.AnnealedWeighted
```

#### Gradient-pooling scheduler

Pools a window of neighbouring timesteps into a single gradient step. Supported by
`DerivativeTraining` only; `BatchingStrategy` rejects it because it already pools
temporally over its ODE interval.

```@docs
GraphNetSim.TemporalWindow
GraphNetSim.window_indices
```

## Normalization and Data Statistics

### Computing Normalization Statistics
Expand Down Expand Up @@ -134,4 +198,4 @@ GraphNetSim.vtk_to_hdf5
```@docs
visualize
visualize_eval
```
```
Loading
Loading