diff options
| author | y-jan137 <yousefjan24000@gmail.com> | 2026-03-18 09:56:29 +0300 |
|---|---|---|
| committer | y-jan137 <yousefjan24000@gmail.com> | 2026-03-18 09:56:29 +0300 |
| commit | 00cd5b38f26e40fbb0dd21e9682e9a9580fe3e78 (patch) | |
| tree | ad7000988a837bd3d141017e65cfa946f57a911d /include/spiral.h | |
| parent | 4659574b206eda0178fb1d92a43c3e843c23ca36 (diff) | |
Reformat
Diffstat (limited to 'include/spiral.h')
| -rw-r--r-- | include/spiral.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/spiral.h b/include/spiral.h new file mode 100644 index 0000000..5ed315e --- /dev/null +++ b/include/spiral.h @@ -0,0 +1,17 @@ +#pragma once + +#include "utils.h" +#include "dynmlp.h" + +typedef struct { + double **z0; + double **target; + int num_samples; +} Dataset; + +Dataset generate_spiral_dataset(int num_samples, double t0, double t1, + double noise_std, RNG *r); +void dataset_free(Dataset *ds); +double evaluate(const DynMLP *net, const double *theta, + const Dataset *ds, double t0, double t1, + double atol, double rtol); |