Author Archives: Lucas Allen

Back2School with Vectors, Cosine Similarity, and Word2Vec

Back2School with Vectors, Cosine Similarity, and Word2Vec

Tomorrow, I’ll be making a return visit to the high school where I spent a decade in the mathematics department as a teacher. I’ve got the chance to speak to ten classes over the course of six class periods and tell them a little bit about what I do as a data scientist.

Since many of the students will be familiar with concepts like vectors and trigonometry, I’ve decided to do an activity involving the Python gensim package and Word2Vec. Specifically, each student was asked to submit a “Tweet” about the most interesting thing they’ve done in the last couple of couple of weeks. I was given those Tweets last week and have prepared a little talk and code walk through about how we can use Word2Vec to identify similar Tweets by transforming unstructured text with word embeddings and comparing their cosine similarity.

I’ve decided to go ahead and share the code in a Github repo. If you’re interested in word embeddings, I hope you’ll find it helpful. I’m also posting the presentation I’m giving tomorrow below, but some formatting of indents, margins, etc. did get lost in the process of wrapping it in an iframe, so if you want to see it in the best possible form, check it out here.

 

TI-Innovator Ranger Demo and Code

TI-Innovator Ranger Demo and Code

A few weeks back, I added my review of the TI-Innovator. I had a couple of demos in that review, and I’ve been adding an explanation and code so interested teachers and students can try them out in their own classrooms. In this post, I’m taking the TI-Innovator Ranger for a spin. The Ranger technology… Continue Reading

TI-Innovator Hub Demo

I recently added a review of the TI-Innovator. I had a couple of simple demos in there, and I promised I’d show how I did them later. Here’s the first of two blog posts explaining one of those demos. This one is really simple, just playing a few notes from the original Super Mario Bros… Continue Reading

TI-Innovator Review

TI-Innovator Review

  A few months back, Texas Instruments announced a new STEM education product they had developed that would encourage kids to develop coding skills right on their graphing calculators, the TI-Innovator. The Innovator would work with either the TI-Nspire CX family or the TI-84 Plus CE, the latest generation of Texas Instruments graphing calculators. I… Continue Reading

Machine Learning Specialization Cut Short by Coursera

After an extremely long wait, today was the day that the fifth course in Coursera’s Machine Learning Specialization was set to begin. I’ve been with this specialization since it launched in the fall of 2015. Students were initially promised an ambitious slate of six courses, including a capstone that would wrap up by early summer of… Continue Reading

How to Draw Mario on the TI-Nspire

A few months back I had some time on my hands and did a post on how to graph Mickey Mouse with the TI-Nspire. Today I found myself in the same situation and decided to try my hand with the classic Nintendo character Mario on the Nspire. I imposed the same rules on myself as… Continue Reading