CS 330 - Artificial Intelligence - Review, Google Cloud and Github - - PowerPoint PPT Presentation

cs 330 artificial intelligence
SMART_READER_LITE
LIVE PREVIEW

CS 330 - Artificial Intelligence - Review, Google Cloud and Github - - PowerPoint PPT Presentation

1 CS 330 - Artificial Intelligence - Review, Google Cloud and Github Instructor: Renzhi Cao Computer Science Department Pacific Lutheran University Fall 2019 Notice NB practice is due on Sakai, do we want to postpone to Thursday? Todays


slide-1
SLIDE 1

CS 330 - Artificial Intelligence

  • Review, Google Cloud and Github

Instructor: Renzhi Cao Computer Science Department Pacific Lutheran University Fall 2019 1

slide-2
SLIDE 2

Notice

NB practice is due on Sakai, do we want to postpone to Thursday?

slide-3
SLIDE 3

Today’s goal

  • Review Quiz 2
  • Review Lab 1 and Lab 2
  • Learn Google Cloud Terminal
  • Learn Github and discuss about the literature review
slide-4
SLIDE 4

Quiz 2

  • Average score: 17.9
slide-5
SLIDE 5

Lab 1

  • Lab 1 average score: 16.6
  • Lab 1 reference grading code demo: https://cs.plu.edu/

courses/cs330/current/Materials/fall2019/Lab_material/ Lab1_solution_grading.zip

slide-6
SLIDE 6

Lab 2

  • Lab 2 average score: 17.3
  • Lab 2 reference grading code demo: https://cs.plu.edu/

courses/cs330/current/Materials/fall2019/Lab_material/ Lab2_solution_grading.zip

Hints:

  • 1. Upload pictures for running lab2.py on cloud
  • 2. CheckInput function, check number of parameters and also dimensions of

the matrix, especially for MUL

  • 3. MUL function should handle 3X3 * 3X3, but also 3X2 * 2X3
  • 4. Use correct parameters, don’t directly use sys.argv[] inside of the

CheckInput, use sysargv[] instead.

slide-7
SLIDE 7

Google Cloud Shell

  • https://console.cloud.google.com/cloudshell
slide-8
SLIDE 8

Google Cloud Shell

  • 5 GB storage in your $HOME directory
  • Tools included gcloud, node, kubectl, docker, go, python,

git, vim, etc.

slide-9
SLIDE 9

Upload and Download

Cool things - Except for download file from the GUI, you could even do that in the terminal: cloudshell dl filePath

slide-10
SLIDE 10

Edit your file

slide-11
SLIDE 11

Web preview

Build webserver: https://cloud.google.com/compute/docs/tutorials/basic-webserver-apache

slide-12
SLIDE 12
slide-13
SLIDE 13

Github

slide-14
SLIDE 14

GitHub install

  • Download at: https://desktop.github.com/
  • Github guides demo:

https://guides.github.com/activities/hello-world/

slide-15
SLIDE 15

GitHub on Google Cloud!

  • Login : https://console.cloud.google.com/cloudshell
  • Clone example github repository:

git clone https://github.com/caorenzhi/t1.git

slide-16
SLIDE 16
  • Enter the folder and see what’s inside:

cd t1/ ls

  • Create a new branch:

git checkout -b caora (You should use your id to avoid conflict)

  • Check the current status and branch:

git status git branch

slide-17
SLIDE 17
  • Now make some changes. You could add new files or

change Readme file.

  • Check the status again:

git status

  • Now you could either delete the changes or keep it

using: git checkout …. git add ….

  • You could even delete the whole branch (Not do it now):

git checkout master git branch -D caora

slide-18
SLIDE 18
  • Let’s keep github track the files so all branches could

see it: git add …. (Whatever your changes)

  • Check the status again:

git status

  • Now let’s commit it so it will be added to your branch:

git commit ….

  • You could check which commits have not pushed

upstream: git log --branches --not --remotes

slide-19
SLIDE 19
  • Cheers, you are almost there. Now you could push your

changes to your branch git push origin … (You branch name, caora for me, but you may have different name)

  • Wow, great job! Go to github website and check what’s

happening!

  • Merge your changes to master branch and delete your

branch git checkout master git pull origin master git branch -d test

slide-20
SLIDE 20

End for today

  • Practice Google Cloud Shell
  • Practice Github with your group member,

email Dr. Cao for your group information

  • Discuss with your group member for literature

review, ask Dr. Cao for any questions!