tweak: experiment with nimble file, add deps to makefile.

This commit is contained in:
NunoSempere 2023-05-24 17:12:15 -07:00
parent 73372ad2ab
commit 34fb95ff37
3 changed files with 32 additions and 9 deletions

View File

@ -0,0 +1,15 @@
# Package
version = "0.1.0"
author = "NunoSempere"
description = "A nimble package which showcases a few toy versions of bayesian updating under constrained compute"
license = "MIT"
srcDir = "src"
bin = @["compute_constrained_bayes"]
# Dependencies
requires "nim >= 1.6.12"
requires "https://github.com/treeform/print"

View File

@ -1,14 +1,11 @@
## Dependencies ## Dependencies
nimble install https://github.com/nim-lang/bigints
https://nimdocs.com/nim-lang/bigints/bigints.html
nimble install print nimble install print
https://github.com/treeform/print https://github.com/treeform/print
## Dependencies ## Dependencies
The data folder is not included, but its contents are: The data folder is not included, but its contents are:
. .
├── data ├── data
│   ├── stripped │   ├── stripped
@ -16,9 +13,13 @@ The data folder is not included, but its contents are:
Where stripped.gz can be found at <https://oeis.org/wiki/JSON_Format,_Compressed_Files> Where stripped.gz can be found at <https://oeis.org/wiki/JSON_Format,_Compressed_Files>
## Gotchas
Nimble doesn't play well with relative directories. Ignore and use make instead?
## To do ## To do
- [ ] Exploration of OEIS data - [x] Exploration of OEIS data
- [ ] Subdivide subsequent tasks into steps - [ ] Subdivide subsequent tasks into steps
- [x] Simple prediction of the next integer - [x] Simple prediction of the next integer
- [x] Simple predictions v1 - [x] Simple predictions v1
@ -26,11 +27,15 @@ Where stripped.gz can be found at <https://oeis.org/wiki/JSON_Format,_Compressed
- [-] Maybe add some caching, e.g., write continuations to file, and read them next time. - [-] Maybe add some caching, e.g., write continuations to file, and read them next time.
- [ ] JIT Bayesianism: - [ ] JIT Bayesianism:
- [x] Function to predict with a variable number of hypotheses - [x] Function to predict with a variable number of hypotheses
- [ ] Function to start predicting with a small number of hypotheses, and get more if the initial ones aren't enough. - [x] Function to start predicting with a small number of hypotheses, and get more if the initial ones aren't enough.
- [ ] Add the loop of: start with some small number of sequences, and if these aren't enough, read more. - [x] Add the loop of: start with some small number of sequences, and if these aren't enough, read more.
- [ ] ... - [x] Clean-up
- [ ] Infrabayesianism x1: Predicting interleaved sequences - [ ] Infrabayesianism
- [ ] Infrabayesianism x1: Predicting interleaved sequences.
- Yeah, actually, I think this just captures an implicit assumption of Bayesianism as actually practiced.
- [ ] Infrabayesianism x2: Deterministic game of producing a fixed deterministic prediction, and then the adversary picking whatever minimizes your loss - [ ] Infrabayesianism x2: Deterministic game of producing a fixed deterministic prediction, and then the adversary picking whatever minimizes your loss
- I am actually not sure of what the procedure is exactly for computing that loss. Do you minimize over subsequent rounds of the game, or only for the first round? Look this up.
- Also maybe ask for help from e.g., Alex Mennen.
- [ ] Write the actor - [ ] Write the actor
--- ---

View File

@ -4,6 +4,9 @@ VERBOSE=--verbosity:0
build: compute_constrained_bayes.nim build: compute_constrained_bayes.nim
nim c $(VERBOSE) compute_constrained_bayes.nim nim c $(VERBOSE) compute_constrained_bayes.nim
deps:
nimble install print@1.0.2
run: compute_constrained_bayes run: compute_constrained_bayes
./compute_constrained_bayes $(VERBOSE) ./compute_constrained_bayes $(VERBOSE)