-
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:
-
Schelling Segregation Model code posted
I’ve pushed the schelling.py program from today to the class github repo, as well as proof for Olivia that yes, Thomas Schelling’s name really does have a ‘c’ in it.
-
what a complete train wreck of a quiz
Quiz #4 contained multiple brain farts by yours truly, and so for a couple of the questions you may see your answer raised. In particular, my logical thinking failed me in numerous ways on the last problem, so I have given everyone the full 6 points for this question. I’ll explain in more detail in…
-
Quiz 4 answers
Be advised that at least one of the answers to quiz #4 is incorrect. I will fix that and make amends as soon as I can get to it. In the meantime, don’t freak out about it, and just wait patiently for a correction.
-
Homework #3 deadline
Since campus is closed tomorrow, homework #3 will be due Tuesday, March 17th at 5pm instead of tomorrow.
-
Office hours Monday (tomorrow)
Due to the campus closure, office hours will be on Zoom tomorrow at the usual time. The Canvas announcements have the Zoom link, which is the same as it’s always been for this class.
-
Quiz #4 posted!
Quiz #4 has been posted to Canvas. It is timed at 60 minutes, and is closed-all-the-usual-stuff. Although it is due on Wed, Mar 18th at midnight, it only covers class material up through this past week. So you can take it any time! Good luck!
-
ABM version of SIR model posted
The code from today’s class has been pushed to the class github repo. (sirabm.py).
-
Homework #3 extension
I’ve decided to postpone homework #3‘s due date from Friday to Monday, March 16th. That way I can expect excellent work!
-
Office hours virtual today
I will be holding Office Hours virtually (over Zoom) today, at the usual time (12-2pm). See the Canvas page for the Zoom link (which is the same Zoom link as always).
-
What you missed
I’ve posted my solutions to the reading check I meant to give on Thursday (but wasn’t ready in time) to the readings tab. Check out what you missed — all two pages!! :-O
