NLP (neural aesthetic class notes)

skip-gram: predicts next/prev word(s) based on present word

CBOW: opposite of skip-gram; input is a sequence of words, output is the next word

embedding size = possible relational directions

universal sentence encoder: colab, arxiv

hierarchal neural story generator (fairseq): repo

tracking the drift of words

wiki-tSNE: groups wikipedia articles by topic

python library wikipedia

  • text = wikipedia.page("New  York University")
    print(text.content)

spacy: better than nltk? can parse entities, ie organizations (New York University) time (12pm), etc

Final Project Proposal

See the final here


For my final project, I’d like to create a browser game in which two players compete to think of words as unrelated to each other as possible, as quickly as possible. The browser will keep score, which is determined by 1) the distance between two words as defined by word2vec models, and 2) the time it takes for the player to think of their word. The browser will also map the players’ words based on a tsne reduction of the word2vec model, in order to provide a visual indicator of performance.

Collect inspirations: How did you become interested in this idea? 

I love the idea of statistically analyzing text, and have really enjoyed building Markov Models and training LSTMs in the past. Word2Vec is especially interesting because it’s able to map words semantically, and does this solely through the analysis of large amounts of corpora. Depending on the dataset, visualizing these relationships can reveal a lot about how the source perceives the world.

Collect source material:

  1. text sources: Wikimedia dump, Google News (pre-trained word2vec), kanye tweets, wiki-tSNE for different topics (art movements, periods of history, celebrities, movies, etc)
  2. nltk + punkt to clean data, remove stop words
  3. gensim to train word2vec model
  4. tensorflowjs to calculate distance
  5. tensorflowjs tsne library to visualize

Collect questions for your classmates.

  • What should the title be?
  • Game features?
  • Text sources?

What are you unsure of? Conceptually and technically.

  • How to use pre-trained GloVe models with tensorflowjs/ml5?
  • Is this a fun game??

Class Notes:

  • show averages between words (as explanations)
  • narrative
  • https://en.wikipedia.org/wiki/Six_Degrees_of_Kevin_Bacon

Neural Aesthetic Class Notes wk8

limitations of feed-forward NNs:

  • static, does not change over time
  • does not take advantage of context
  • inputs and outputs are fixed length

sequence to sequence: language translation

unit to sequence: image captioning

skip-thought vectors: arbitrary sequences of words (image to story)

dense captioning: multiple captioning for objects within images

text to image (stackGAN): https://arxiv.org/abs/1612.03242

Talking and Storytelling w1 reading notes

8 CLASSIC STORYTELLING TECHNIQUES FOR ENGAGING PRESENTATIONS

  1. Monomoyth (the hero’s journey):
    • Structure:
      • leaves home to a threatening, unknown place
      • overcomes great trail
      • returns home with newfound wisdom
    • Good for:
      • explaining what has brought you to the wisdom you’re sharing
      • bringing the message alive
      • showing the benefits of taking risks
  2. The Mountain
    • way of mapping the tension and drama in a story
    • doesn’t necessarily have a happy ending
    • Structure
      • scene is set
      • series of small challenges and rising action
      • climatic conclusion
    • like a TV series: each episode has ups and downs, all building up to a big season finale
    • Good for:
      • showing how you overcame a series of challenges
      • slowly building tension
      • delivering a satisfying conclusion
  3. Nested Loops
    • three or more narratives are layered within each other
    • Structure
      • the center = the most important story with the core of your message
      • outside layers elaborate or explain the central principle
      • the first story you begin with is the last story you finish, the second story you start is the penultimate you finish, etc
    • Good for:
      • explaining the process of how you were inspired/came to a conclusion
      • using analogies to explain a central concept
      • showing how a piece of wisdom was passed to you
  4. Sparklines
    • way of mapping presentation structures
    • very best speeches succeed because they contrast our ordinary world with an ideal, improved world—comparing what is with what could be
    • Good for:
      • inspiring the audience to action
      • creating hope and excitement
      • creating a following
    • MLK’s I Have a Dream speech
  5. In Media Res
    • Structure
      • narrative begins in the heat of the action
      • starts over at the beginning to explain how you got there
    • try hinting at something bizarre or unexpected, something that needs more explanation, to hook the audience
    • only works for shorter presentations
    • Good for:
      • grabbing attention from the start
      • keeping an audience craving resolution
      • focusing attention on a pivotal moment in your story
  6. Converging Ideas
    • shows the audience how different strands of thinking came together to form one idea
    • can be used to show the birth of a movement, explain how a single idea was the culmination of several minds working towards one goal
    • Good for:
      • showing how great minds came together
      • demonstrating how a development occurred at a certain point in hitsory
      • showing how symbiotic relationships formed
  7.  False Start
    • begin to tell a seemingly predictable story, before unexpectedly disrupting it and beginning it over again
    • good for talking about failures where you were forced to go back to square one and reassess; ideal for talking about the things that you learned from the experience, or some innovative way you solved a problem
    • quick attention hack which will disrupt your audience’s expectations
    • Good for:
      • disrupting audience expectations
      • showing the benefits of a flexible approach
      • keeping the audience engaged
  8. Petal Structure
    • organizes multiple speakers or stories around one central concept
    • useful if you have several unconnected stories you want to tell, or things you want to reveal, that all relate back to a single message
    • each petal should be a complete narrative in itself; evidence around your central theory
    • Good for:
      • demonstrating how strands of a story or process are interconnected
      • showing how several scenarios relate back to one idea
      • letting multiple speakers talk around a central theme

https://www.sparkol.com/en/Blog/8-Classic-storytelling-techniques-for-engaging-presentations

citizen science final proposal

Frontal alpha symmetry neurofeedback:

  1. test positive memory recall for alpha idling in right frontal area
  2. test negative memory recall for alpha idling in left frontal area
  3. test neurofeedback protocols for frontal alpha symmetry
  4. implement best protocol as regular training to test influence on mood

 

Other methods of altering brain activity

  • active:
    • alpha/theta training
    • meditation (mindfulness vs focused attention)
    • gratitude logging
    • positive autobiographical recall
  • passive (alpha band vs gamma):
    • photic driving
    • binaural beats
    • aromatherapy