-
Rules-based contents results
I’ve decided to first run all the rules-based players by themselves, then do LLMs after that (time-permitting). Here are the official rules-based-players-only results (I ran 50 simulations for 500 iterations each, and averaged all the results): Player Avg winnings Avg node degree Aᵀ 626.181 11.61 Smooth Criminal 625.379 8.02 suspiciouslyOdd 618.934 2.28 Pocoyo 552.462 7.50…
-
Contest update
Stephen’s trying sooooo hard to complete a fair contest before final grades are due at noon tomorrow… The good news is that only a couple of players (Garrett and Belen: tsk, tsk) are crashing my simulator with errors. The bad news is that when I run everyone’s rules-based and LLM players against each other, it…
-
Silver reflection papers graded
I finished grading the reflection papers and will return them at the final exam today. Let me just say that a number of these were truly outstanding analyses. I feel like I learned as much from some of these papers as I did from Nate’s book itself! Everyone got at least 40XP from these, and…
-
Point of clarification
I know that those who haven’t had CPSC 240 are wrestling a little bit with this whole notion of “writing a class that has methods which some other code (not written by you) will call.” So just to clarify: Nowhere in your code will you call any of the following methods: .decide_against() .inform_foaf() .request_rewire() Instead,…
-
Quiz #4 goof
A diligent and sharp-eyed student studying for the final discovered that there was an error on Quiz #4, problem 6: the “number of nodes desired” absolutely is a parameter of Watts-Strogatz random graphs, but the quiz did not have this marked as a correct answer. So, I gave the whole class an XP in recompense…
-
Charges/bonuses now in play
I was slow, so suspiciouslyOdd enhanced the IPD simulator with the as-per-agreed-upon-rules charges/bonuses now correctly levied. git pull to get the updated simulator.
-
Charges/bonuses for .inform_foaf() choices
Several students have noticed and (understandably) complained that the currently simulator doesn’t actually levy the charges for (1) asking a neighbor for foaf information ($1 charged), and (2) lying in your foaf information ($.5 charged), nor does it give a bonus $1 for providing correct foaf information. This will be coming soon, as soon as…
-
The “node” property
I’m getting a couple (good) questions about how to compute the node ID (in the IPD graph) for a particular agent. Some of you have discerned that the node ID seems to be equal to the agent’s unique_id minus 1. You can’t count on this, though, since Mesa leaves open the possibility that it will…
-
Homework #8 posted!
Well, the calendar isn’t being very friendly. I’m trying to juggle when I make homeworks #7 and #8 due, in order to maximize (1) the amount of time you guys have to work on them and also (2) the probability of me actually being able to run a complete simulation by the time final grades…
-
Homework #7 posted!
Homework #7 has been posted at last. I decided to split this IPD Tournament into two parts: the rules-based agent phase and the LLM-based agent phase. That latter will be called “homework 8,” and will be posted later in the week, and will be worth up to an additional +40XP (Another bonus opportunity from Stephen!)…
-
Back of the envelope
I just ran my woosy LLM player (not a long prompt, not very involved logic) on my CPU/GPU in a 10-round IPD game against 25 opponents. That agent’s node had a degree of 6 throughout. On my system, taking no special steps to do anything fast, this took 3 mins 40 secs. Assuming linearity (possibly…
-
Quiz #7 (bonus!) posted!
Quiz #7, an unexpected opportunity for you to earn more points, has been posted and is due on April 25th.
-
Quiz #6 posted!
Quiz #6 has been posted! It is due midnight April 20th, but do not smoke weed while taking it. It is open-book, open-notes, and open-calculator (you’ll need one), and timed at 63 minutes. Good luck!
-
surg_par.py posted
Apparently I forgot to push the parallelized version of the BVM code from last week; it is now in the github repo, in the file surg_par.py.
-
IPD tournament rule preferences
Your ideas are solicited for how the following aspects of the IPD rulebook should be specified: What kind of random graph should the agents be put on at the start of the game? And what should the nodes’ average degree be when play starts? How many rounds should the game last at minimum? Once the…
-
Congratulations, Miranda!
Wow, congratulations to Miranda for being singled out for this honor!
-
How I’m feeling
My recovery is going quite well so far, but all the same I think I need another slow day before I’m ready to re-enter the rat race which is UMW campus. So office hours are canceled for Monday, April 13th, but I plan on resuming class and office hours as scheduled on Tuesday, April 14th,…
-
Surgery success
For anybody following this developing story, my surgery seems to have gone well and the doctor is pleased. He did think, however, that Tuesday might be too aggressive to plan on a return to the classroom. I’m going to see how I feel. I might come in that day if I feel good enough (and…
-
batch_run() code
Here’s the example we did in class of using batch_run: from mesa.batchrunner import batch_run … your amazing simulation model here … params = { “N”: 150, “leave_prob”: np.arange(0,1,.1), “edge_prob”: np.arange(0,.5,.1), “prob_blue”: 0.5, “fig”:None, “ax”:None, “do_plot”:False, “seed”:None, } if __name__ == “__main__”: results = batch_run( model_cls=Society, parameters=params, rng=range(10), max_steps=None, data_collection_period=-1, number_processes=None, ) print(pd.DataFrame(results).groupby([‘leave_prob’,’edge_prob’])[‘Step’].mean()) This is the…
-
Praise God!
Aetna came through at the eleventh hour today, and said they would cover my surgery. So I’ll be under the knife tomorrow morning bright and early, and will be canceling all my campus appointments (including class and office hours) for this week. If all goes well, I’ll be back in the saddle on Monday, and…
-
Python on the cpsc server
A few people have inquired as to whether they can do homeworks 5 and 6 on the cpsc server. The answer is yes, with two caveats: Do realize that like all remote servers, the cpsc server is “headless,” meaning you get a command line to it but no graphical display. Thus you won’t be able…
-
Homeworks #5 & #6 posted!
Homeworks #5 & #6 have been framed as one large, combined assignment, and are worth +80XP together. Even though this monster consists of two related-but-separate parts (which you can attack in either order) you’ll be turning in just one submission, as the assignment explains. Observation: if procrastinating on a big assignment is bad, procrastinating on…
-
Class graph data posted
I’ve posted the raw data for the class graph in two edge lists: class_graph.csv — the original “people whose names you remember” graph class_graph_less_dense.csv — the second “people you’ve had a conversation with” graph Each one of them contains rows with two comma-separated entries: the rememberer, and the remembered. networkx can load such a .csv…
-
Ah, that’s better
Using the “have had a conversation with” criterion, our class graph looks a lot more manageable (click to enlarge): And here’s the degree distro:
-
Office hours tweak – Tues 3/31
On Tuesday (tomorrow), office hours will be: Online, instead of in person (see Canvas for the usual Zoom link), and 10:30-11:30am instead of the usual 10-11am.
-
The TitForTat challenge
Clone this repo: https://github.com/divilian/IPD-LLM and run the program as follows (for instance): $ python cli.py 150 \ –agent-fracs TFT 0.3 Mean 0.3 Sucker 0.4 \ –p-same 0.1 –p-diff 0.01 \ –num-iter 100 –plot You can run “python cli.py -h“, too, to see all the command line arguments and what they mean. Bonus points to anyone…
-
Quiz #5 posted!
Quiz #5 has been posted to Canvas, and is due as the month of March expires. It’s timed at 60 minutes and otherwise has all the normal rules. Good luck!
-
Too dense
You guys did a really good job of remembering each others’ names. Clearly this was the wrong bar to set for creating an edge in our class graph, because the thing is super dense (click to enlarge): I’d like to get a more meaningful graph for analysis. So, since I’m giving away XP like candy,…
-
Masters Program at VA Tech
If you’re interested in pursuing a masters degree at Virginia Tech, consider checking out this information session about the program.
-
Reflection paper assignment
I’ve now posted the reflection paper assignment I promised, and I hope many of you will consider completing it. It’s due in a month, so this should give you plenty of time to get your creative juices flowing and to digest many things that are in the book. One word of warning: grading for this…
-
Homework #4 posted!
Homework #4 is posted, and is due next week. There will be no extensions to this one, so don’t expect one. Time to get started!
-
House Davies: the next generation
Click for a close-up! What do people think Samuel is doing in the picture? Here are the results:
