Update checklist commit hash
MoonBanditBench is a MoonBit library for strategy comparison and result export.
Project links:
It currently includes:
epsilon-greedy
UCB1
Thompson Sampling
LinUCB
This project fits the OSC2026/MoonBit competition well because it is:
bandit.mbt
contextual.mbt
report.mbt
cmd/main/main.mbt
bandit_test.mbt
contextual_test.mbt
Run the demo:
moon run cmd/main
Run tests:
moon test
The demo prints:
The CSV format is designed so it can be copied into spreadsheets or plotting tools.
This repository is intentionally kept in a public, readable shape:
All MoonBit source in this repository was written for this project from scratch.
The algorithm choices are standard bandit methods widely used in the literature and practice, but no upstream implementation code was copied.
After publishing the repository, replace this note with the actual GitHub URL used for review.
MoonBanditBench 是一个 MoonBit 示例项目,包含多种算法实现与结果展示。
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
MoonBanditBench
MoonBanditBench is a MoonBit library for strategy comparison and result export.
Project links:
It currently includes:
epsilon-greedyUCB1Thompson Samplingfor Bernoulli rewardsLinUCBfor contextual banditsWhy this topic
This project fits the OSC2026/MoonBit competition well because it is:
Repository layout
bandit.mbt: Bernoulli bandit environment and classic algorithmscontextual.mbt: linear contextual bandit environment andLinUCBreport.mbt: regret trace and CSV export helperscmd/main/main.mbt: demo entry pointbandit_test.mbtandcontextual_test.mbt: smoke testsUsage
Run the demo:
Run tests:
Output
The demo prints:
The CSV format is designed so it can be copied into spreadsheets or plotting tools.
Competition notes
This repository is intentionally kept in a public, readable shape:
Source provenance
All MoonBit source in this repository was written for this project from scratch.
The algorithm choices are standard bandit methods widely used in the literature and practice, but no upstream implementation code was copied.
Next expansion ideas
GitHub
After publishing the repository, replace this note with the actual GitHub URL used for review.