These are lecture notes from a mini course I taught on data science and machine learning in chemical engineering.
These are the official lectures from the class. I hope they work for you, but there may be links to files in a google drive that only CMU students can access. Let me know in an issue if you find one.
- Introduction
- Using numpy
- Interactive visualization with numpy and matplotlib
- Introduction to Pandas
- Intermediate Pandas
- Pandas as a database
- Introduction to linear regression with sklearn
- Intermediate sklearn
- Nonlinear models in sklearn
- Random Forest regression
Good luck!
- org
- the org-files for the notebooks ./org
- docs
- the place to publish the html files
- docs/notebooks
- place to publish the notebooks
https://github.com/jkitchin/f19-06623/tree/master/docs https://github.com/jkitchin/f19-06623/blob/master/docs/notebooks/00-intro.ipynb
Note I did a fair bit of editing of results that had output that looked like links.
;; This is a link for getting links right.
(org-link-set-parameters
"s2006681"
:follow (lambda (path)
(find-file path))
:export (lambda (path desc backend)
(let* ((html-path (concat (substring path 0 -4) ".html"))
(ipynb (concat (substring path 0 -4) ".ipynb"))
(colab (format "<a href=\"https://colab.research.google.com/github/jkitchin/s20-06681/blob/master/docs/notebooks/%s\" target=\"_blank\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open in Colab\" title=\"Open and Execute in Google Colaboratory\"></a>"
ipynb)))
(cond
((eq 'md backend)
(format "[%s](%s)" desc ipynb))
((eq 'html backend)
(if desc
(format "<span><a href=\"%s\">%s</a> %s</span>" html-path desc colab)
(format "%s" colab)))))))
(org-link-set-parameters
"image"
:export (lambda (path desc backend)
(format "<img src=\"%s\">" path)))
(require 'ox-publish)
(setq org-publish-project-alist
'(("html"
:base-directory "/Users/jkitchin/Desktop/s20-06681/org/"
:base-extension "org"
:publishing-directory "/Users/jkitchin/Desktop/s20-06681/docs/"
:recursive t
:publishing-function org-html-publish-to-html
:auto-preamble t)
("notebooks"
:base-directory "/Users/jkitchin/Desktop/s20-06681/org/"
:base-extension "org"
:publishing-directory "/Users/jkitchin/Desktop/s20-06681/docs/notebooks"
:recursive t
:publishing-function ox-ipynb-publish-to-notebook
:auto-preamble t)
("static-html"
:base-directory "/Users/jkitchin/Desktop/s20-06681/org/"
:base-extension "xlsx\\|css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|dat\\|mat\\|txt\\|svg"
:publishing-directory "/Users/jkitchin/Desktop/s20-06681/docs/"
:exclude "org\\|notebooks\\|html"
:recursive t
:publishing-function org-publish-attachment)
;; ... all the components ...
("s20-06681" :components ("html" "notebooks"
"static-html"))))
(org-publish "s20-06681" t)