Skip to content

Latest commit

 

History

History
92 lines (74 loc) · 3.71 KB

index.org

File metadata and controls

92 lines (74 loc) · 3.71 KB

Data science and machine learning in chemical engineeringg

These are lecture notes from a mini course I taught on data science and machine learning in chemical engineering.

./data-hydra.png

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.

  1. Introduction
  2. Using numpy
  3. Interactive visualization with numpy and matplotlib
  4. Introduction to Pandas
  5. Intermediate Pandas
  6. Pandas as a database
  7. Introduction to linear regression with sklearn
  8. Intermediate sklearn
  9. Nonlinear models in sklearn
  10. Random Forest regression

Good luck!

Setup the publishing project

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)