Coding
PromptBeginner5 minmarkdown
Nano Banana Pro
Agent skill for nano-banana-pro
7
- Root scripts:
Sign in to like and favorite skills
process_data.py (MAT → NPZ)analyze_data.py (stats + plots)train_koopman.py (Koopman model training; TensorBoard logging)test_data.py (unittest)AscTec_Pelican_Flight_Dataset.mat (raw), pelican_dataset.npz (processed).plots/ (generated histograms, safe to delete/regenerate)runs/ (TensorBoard logs, safe to delete/regenerate)python -m venv .venv && source .venv/bin/activate.pip install numpy scipy matplotlib.pip install tensorboard tensorboardX torch (pick a CUDA build that matches your driver if using GPU).python process_data.py (creates pelican_dataset.npz).python analyze_data.py (prints stats, writes PNGs to plots/).python train_koopman.py --tb-logdir runs --run-name demopython train_koopman.py --short-run --subset-size 4096 --max-train-steps 50 --max-val-steps 20 --scale-steps 100 --epochs 1 --log-every 1python train_koopman.py --device cuda --gpu-id 0tensorboard --logdir runspython -m unittest -v or python test_data.py -v.snake_case.py; functions/variables snake_case; classes CapWords.unittest (stdlib). Add tests as test_*.py at repo root or a tests/ folder.process_data.py runs before tests; fail fast with clear messages.process: transpose matrices in parser.pelican_dataset.npz and plots/*.png when unnecessary; consider adding them to .gitignore for local workflows.runs/ (TensorBoard) and any wandb/ directories are local artifacts and should not be committed..mat file.Euler uses roll, pitch, yaw in radians, ordered [roll, pitch, yaw].[w, x, y, z] (unit-norm) when using quaternions.PelicanTransitionDataset(..., orientation="euler") returns Euler instead of quaternion; state size becomes 12D [pos(3), euler(3), vel(3), pqr(3)].--device {cpu|cuda} and --gpu-id N--batch-size, --latent-dim, --lr, --weight-decay, --epochs, --log-every--orientation {quat|euler}--short-run, --subset-size, --max-train-steps, --max-val-steps, --scale-steps--eval-progress-every N, --eval-log-every N--tb-logdir runs, --run-name NAME, --tb-flush-every N