Category Archives: Idle Speculation

The Spoilers Awaken

This is my second post on The Force Awakens, this time with spoilers… (If you don’t want spoilers, you should go to the other post here: http://nayrb.org/~blog/?p=553)

From Anakin to Luke to Kylo Ren, the Star Wars movies are about the failed teaching of apprentices. It felt very poignant seeing the older Mark Hamil, with a beard, almost an echo of Alec Guinness’ haunted eyes. This suggests that movies VIII and IX may be the story of Luke Skywalker’s redemption as much as they may be Kylo Ren’s (in the same way that IV was Obi-Wan Kenobi’s redemption).

At the same time, it still feels like Luke ran away, at least it seems that way not knowing what has happened in the intervening time… Even if one of his students ran away and fell to the dark side, why would he not try again? What would make him flee that responsibility so resoundingly? Was it because he let his sister and best friends’ son fall to the dark side and kill all of his students?

Obi-Wan had more of an excuse, as the entire empire was after him, if he had stuck his head up, they would have sent out squads to kill him. But he had his redemption when he faced his fear/failed student.

“Fear is the path to the dark side. Fear leads to anger. Anger leads to hate. Hate leads to suffering.” -Yoda

So much fear on both their parts…You could say that the fear of Obi-Wan and Luke of their failed teaching and students led to much of the conflict in all seven movies so far…Who will break the cycle, to help adolescents actually grow up properly? (Or is this an endless part of the human condition?)

(It could also be, like Ty Templeton taught us in Comic Book Boot Camp http://comicbookbootcamp.com/, how you want to torture your heroes, to give them more depth, to give them more complex motivations, and in Star Wars, it’s often mistakes they’ve made in the past that they want to redeem.)

Speaking of redemption, it made Han Solo a much more interesting character to have him needing redemption for his perceived failures with his son. Also, this may be me projecting or reading things in, but it felt like there was some Harrison Ford wanting redemption for his terrible acting in the original trilogy. (Just after I wrote that, I read an article talking about how he re-wrote much of Han’s terrible dialogue to be more in tune with the character, and apparently also wanted Han Solo to die at the end of Jedi, to give the movie a ‘bottom’. So maybe it was the drama of Han Solo that he was trying to redeem, to finally give him some gravitas.) (Also, given how much he apparently put into the part, I feel bad complaining about his acting…Maybe it’s just that many actors are not that good at that age, or that directing has improved (or that George Lucas was much better at the art and setting than at script writing or directing actors*), or that he was being compared to Alec Guinness and Peter Cushing.)

Either way, fear and redemption is the catch phrase of Star Wars. Comment below!

*Apparently, Harrison Ford also contributed a lot to his character in American Graffiti, which was successful for George Lucas in part because he set the scene well with the setting and music from the period.

Solution Rotation

So, sometimes when someone asks me a question, I feel like I’m rotating through a number of possible solutions/solution types, like rotating through different options in a leather punch. https://www.google.com/search?tbm=isch&q=leather+punch

I first noticed this in a conversation with Garland Marshall, one of my favourite profs. at WashU: https://biochem.wustl.edu/faculty/faculty/garland-marshall. He’d asked me a question about how one would determine the structure of a binding site of a molecule too difficult to crystallize, too large to NMR, and impossible to get a structure with a bound ligand.

How do you come up with the structure of the binding site? I remember rotating through a number of different options, mostly focused on polling the ligand in various ways.

– Does this happen to other people?
– Is there a neuronal definition/description of this?
– What does this mean?
– Other types of analogies?

On the ‘neuronal pathway’ front, it could be something like activating different pathways in sequence, doing it manually, rather than letting your brain activate all of them at the same time, then aggressively pruning them (to save energy). So, you would actively control your thoughts, to try out each channel independently, and submit them to more rigorous logic, to make sure you hadn’t left anything out. Somewhat like taking the ‘mental shackles off’, asking an audience ‘what ideas would your most creative and silly friend have about what to do with a brick?’, rather than ‘what ideas would you have about what to do with a brick*?’

*This seems to have been adapted from the Torrance Tests of Creative Thinking https://en.wikipedia.org/wiki/Torrance_Tests_of_Creative_Thinking

Problem Solving Examples (With some Machine Learning)

So, in a previous post, (http://nayrb.org/~blog/2015/12/25/automation-and-machine-learning/), we talked about some methods to help you decide whether you actually needed Machine Learning or not to solve your problem. This post talks about some various different problem solving approaches and which types of problems they can make tractable.

I started my career fascinated by protein folding and protein design. By the time I got there, they had narrowed the question down to one of search: ‘Given this physics-based scoring function, how do I find the optimal configuration of this molecule’? There were a number of different techniques they were using: gradient descent, monte carlo, simulated annealing, but they all boiled down to finding the optimal solution to an NP-Complete problem.

As we know that biological systems can perform protein folding quickly, there must be some algorithm which can do this (even if it means simulating each individual electron). This can then be restated as a simulation/decision question, from the perspective of a cell/physics. Many other search problems have similar human-like or physics-like easier solutions (ways of finding the NP-Complete verifier). For example, as a traveling salesperson, you would look at the map, and be able to narrow down the routes to some smaller number, or be able to quickly narrow down the options to a small number of sets of routes.

In many ways, this is the ‘holy grail’ of Machine Learning, the ability for a machine to step away from what we tell it, and to be able to solve the problem in a more direct way. Heuristics are an attempt to solve this problem, but they’re always somewhat rules-based.

Next is clustering, best used for differentiating between different groups of things so that you can make a decision. My favourite is ‘Flow Cytometry’ https://en.wikipedia.org/wiki/Flow_cytometry, where you’re trying to differentiate different groups of cells, basically through clustering on a 2-D graph of the brightness of various fluorescent cell markers.

Customer persona clustering is another example, such as you might do for segmentation, where standard groups like age or location would not be good enough.

Machine Learning problems such as the Netflix challenge http://www.netflixprize.com/, where you want a large degree of accuracy in your answer, require the use of a number of techniques. (The problem was to take a list of customer movie ratings and predict how those customers would rate other movies.)

First, you need to clean and normalize the data. The authors were also able to separate the general opinion of each movie from the specific opinion each person had about each movie. (Each of these was about as important to the overall result.) Each of these normalizations or bias removals would likely have been done with some form of machine learning, suggesting that any comprehensive usage would require multiple pipelines or channels, probably directed by some master channels* learning from which of them were the most effective.

I wonder how much of what we do as humans involves breaking down the problem, to divide and conquer. When we’re asked for a movie recommendation, do we think of good movies first, then what that person would think of? Personally, I feel I get my best results when I try to put myself in that person’s shoes, suggesting there may be a long way still to go.

Perhaps looking at groups of movies, or some sort of tagging, to get at whatever ‘genes’ may be underneath, as you may like certain things about movies which are only imperfectly captured by how people like them similarly. (Or perhaps, the data is big enough to capture all of this. It’s fun to speculate. 😀 )

*This suggests a hierarchy, which is only one way of seeing the structure. Other views are possible, but outside the scope.

Automation and Machine Learning

When we ask a computer for help with a task, what are we asking for?

1) Help with automating a repetitive task
2) Help with a decision

1) Help with automating a repetitive task
There are various ways you can automate a repetitive task. You can:
a) Ask your computer to do the same thing again and again, regardless of input (display the home page)
b) Give it some simple rules to follow (if they try to navigate to a non-existent page, show them a 404)
c) Give it some complex or not fully understood rules to follow (based on our tests, these are the solutions you should attempt, in this order)
d) Give it inputs, and have it adapt (‘Watch me perform this industrial assembly task, now you do it’)

2) Help with a decision
There are various different ways you can use a computer to help with a decision. You can:
a) Display data in various interesting ways (Data Visualization)
b) Give it the data and some rules to follow (Standard decision automation)
c) Give it the data and a desired output/scoring function (Supervised/Reinforcement Learning)
d) Give it the data and nothing else* (Unsupervised Learning)

This is somewhat of a false dichotomy, as adding new types of decisions allows more and more automation.

– Search (inputting words, pictures, video into a search engine and asking for a result) generally started with 2.a) (Data Display), and seems to be trying to move up the decision hierarchy, anticipating questions and the rules the user would want it to follow. This seems to be generally done with statistics, but I expect this would be switching over to pattern-finding neural nets
– Clustering (throwing a bunch of data into the hopper and getting groupings back) is also mostly in the Data Visualization bucket. It could also be an input into a machine learning algorithm, which would then be trained to make decisions based on these clusters
– Machine Learning (giving a bunch of data and getting a decision or pattern out) can be used for most or all of the options above, and similar to how computers have gotten ‘fast enough’, Machine Learning is becoming ‘good enough’ or ‘easy enough’ to replace many of the above.

So, as a human, when do you choose each of these? Assuming the options get more difficult going down the list, you would:

1) Start by googling various things (mostly to see what has been done before***).
2) You could then look at the data, clean it, and try clustering it into groups, to see if any of them made sense for the decision you wanted to make.
3) If neither of these worked, or if you wanted more, you could derive a scoring function for the output you wanted, then supply a Machine Learning algorithm with a substantial amount of data, and see how optimal it could make the decision.
4) If you don’t even know what decision you want, or are having difficulty making a scoring function, you could throw the data into an unsupervised learning hopper and see what comes out.

At each of the steps above, you can hive off parts and automate them, either using rules derived from the patterns you’ve found, or using flexible rules from the Machine Learning algorithm. You may find you can accomplish most of your task without having to resort to complex or incompletely understood algorithms.

More examples in subsequent posts. Stay tuned. As you can tell, the categories above have not fully crystallized.

*Unsupervised Learning has a number of levels** in it, such as ‘Find Features’, ‘What is the Question?’, ‘Why?’, etc…

**Not that everything is hierarchical, but this is convenient for discussion

***This is the ‘literature review’ portion of anything we do now

‘Machigne’

Aside from being an excellently cromulent word, ‘machigne’ is what I often type when attempting to type ‘machine’. It seems to be because the ‘g’ allows for all of the transitions between letters to go from left hand to right hand and back:

machine: l,r,l,r,l,l,r*
machigne: l,r,l,r,l,r,l,r

*Note that this was really difficult to type, as it involved using one of the weakest fingers for two consecutive characters (‘l’, ‘,’).

Personal Character Classes

Around the internet, you will find many quizzes which purport to tell you which archetypical ‘character class’ you most belong to. As you would expect, many of these quizzes are clickbait, and even if they weren’t, it’s relatively unlikely that the authors would have taken the time to poll some ‘gold standard*’ group of people to a statistically significant degree.

I’ve been (very slowly) taking a different tack. The plan was to write a story written from the perspective of a character falling into each each of each of the archetypes, to see which one(s) spoke to me the most**,***.

The first installment, ‘Druid’ currently has two parts available here:

Druid

Barriers

*It does seem somewhat absurd to have a ‘gold standard’ of correctness for which fictional archetype one best fits into, but what can you do?

**The best analogy for this for me comes from the struggles of the protagonists in the Modesitt books ‘The Magic of Recluce’ and ‘The Magic Engineer’, where they say things out loud and see how their internal mental map/conscience twinges to see how true they are. Another analogy is presented by Paul Graham here: http://www.paulgraham.com/essay.html where he talks about ‘essays’ being trying out ideas in written form to see how well they work.

***Note that this does not get into issues of differences between what you feel as a person vs. what type of character you would play in a game.

“That’s Not Funny!”

Scene: I’m in a conversation with two students, one male, one female, probably high school age.

The male student says: “How many feminists does it take to screw in a lightbulb?”
Me, not missing a beat: “That’s not funny!”
Female student: “Yes!”

For those of who don’t see the joke, “That’s not funny!” is often the punchline to “How many feminists does it take to screw in a lightbulb?, playing on the perception of the sense of humour of feminists and feminism*.

As it turns out, both parties took my comment at face value (which was mostly what I intended), and it turned into a small teachable moment.

*This feels like a whole long discussion, mostly sad, about how people felt that making ‘punching down**’ jokes about women no longer socially acceptable was a ‘bad thing’. I feel like much has been said about this, and I have nothing useful to add.

**Perhaps more interestingly, it feels like this whole concept was aired and discussed long before the words ‘punching down’ (meaning making fun of those less fortunate or less privileged) entered the vernacular.

Tenagra, on the Ocean

Pooh and Piglet at Tanagra
“Pooh?” said Piglet.
“Yes, Piglet?” said Pooh.
“Darmok and Jalad at Tanagra,” said Piglet.
“Shaka, when the walls fell.” said Pooh.
Pic by Cathy Wappel
Words by Michael G Munz

The above pic came across my fb feed this morning.

Some random thoughts about this.

1) There exists this subreddit: https://www.reddit.com/r/Tenagra/ which is, in the internet way, developing a similar-type language.

2)

TEXT OF COMIC:
Hi, Abby. How are you?
Spock’s response to his mother’s question at the end of The Voyage Home.
Huh? What’s up with your communication skills today?
The aliens in “Darmok and Jalad.”
You’re… communicating only in obscure references to Star Trek.
Decker’s answer to Kirk saying “You saved the ship” in The Motion Picture.
And WHY exactly are you doing this?
The 74th Rule of Acquisition.
“Knowledge equals profit?” Okay, what the heck are you trying to build your knowledge for?
Kirk’s exclamation after Spock’s death.
Oh, that’s right. You’re going to a con.
MOUSEOVER TEXT: whenever I want to get laid, I just tell John ‘Spock in Amok Time’ and he knows EXACTLY what I mean
http://www.johnanderikaspeak.com/an/2012/05/12/1168/

3) The title of the post is somewhat ambiguous. It could be a reference to Dylan Thomas’ ‘A grief ago’, in its use of parts of speech, saying something deep about Tenagra, and the myths behind it leaving us behind on the seas of fleeting cultural memory… Or it could just be commenting that Tenagra was an island.

If you don’t understand the reference, this might help:
https://en.wikipedia.org/wiki/Darmok

Canadian Election, 2015

It was an interesting campaign. People seem to always talk about the length of it, but my favourite article talked about how it allowed each of the issues to come out one at a time, and actually receive some due consideration.

Anyways, a few random thoughts:

It felt at the start of the campaign that it was Mulcair’s election to lose. It felt like for whatever reason he didn’t seem to connect well with the electorate, definitely not like Jack Layton had been able to. Interestingly, it felt (at least from the few speeches I heard) like Justin Trudeau was the spiritual successor to Jack’s legacy, at least in the triumph of hope and science over fear.

There were also comments about ‘strategic voting’…My definition of strategic voting is for the rational voter to look at the possible outcomes, rank order them by desirability, and choose one of the choices they have within their power to push things along that track as far as possible. In Canada, this generally currently seems to mean voting for the person most likely to defeat the Conservative candidate in their riding. In Alberta, that’s probably a Liberal candidate, downtown*, much more likely an NDP candidate.

But for many people, the definition** of ‘strategic voting’ seems to be different, meaning ‘vote for the Liberals so the Conservatives don’t win, no matter how much you like the Liberals’. There were many ‘safe’ downtown non-Conservative seats, where people were ‘free to vote their conscience’, but it seems that those ridings went solidly Liberal as people took ‘strategic voting’ to mean ‘vote for the Liberals’. Or perhaps they were all voting for the Liberals. We may never know.

*I originally put ‘Quebec’ here, but that was before I saw this: https://en.wikipedia.org/wiki/File:Canada_2015_Federal_Election.svg, which shows the Liberal party with a plurality of votes and majority of seats in Quebec in 2015.

**There is a secondary, more subtle option here, which only takes place when there’s a minority. After the 2008 election, the Conservatives were able to control parliament with only 124 out of 308 seats. Had the Liberals or NDP had all of the 132 seats between them, there would not have been the constitutional crisis of 2008-9: https://en.wikipedia.org/wiki/2008%E2%80%9309_Canadian_parliamentary_dispute Recently, it seems that the party with the most seats governs, and there do not seem to be stable coalitions between the 2nd and 3rd parties. This may have been a result of the Bloc Quebecois.

Interestingly, coalition governments seem to be much less common than one might think… This article suggests it may be because the leader of the party is no longer elected by backbenchers:
https://en.wikipedia.org/wiki/Coalition_government#Canada