cloud computing + data architecture

ML as a Service (Comprehend, Rekognition)

import boto3

AWS_client = boto3.client('comprehend', region_name='us-east-1')

AWS_sentiment_response = AWS_client.detect_sentiment(Text='i am so tired',LanguageCode='en')


AWS Lambda: functions as a service

  • run code with Lambda > analyze with Comprehend > store on S3 > serve with EC2
  • can use AWS Lambda as an endpoint
  • EC2 has tensorflow instance
  • can ask alexa to run lambda
  • cloudwatch events: trigger at a certain time

python for basic data analysis




data_file1.merge(data_file2, how=“outer”) will assign null values to misaligned data files

merge all data to find correlations



neuroscience/eeg lecture at 6 metrotech

external input is processed in occipital lobe

brain waves are sub-threshold activity in cells; some are action potentials

action potentials: from neurotransmitters

subthreshold potentials: smaller change in voltage in neuron

aggregate signal is picked up by EEG

closed eyes > depriving brain of inputs > alpha waves (higher amplitude because neurons are firing together with smaller range of frequencies > signal adds up)

open eyes > external stimuli > different neurons, inputs at different times > activity at a range of frequencies > shorter amplitude > beta waves


ML4A with Gene Kogan

paperspace or colab

ml4a suite:

  • ConvnetOSC meant for wekinator
    • ml4a ConvnetOSC + wekinator + processing or p5 w/ OSC
  • KeyboardOSC: controls keyboard with wekinator
  • AudioClassifier: classify sounds that you make

more on


github basics

to create a git repo:

  1. navigate to project folder
  2. git init

to commit a change:

  1. changes on which files?
    1. specific file: git add index.html
    2. every file that was changed: git add -A
  2. commit changes to repo: git commit -m "added index.html"

to push a repo to github:

    1. create a new repo on
    2. git remote add origin
    3. git push origin master

from then on:

  1. make changes to file
  2. git add -A
  3. git commit
  4. git push origin master


To run someone else’s project: git clone

To get updates from someone else’s project (from within the local repo): git pull

To make a copy of someone else’s repo onto your own github account to push to: clone from existing repo’s github page

To prevent files from uploading to github, create a file called .gitignore with a list of files and folders (ie, file.png, *.txt, images) that you want hidden

  • password = read from config.js; .gitignore config.js
  • for list of files to ignore based on your project