Git Product home page Git Product logo

uml-notes's Introduction

COMS 4995 Fall 2018 Unsupervised Learning

This git repository holds the scribe notes for lectures.

Quick Usage

Cloning repo. To clone the scribe notes into a local repository, run the command:

$ git clone https://github.com/nakverma/uml-notes.git

Generate main. The root directory contains the shell script make_main.sh. This helps you generate the main.tex file for specific chapters.

$ ./make_main.sh
Warning: this operation will overwrite main.tex
Enter chapter numbers to generate: 1 2 6-9
Include parts? [yN]:

main file exported to ./main.tex

In the above example, this will generate a main.tex file that will load chapters 1,2,6,7,8,9. Leaving the chapter numbers blank will generate the whole book.

Note: you may need to give make_main.sh executable permission:

$ chmod +x make_main.sh

Note: if you cannot run the make_main.sh file, you can copy the main.tex.backup file to main.tex and make changes to the main.tex file manually.

Creating a branch. When scribing, you should checkout a branch. This will help us keep the master branch from becoming too chaotic.

Let's say you're scribing k-means. As k-means is covered in Chapter 1, you should checkout the chapter-one branch:

$ git checkout -b chapter-one

Do local edits and push your edits into your branch:

$ git push origin chapter-one

If you've checked out the chapter-one branch, please make edits only to chapter one files.

Making a pull request. Once you've finalized your scribe notes, please submit a pull request on github. We will review your notes, and if no major changes need to be made, we will merge your branch into the master branch.

Compiling LaTeX. We recommend installing latexmk (often comes with texlive), and running:

$ latexmk -pdf main.tex

Organization

Here is the general shape of the tex-related files:

uml-notes/
|-style/
  |-preamble.tex
|-chapter_1/
  |-chapter_1.tex
  |-1_section.tex
  |-2_section.tex
  .
  .
  |-references.bib
  |-files/
    |-img.png
.
.
|-main.tex

Our goal is to reduce the number of conflicts: each student will scribe on a particular section(s) within a chapter. For example, the section on k-means is chapter_1/3_kmeans.tex.

The chapter_1/chapter_1.tex file combines all the section files together. This way, ideally, only one student will be modifying a tex file at a time.

Best Practices

LaTeX We've defined some commonly used macros below you may feel free to use. Please don't edit the preambles before consulting with us! Let us know if you need to import an additional package or think we should include other macros.

USEFUL MACROS

PROBABILITY
Expectation:  \E
Probability:  \Pr
Variance:     \Var
KL Div:       \Div{}{}        % looks like D( - || - )

LINEAR ALGEBRA
Matrix (bf):  \mat{}
Vector (bf):  \vec{}

ANALYSIS
Abs:          \abs{}
Norm:         \norm{}
Inner prod:   \ip{}
Argmin:       \argmin{}
Argmax:       \argmax{}
Varepsilon:   \eps

COMMON SETS
Reals:        \bbR
Rationals:    \bbQ
Naturals:     \bbN
Complex Num:  \bbC
Integers:     \bbZ
Finite field: \bbF

git Everytime you edit any part of a line, git will save the change for the whole line. However, in text, a line could potentially be a whole paragraph. So, please consider turning on automatic word wrapping to help truncate each line at, say, 70 characters.

In emacs, you can turn this on using:

M-x auto-fill-mode

In vim, this is

:set tw=70

uml-notes's People

Contributors

geelon avatar jacobaustin123 avatar merlinyx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.