 |
|





 |
|
 |
 |
 |
 |
|
 |
 |
Once again I find myself frantically finishing up a paper with a fast approaching submission deadline. To that end, I'm banging on ancient C++ to add new functionality to be exercised for the paper. As part and parcel of adding this functionality, there are associated new command line options: ./build/default/gecco11 : [-a string] [-v] -d # -g # -p # -c # -s # -l # -u # -z # [-o outfile] [-a C4.5 arguments] -p parents -c children -g generations -T t|b for truncation survival selection vs. binary tournament survival selection -L landscape [1-5] 1-5 : F1-F5 -l lower bound -u upper bound -E number of iterations for just evolutionary algorithm -M number of iterations for just machine learning operator -d delta generation pertubation value -q number of generations to keep rules -e epsilon, or selection pressure for rank rule selection -r run number -m gaussian mutation probability -s gaussian mutation scale factor -S mutation scale type <uniform|gaussian> -P population hi/lo percentage -o output file -v verbose -z genome length
The number of command line options is approaching that of the dreaded ls command with its impressive alphabet soup of command line switches. (Of which there are 66. I just counted.) Some of this complexity is hidden behind a set of scripts I use to kick off experiments; but the sheer number of command line arguments makes writing and maintaining these scripts cumbersome and error prone. If I had this to do all over again, I'd go with parameter files. Not only would this encapsulate a large number of parameters, but would allow them to be easily documented. And they can be freely copied and re-used. So a parameter file would look something like this: # parameters for second ECTA 2011 experiment genome_length = 5 fitness_landscape = spheroid parents = 50 children = 50 lower_bound = -3 upper_bound = 4 EA_iterations = 0 ML_iterations = 1 hi_lo_percentage = 0.3
This is a near ubiquitous parameter file format. Comments are denoted by '#'s, and parameters with their respective values are simple "string, '=', value" triplets. Indeed, there exist a number of libraries for reading and writing these kinds of files if you're too lazy to roll your own. I think the rule of thumb should be that if you can guarantee there'll be less than, say, five command line switches, and that they're not likely to change, go with that. If it's possible that there'll be more, and that the number of run parameters may grown monotonically over time, then prefer to use parameter files, instead. Tags: programming, school, tips
|
 |
 |
 |
 |
|
 |
 |


 |
|
 |
 |
 |
 |
|
 |
 |
So, I have to move in a month, which is awkward as that is round the time of my PhD comprehensive exam and thesis proposal defense. Fortunately I was able to offset my move-out date a week after the current scheduled exam and defense date, though I fear there's a chance I may have to bump up the exam and defense date up a week to more adequately prepare. In any case, because I'm frantically trying to finish my proposal and study for the exam, I don't have much disposable time to thoroughly search for an optimal home. Fortunately a few options have come my way, which I've summarized in the table below: | | | | | | | | | . | Location | Rent | Size | Bathroom | Utilities | Parking | Pros | Cons | . | Oak Knolls Apartments | $895/mo | efficiency | yes | included | yes | Off cue line. Have own place. Can easily bike to school. No need to pay for GMU parking. Near friends. Can place all furniture. | Run down. Two vehicles? Top of price range. May not make minimum monthly salary. | . | MasonVale | $860/mo | room | shared | included | sorta, truck will have to go in overnight parking | On campus! Can walk everywhere. | Unknown room-mate. Space for office? Sofa? TV? | . | MasonVale | $882/mo | master bedroom | shared | included | sorta, truck will have to go in overnight parking | On campus! Can walk everywhere. Closet is huge; large enough for office! Have own bathroom! | Not available until 1/13. Unknown room-mate. Sofa? TV? | . | Cosmo | ?? | room? | own? | included? | Two vehicles might be problem | Cheap. Friend known quantity. | Further from campus. | . | Caitlin | $600/mo | room | Shared | included | Two vehicles might be problem | Cheap. Friend known quantity. | Landlord not known quantity. Further from campus. Landlord a neatnik. Ew, shared shower? What about my furniture? Office space? |
|
I'm leaning towards the MasonVale apartment that becomes available on 12/4 as that's a week before my 12/11 move out date. So that gives me a week to pack and shuttle what I can carry myself before I have to get help to shift the heavy stuff. I'm worried about the home office. I may have to put the desk in storage. And I'm also worried about my TV and sofa. I can't put the desk, tv, *and* sofa in storage! At the very least I need to eyeball Cosmo's and Caitlin's options. I should stop by Caitlin's place tonight to talk to the land lord and look it over. I'll have to ping Cosmo about a good time to stop by to see the room and discuss details. So, I'm looking for input here. Anyone have suggestions or comments?
|
 |
 |
 |
 |
|
 |
 |


|
 |
|
 |