Wednesday, July 18, 2018

Request Table, Finally!

This post will only be meaningful for those who deal with Canvas data from the Canvas LMS (learning management system).

Our institution has been using Canvas since around 2013 (first as a pilot, then as the official LMS). One of the data tables available to us through download is the request table -- essentially a record of all of the web requests in our Canvas instance since we began using it many years ago. Given that we have tens of thousands of people using the system each day, this represents a lot of data.

I've recently blogged about the difficulties in extracting data from the request table. For the past year or so, we have been unable to unzip the data from the request table as it has been too big to fit on the team laptop.

Yesterday, I was finally able to extract all of the data onto a networked server. Or, to be more accurate, I was able to unzip the individual files (over 10,000 currently) that make up the request table data. I have yet to successfully run the canvas-data-cli script on the request data, though it works fine for everything else.

At the end of the day, we have 2.4 TB of request table data when unpacked.  Now that we know what we are dealing with, we'll be able to work towards building a pipeline moving forward. .  

Monday, July 16, 2018

If It Isn't Trivial, It Must Be Impossible

I was listening to an interview with data scientist Hilary Mason (currently General Manager, Machine Learning at Cloudera.com) the other day. As she was talking about how many seemingly disparate problems across a variety of domains use essentially the same underlying prediction algorithms, she said something like the following (paraphrased):
Framing the question is the hard part. Once you've framed the question appropriately, finding the answer is usually either trivial or impossible.
That struck me as quite profound. If you can't articulate what you are trying to understand or predict, it will be very difficult to determine what information would be relevant to enhancing that understanding or enabling that prediction. In the educational realm, this is the essence of backwards design -- start with the goal and work backwards.

If you spend the time to really identify the question that you are interested in, you should get a sense of whether or not the answer is even knowable given the data that you have access to now and/or could collect in the future. By spending a chunk of time up front thinking through your question, you'll come away with either an analysis plan, a game plan for collecting more data, or a recognition that you will need to be satisfied with not knowing.

 

Thursday, July 12, 2018

Robot-Proof? (Part Two)

When I wrote about Robot-Proof a few days ago, I hadn't yet read the final chapter. I've now finished the book.

The final chapter talked mainly about the need for colleges and universities to fully embrace the notion of lifelong, intermittent, on-demand learning. Aoun argues that institutions of higher education need to be more aligned with the needs of businesses and recognize that the provision of short, targeted content on demand will be more beneficial to many lifelong learners than multi-semester courses of study. (He even envisions a continuing "subscription" to one's alma mater.)

Aoun argues that industry-university partnerships to provide industry-specific training can be a win-win arrangement for all concerned (industry is all business, and colleges are in the business of teaching). He also suggests multi-university networks, both local and global, could help provide the various "building blocks" of knowledge that lifelong learners would need to access over the course of their career. 

As I've undoubtedly written in previous blog posts, I'm not a huge fan of the "college as job training pipeline" idea, though I recognize that it is probably a necessity to some degree. Aoun seems to think that this enlightened view of educational opportunity will lead a renewed appreciation of teaching (as opposed to just research) on college campuses. (I think that adjunct professors earning poverty wages would probably beg to differ.)

For Aoun, the future is bright:

By appropriating our routine work, machines will offer human beings a chance at liberation from drudgery, freeing us for more creative employment. Tomorrow's jobs will require us to deploy our creativity and higher-order capacities in the service of our companies, our economy, and society.   (p. 148)

I'm not as optimistic. Not to get too political, but if the past is prologue, we don't need to just be robot-proof, we need to be global capitalism-proof, which I don't see happening anytime soon.

Tuesday, July 10, 2018

Robot-Proof?

I've been reading an e-book version of Joseph E. Aoun's book Robot-Proof: Higher Education in the Age of Artificial Intelligence. (The fact that it is an e-book version means that I am forced to view it as a pdf on my computer, which probably influences my perception of it.)

The author's basic premise is that, as was the case with previous technological advances such as automobiles and electricity, the just-around-the-corner wide-spread adoption of AI will be quite disruptive for those not capable of making the transition to the new reality. However, although technical literacy will certainly be a prerequisite moving forward, there is still a place, perhaps even a need, for the human-based qualities typically fostered in a liberal arts education. (Dr. Aoun is the president of Northeastern University, a private R1 school in Boston, Massachusetts.)

Aoun coins the term humanics to describe the type of educational training that he envisions. Humanics is made up of three types of literacy: technological, data, and human. Developing these literacies strengthens the four robot-proof cognitive capacities of critical thinking, systems thinking, entrepreneurship, and cultural agility.

Achieving this vision, according to Aoun, requires educational activities that intentionally expose connections between the activities that students undertake and the underlying capacities that they are intended to strengthen. The goal of classroom learning for the instructor to model how to think and approach problems. A second core component of humanics is experiential learning, though co-ops,  co-curricular programs, internships, and the like. The goal of these experiences is to help learners apply their learning to new situations and challenges, making novel connections and facilitating "far transfer" of knowledgde.

Aoun cites Carol Dweck's concept of "growth mindset" (as opposed to "fixed mindset") as the type of lifelong learner humanics is designed to produce. Through a rigorous yet flexible curriculum, learners progress from a state of unconscious incompetence (i.e., they are unaware of their inexperience), to conscious incompetence (i.e., they are aware of their lack of expertise), to conscious competence (i.e., they can perform adequately if they concentrate), and, finally, to unconscious competence (skilled performance on demand).

I haven't read the final chapter yet, but I found myself agreeing more with Aoun's description of the challenge -- the inevitable loss of many current jobs and even categories of jobs due to automation -- than with his prescription for answering it. He presents several stories of Northeastern students who have had impressive experiences during their college career (and are, no doubt, intelligent and talented young men and women), but no information on the typical experience of students.

Why is it that books lamenting the state of higher education tend to be filled with facts and statistics when they describe the problem, but settle for anecdotes when they talk about solutions?

Note that I don't disagree with Aoun's recommendations per se, but the fact that college graduates can't find decent jobs in the current economy doesn't bode well for a future with even fewer middle-class jobs, humanics or not.

That said, Robot-Proof is a thought-provoking read.



Saturday, July 7, 2018

That Darned Requests Table

Like many universities, we use an Enterprise Learning Management System (ELMS) to provide a web-based place for instructors and learners to interact, share materials, submit assignments, and the like. In the past, we used Blackboard, but for the past several years we have been using Canvas, developed by a company called Instructure. 

One of the great features of Canvas is the ability to access all of the data from your institution's Canvas instance. These are provided as a set of downloadable database tables using a star schema format. Each table comes as a directory full of compressed files. A small node.js script, provided by Instructure, takes those files, unzips them, and reassembles them into a single, tab-delimited file for each table. 

In theory, the unpacked tables can be imported into a database. From there, visualization tools such as Tableau or statistical software such as R can be connected to the database and used to generate insights into ELMS usage. 

This step in the process has been elusive for us. 

One table in particular, the requests table, has proven to be a bear to deal with. The compressed size is over 300 GB, at an unknown compression rate. We have yet to completely unpack the compressed requests files -- our first attempt filled up our machine's 1 TB drive before the process was complete.  

We recently brought a much more robust server online, which should have plenty of space for our needs (two drives with over 10 TB each). Unfortunately, the unpacking process for the requests table (and only the requests table) seems to cause our connection to the server to abort halfway through. I don't have a background in computer science or data engineering, so the process has been quite frustrating as I have limited ability to troubleshoot the issue -- both for lack of knowledge and lack of administrator credentials on the server. 

Even without uploading the data tables to a database, we've been able to do most of our analyses by reading the flat files directly into R, Tableau, or Python, so things have not been at a standstill. Still, I look forward to the day when we don't have to worry so much about that darned requests table.   



Thursday, July 5, 2018

The Joys of Summer

Summer is an interesting time on a college campus. Clumps of prospective or admitted students can be seen dutifully following their student guides here and there. Programs for younger students (high school and below) are in full swing, and it is not uncommon to see group of summer camp children playing on the mall. For better or worse, construction and maintenance projects tend to ratchet up during the summer as well, taking advantage of the weather and the reduced student population.

Though there are occasional special events, summer classes, or conferences, for the most part many of the buildings are much quieter than usual. This is certainly true of my building. It is wonderful to see the building being used and enjoyed by students during the peak of the semester, but I must admit that I also enjoy the respite from the constant din of activity that the summer provides. 

Tuesday, July 3, 2018

Talk About a High Bar!

Since resurrecting this blog earlier this year, I've been somewhat, uhm, inconsistent in how frequently I've managed to post. One could even say that the initial momentum of the relaunch has occasionally been in danger of petering out for good.

I have no desire to leave my day job to become a full-time blogger, so I'm not too concerned if I can't emulate folks who are trying to do this for a living. No one with a "real" job has time to crank out blog posts everyday, right?

Imagine my surprise when I came across this post from Andrew Gelman, describing the blog posts he has on tap for the rest of the year.  These are not his ideas for blog posts -- these are the posts themselves. Written. Already. For the rest of the year.

In addition to being a full-time academic, Gelman somehow still finds the time to curate a blog of incredibly high quality, with very active discussion on almost every post. Talk about a high bar!

If I can end this year with a post that is less than two weeks old, I'll consider it a success.