DSC650
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Help
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- title: DSC 650 (10 Week) Week 01 tags: dsc650, 10-week, lessons subtitle: Introduction to Big Data and Deep Learning --- # Week 1 [![hackmd-github-sync-badge](https://hackmd.io/6ZNkqXrbQLq1ma1zyn5fEA/badge)](https://hackmd.io/6ZNkqXrbQLq1ma1zyn5fEA) To paraphrase the late Douglas Adams: > Big data is big. You just won't believe how vastly, hugely, mind-bogglingly big it is. I mean, you may think your collection of movies, pictures, and music is big, but that's just peanuts to big data. Big Data is big in two distinct ways. First, as the name suggests, Big Data is about how to deal with large amounts of data. Tech giants like Google and Facebook [store exabytes of data][orders-of-magnitude-data]. While multiple exabytes of data is an impressive amount of data, it is nowhere near the [theoretical limits][limits-of-computation]. Second, Big Data is a wide area of study that spans a wide range of technologies and concepts. Because of the size and rapid rate of change of the subject, we will only be able to cover a small fraction of Big Data topics in this course. In this course, we will focus on two main areas: the design of data-driven systems and deep learning algorithms. The first area, the design of data-driven systems, takes a high-level look into how the different components of Big Data systems fit together. The second area, deep learning, focuses on a specific approach to extracting information from large, usually unstructured datasets. ## Objectives After completing this week, you should be able to: * Setup a development environment PySpark, Keras, and TensorFlow and run a simple proof of concept * Explain how reliability, scalability, and maintainability impacts data-driven systems * Summarize how artificial intelligence, machine learning, and deep learning relate to one another * Determine what problems deep learning and big data help solve ## Readings * Read chapter 1 in *Designing Data-Intensive Applications* * Read chapter 1 in *Deep Learning with Python* * Visit [DSC 650 website][dsc650-website] and follow the getting started instructions to setup your development environment * Watch [CPU vs GPU \(What's the Difference?\)][cpu-vs-gpu] * Watch [How Much Information is in the Universe? | Space Time][pbs-universe-information] ## Weekly Resources * [Backblaze Hard Drive Stats][backblaze-hd-data] * [DSC 650 Website][dsc650-website] * [DSC 650 Github Repository][dsc650-repo] * [CPU vs GPU \(What's the Difference?\)][cpu-vs-gpu] * [How Much Information is in the Universe? | Space Time][pbs-universe-information] ## Assignment 1 ### Assignment 1.1 Visit [DSC 650 website][dsc650] and follow the instructions for getting started. To demonstrate your environment is in working order, run the examples in the `examples` folder, and copy the output to the `dsc650/assignment01/logs` folder. #### a. Run Keras MNIST MLP Example If you are using Bash the following commands will write both stdout and stderr to a file. ```shell $ python examples/mnist_mlp.py > logs/keras-mnist.log 2>&1 ``` If you are not using Bash, you can manually copy and paste the output into the log file using a text editor. #### b. Run PySpark Example If you are using Bash the following commands will write both stdout and stderr to a file. ```shell $ python examples/pi.py > logs/spark-pi.log 2>&1 ``` If you are not using Bash, you can manually copy and paste the output into the log file using a text editor. ### Assignment 1.2 For the rest of the assignment, you will answer questions about scaling and maintaining data-driven systems. A Markdown template for this part of the assignment can be found at `dsc650/assignments/assignment01/Assignment 01.md`. #### a. Data Sizes Provide estimates for the size of various data items. Please explain how you arrived at the estimates for the size of each item by citing references or providing calculations. | Data Item | Size per Item | |--------------------------------------------|--------------:| | 128 character message. | ? Bytes | | 1024x768 PNG image | ? MB | | 1024x768 RAW image | ? MB | | HD (1080p) HEVC Video (15 minutes) | ? MB | | HD (1080p) Uncompressed Video (15 minutes) | ? MB | | 4K UHD HEVC Video (15 minutes) | ? MB | | 4k UHD Uncompressed Video (15 minutes) | ? MB | | Human Genome (Uncompressed) | ? GB | * Assume all videos are 30 frames per second * [HEVC][hevc] stands for High Efficiency Video Coding * See the Wikipedia article on [display resolution][display-resolution] for information on HD (1080p) and 4K UHD resolutions. #### b. Scaling Using the estimates for data sizes in the previous part, determine how much storage space you would need for the following items. | | Size | # HD | |-------------------------------------------|---------:|-----:| | Daily Twitter Tweets (Uncompressed) | ?? | | | Daily Twitter Tweets (Snappy Compressed) | ?? | | | Daily Instagram Photos | ?? | | | Daily YouTube Videos | ?? | | | Yearly Twitter Tweets (Uncompressed) | ?? | | | Yearly Twitter Tweets (Snappy Compressed) | ?? | | | Yearly Instagram Photos | ?? | | | Yearly YouTube Videos | ?? | | * For estimating the number of hard drives, assume you are using 10 TB and you are storing the data using the Hadoop Distributed File System (HDFS). By default, HDFS stores three copies of each piece of data, so you will need to triple the amount storage required. * [Twitter statistics][twitter-stats] estimates 500 million tweets are sent each day. For simplicity, assume each tweet is 128 characters. * See the [Snappy Github repository][snappy] for estimates of Snappy's performance. * [Instagram statistics][instagram-stats] estimates over 100 million videos and photos are uploaded to Instagram every day. Assume that 75% of those items are 1024x768 PNG photos. * [YouTube statistics][youtube-stats] estimates 500 hours of video is uploaded to YouTube every minute. For simplicity, assume all videos are HD quality encoded using HEVC at 30 frames per second. #### c. Reliability Using the yearly estimates from the previous part, estimate the number of hard drive failures per year using data from [Backblaze's hard drive statistics][backblaze-hd-data]. | | # HD | # Failures | |------------------------------------|-----:|-----------:| | Twitter Tweets (Uncompressed) | ?? | | | Twitter Tweets (Snappy Compressed) | ?? | | | Instagram Photos | ?? | | | YouTube Videos | ?? | | #### d. Latency Provide estimates of the one way latency for each of the following items. Please explain how you arrived at the estimates for each item by citing references or providing calculations. | | One Way Latency | |---------------------------|---------------------:| | Los Angeles to Amsterdam | ? ms | | Low Earth Orbit Satellite | ? ms | | Geostationary Satellite | ? ms | | Earth to the Moon | ? ms | | Earth to Mars | ? minutes | ## Submission Instructions For this assignment, you will submit a zip archive containing the contents of the `dsc650/assignments/assignment01/` directory. Use the naming convention of `assignment01_LastnameFirstname.zip` for the zip archive. You can create this archive in Bash (or a similar Unix shell) using the following commands. ```shell cd dsc650/assignments zip -r assignment01_DoeJane.zip assignment01 ``` Likewise, you can create a zip archive using Windows PowerShell with the following command. ```shell Compress-Archive -Path assignment01 -DestinationPath 'assignment01_DoeJane.zip ``` When decompressed, the output should have the following directory structure. ``` ├── assignment01 │   ├── Assignment\ 01.md │   └── logs │   ├── keras-mnist.log │   └── spark-pi.log ``` ## Discussion For the first discussion, write a 250 to 750-word discussion board post about a Big Data and/or deep learning use case. Try to focus on a use case relevant to your professional or personal interests. Use the DSC 650 Slack channel for discussion and replies. For grading purposes, copy and paste your initial post and at least two replies to the Blackboard discussion board. [backblaze-hd-data]: https://www.backblaze.com/b2/hard-drive-test-data.html [cpu-vs-gpu]: https://youtu.be/_cyVDoyI6NE [display-resolution]: https://en.wikipedia.org/wiki/Display_resolution [dsc650-repo]: https://github.com/bellevue-university/dsc650/ [dsc650-website]: https://bellevue-university.github.io/dsc650/ [hevc]: https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding [instagram-stats]: https://www.omnicoreagency.com/instagram-statistics/ [limits-of-computation]: https://en.wikipedia.org/wiki/Limits_of_computation [pbs-universe-information]: https://youtu.be/XxVlGAFX7vA [orders-of-magnitude-data]: https://en.wikipedia.org/wiki/Orders_of_magnitude_(data) [room-at-the-bottom]: http://calteches.library.caltech.edu/1976/1/1960Bottom.pdf [snappy]: https://github.com/google/snappy [twitter-stats]: https://www.internetlivestats.com/twitter-statistics/ [youtube-stats]: https://www.omnicoreagency.com/youtube-statistics/

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully