From 26f722d5b9986e52b9b192ed6b6636f36544f66a Mon Sep 17 00:00:00 2001 From: dongjk Date: Thu, 22 Feb 2018 05:09:30 -0800 Subject: [PATCH] add mathjax --- _config.yml | 14 ++++++-------- _includes/mathjax.html | 1 + _layouts/page.html | 3 +++ _posts/2018-02-22-welcome-to-jekyll.markdown | 14 ++++++++++++++ 4 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 _includes/mathjax.html create mode 100644 _layouts/page.html diff --git a/_config.yml b/_config.yml index f91333e..cb22923 100644 --- a/_config.yml +++ b/_config.yml @@ -13,19 +13,17 @@ # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. # You can create any custom variable you would like, and they will be accessible # in the templates via {{ site.myvariable }}. -title: Your awesome title -email: your-email@example.com +title: Notes for machine learning +email: hikihomori at gmail description: >- # this means to ignore newlines until "baseurl:" - Write an awesome description for your new site here. You can edit this - line in _config.yml. It will appear in your document head meta (for - Google search results) and in your feed.xml site description. + Notes for machine learning and math baseurl: "" # the subpath of your site, e.g. /blog url: "" # the base hostname & protocol for your site, e.g. http://example.com -twitter_username: jekyllrb -github_username: jekyll +twitter_username: hikihomori +github_username: dongjk # Build settings -markdown: kramdown +markdown: redcarpet theme: minima plugins: - jekyll-feed diff --git a/_includes/mathjax.html b/_includes/mathjax.html new file mode 100644 index 0000000..4e085c4 --- /dev/null +++ b/_includes/mathjax.html @@ -0,0 +1 @@ + diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100644 index 0000000..d7326e9 --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,3 @@ + diff --git a/_posts/2018-02-22-welcome-to-jekyll.markdown b/_posts/2018-02-22-welcome-to-jekyll.markdown index 005eae2..03d0e78 100644 --- a/_posts/2018-02-22-welcome-to-jekyll.markdown +++ b/_posts/2018-02-22-welcome-to-jekyll.markdown @@ -4,6 +4,7 @@ title: "Welcome to Jekyll!" date: 2018-02-22 02:25:50 -0800 categories: jekyll update --- +{% include mathjax.html %} You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. @@ -18,6 +19,19 @@ print_hi('Tom') #=> prints 'Hi, Tom' to STDOUT. {% endhighlight %} +$$ +M = \left( \begin{array}{ccc} +x_{11} & x_{12} & \ldots \\ +x_{21} & x_{22} & \ldots \\ +\vdots & \vdots & \ldots \\ +\end{array} \right) +$$ + +$$ + +\text{argmax}_{C_i} P(C_i)P(D|C_i) +$$ + Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. [jekyll-docs]: https://jekyllrb.com/docs/home