Showing posts with label patterns. Show all posts
Showing posts with label patterns. Show all posts

Friday, August 21, 2009

Bring the Controversy OR, Research Plan Update

Remember that plan I had to use a pattern classification algorithm to distinguish different eras of SF writing? I got some very lovely expressions of interest and support, but I didn't get the one thing that I needed: someone saying, "Why yes, here are one hundred Golden Age sf stories, all scanned in, digitized and proofread." And unfortunately, what with the new job, finishing grad school, and stepping up responsibilities at Strange Horizons, I'm not going to be able to do the scutwork required for this one. So that goes on the back burner.

So I thought about other research plans for next year. This is the second project I've had to scrap for lack of time, unfortunately. I thought about doing an author-overview of Greg Egan's short fiction, but I'm afraid that will actually be too hard, given the year I'm looking at. Unfortunately, writing pattern recognition algorithms is much easier for me than thinking deeply and writing coherently about patterns and themes in an author's work. So I had to go with my fall-back plan, which I hope will be entertaining for you all:

Can I write a pattern recognition algorithm that reliably distinguishes between fantasy and science fiction?

I know I'm asking for trouble, but this is one of the easiest research projects I can do. I'll limit the input data to short fiction from the last 5 years, so that I'll be mostly comparing apples to apples (and it will be relatively easy to find 100 stories of each type already online--that's the most important part). My feature set will be related to grammatical usage, to see if there are significant style differences between sf and fantasy. The initial training and testing sets will consist of 'core' sf and fantasy: pieces where no one would reasonably dispute their categorization. If it looks like a doubtful case, I'll save it for later. I may be tapping the hive mind to confirm my suspicions on occassion, also to see if any reasonable dispute arises. 50 stories of each set will be used to do feature selection and initial training, the other 50 will be the initial testing set.

If the results look promising on the testing set, then I'll start throwing boarderline cases at the algorithm, and see how it classifies some of the trickier stories. How will it classify "The Merchant and the Alchemist's Gate," for instance? That should yield some interesting results.

I want to be VERY clear here: if it is in any way successful in classifying the two (and I don't necessarily think it will be, see below), I will NOT be saying that "Thus X is fantasy and Y is science fiction, absolutely and forever, so mote it be!" This will be purely descriptive, not prescriptive, and will simply be another data point to use in the decades-long categorization debate. I'll be doing it because it's fun and relatively easy.

Why do I have any hope of success? Well, one of the last algorithms I wrote was for a grad school project. I asked it to distinguish between fiction and non-fiction using grammatical frequencies as the features. I was very surprised when it was able to correctly classify the two with 92% accuracy based on only 3 features. That's pretty amazing, frankly. Among the things it mis-classified: Ted Chiang's "Exhalation" initially showed up as non-fiction (it didn't in a revised version of the algorithm), a NY Times article on flooding in North Dakota showed up as fiction, as did a Michael Moore essay, and my reviewing manifesto showed up as fiction as well. It's the cases that break the algorithm that are always the most interesting, and I'm hoping that this little science project can contribute a little to the ongoing discussion. However, I'm totally prepared for there to be no significant difference at all; I have a suspicion that adventure writing is adventure writing, whether it uses swords or blasters. But that will be an interesting result all on its own.

I'll keep you posted as I go along. I plan to present the complete results at the 31st International Conference for the Fantastic in the Arts in March (assuming they approve my abstract--they may laugh it out of the conference). Feel free to throw suggestions (or short stories that have been previously published) my way! I want to make sure I get as diverse a sample set as possible.

Wednesday, July 8, 2009

Progress Report

Progress is being made on collecting a solid data set for the story-classification project. The recent switch from SciFi.com to SyFy.com has completely hosed the amazing archives that had been living there, but Google cache links came to the rescue. Here's what I've got in the main three categories so far: all of these stories are available online. I'm also willing to consider new categories or different splits, but with the provision that I have to be able to collect ~100 story data sets for each category that I examine--even with a movement as widespread as New Weird (which I wouldn't be able to use anyway, since I'm limiting the categories to stuff that's clearly science fiction) I'm not sure there are 100 short stories fitting the bill out there online. Still, thanks for all the suggestions and links! Keep them coming and I'll keep you posted!

The stories below have not been thoroughly vetted yet: some may be too long, or not properly sf. Let me know if I've made any gross mis-inclusions. Also, if you trip across *any* short stories online that fit these categories, (core sf, correct time period, under 10,000 words) please shoot me a link. With so few Golden Age & New Wave stories out there, it looks like I may be suffering through a lot of OCR for science.


Golden Age (1934-1955)
(17 stories)
Anderson, 1953, Security
Bester, 1953, Star Light, Star Bright
Boucher, 1943, They Bite
Brackett, 1940, Martian Quest
Brackett, 1941, Interplantary Reporter
Clarke, 1946, Rescue party
Heinlein, 1939, Life Line
Leinster, 1946, A Logic Named Joe
Matheson, 1954, Dance of the Dead
Miller, 1955, The Hoofer,
Padgett (Kuttner/Moore), 1945, Line to Tomorrow
Simak, 1955, Project Mastodon
Van Vogt, 1946, Child of the Gods
Smith, 1952, Scanners Live in Vain
Tenn, 1954, Party of the Two Parts
Weinbaum, 1934, Martian Odyssey
Wellman, 1941, Devil's Asteroid


New Wave (1964-1980)
(19 stories)
Aldiss, 1969, Supertoys Last All Summer Long
Blish, 1966, How Beautiful With Banners
Delany, 1967, Aye and Gmorrah
Disch, 1964, Minnesota Gothic
Disch, 1964, Descending
Effinger, 1973, New New York New Orleans
Effinger, 1976, Contentment Satistication, Cheer...
Harrison, 1970, By the Falls
Lafferty, 1965, Slow Tuesday Night
Malzberg, 1969, The Market in Aliens
Pohl, 1967, The Day the Martians Came
Russ, 1972, When it Changed
Saberhagen, 1967, Mr. Jester
Smith, 1967, Under Old Earth
Spinrad, 1967, Carcinoma Angels
Tiptree, 1973, The Women Men Don't See
Tiptree, 1969, Beam Us Home
Wilhelm, 1967, Baby You Were Great
Zebrowski, 1970, The Water Sculptor
Zelazny, 1967, Auto-da-Fe

Post-Cyberpunk (1990-Present)
(34 stories)
Asher, 2003, Watchcrab
Bacigalupi, 2005, People of Sand and Slag
Baxter, 2000, The Gravity Mine
Baxter, 2008, Last Contact
Bear, 2007, Tideline
Brin, 2000, Reality Check
Brotherton, 2009, The Point
Burstein, 2003, Paying it Forward
Chiang, 2008, Exhalation
Daniel, 1995, Life on the Moon
Doctorow, 2007, Printcrime
Egan, 2000, Only Connect
Gaiman, 2007, How to Talk to Girls at Parties
Goonan, 1995, The String
Gregory, 2005, Second Person Present Tense
Jones, 2007, The Tomb Wife
Kowal, 2008, Evil Robot Monkey
Kress, 2005, My Mother, Dancing
Landis, 1991, Walk on the Sun
Levine, 2005, Tk'Tk'Tk
Levine, 2007, Titanium Mike Saves the Day
McLeod, 2007, Who's Afraid of Wolf 359?
McDevitt, 2005, Henry James, This One's For You
Reed. 2007. The Hoplite
Resnick, 2000, Elephants on Neptune
Resnick, 2003, Robots Don't Cry
Resnick, 2008, Article of Faith
Reynolds, 1997, Spy in Europa
Rucker, 2006, The Third Bomb
Sawyer, 1998, The Hand You're Dealt
Scalzi, 2008, After the Coup
Swanwick, 2001, The Dog Said Bow-Wow
Swanwick, 2008, From Babel's Fall'n Glory We Fled
Utley, 1996, A Silurian Tale