Skip to content

Commit

Permalink
Render bookdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jhudsl-robot committed Nov 7, 2023
1 parent c470722 commit 9806e1a
Show file tree
Hide file tree
Showing 25 changed files with 87 additions and 87 deletions.
2 changes: 1 addition & 1 deletion docs/03-writing_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ devtools::session_info()
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2023-11-01
## date 2023-11-07
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib source
Expand Down
2 changes: 1 addition & 1 deletion docs/03-writing_code_activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ devtools::session_info()
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2023-11-01
## date 2023-11-07
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib source
Expand Down
6 changes: 3 additions & 3 deletions docs/04-refactoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ proc.time() - start_time

```
## user system elapsed
## 7.971 0.000 7.970
## 8.933 0.003 8.935
```

:::{.query}
Expand Down Expand Up @@ -581,7 +581,7 @@ proc.time() - start_time

```
## user system elapsed
## 0.800 0.527 0.620
## 0.775 0.564 0.625
```

The `outer()` function performs the same calculation as the nested loop in the original code, but more efficiently. It returns a matrix of all possible combinations of x and y values, with each element of the matrix being the product of the corresponding x and y values. The `rowSums()` function is then used to sum the elements of each row of the matrix, which is equivalent to summing the products of x and y for each index `i` in the original loop. This method avoids the need for the nested loop, resulting in a faster and more efficient computation.
Expand Down Expand Up @@ -609,7 +609,7 @@ proc.time() - start_time

```
## user system elapsed
## 0.340 0.371 0.285
## 0.361 0.299 0.263
```

One optimized way to perform the same calculation is by using the `%*%` operator to perform matrix multiplication. This can be done by converting x and y to matrices and transposing one of them so that their dimensions align for matrix multiplication. This code should be much faster than the original implementation because it takes advantage of highly optimized matrix multiplication algorithms in R.
Expand Down
2 changes: 1 addition & 1 deletion docs/05-annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ devtools::session_info()
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2023-11-01
## date 2023-11-07
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib source
Expand Down
2 changes: 1 addition & 1 deletion docs/05-annotation_activity.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ devtools::session_info()
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2023-11-01
## date 2023-11-07
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib source
Expand Down
8 changes: 4 additions & 4 deletions docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Page not found | Efficient Programming with AI</title>
<title>Page not found | AI for Efficient Programming</title>
<meta name="description" content="Description about Course/Book." />
<meta name="generator" content="bookdown 0.24 and GitBook 2.6.7" />

<meta property="og:title" content="Page not found | Efficient Programming with AI" />
<meta property="og:title" content="Page not found | AI for Efficient Programming" />
<meta property="og:type" content="book" />


<meta property="og:description" content="Description about Course/Book." />


<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Page not found | Efficient Programming with AI" />
<meta name="twitter:title" content="Page not found | AI for Efficient Programming" />

<meta name="twitter:description" content="Description about Course/Book." />

Expand Down Expand Up @@ -368,7 +368,7 @@
<div class="body-inner">
<div class="book-header" role="navigation">
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
</h1>
</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/About.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Tools Used:
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2023-11-01
## date 2023-11-07
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib source
Expand Down
10 changes: 5 additions & 5 deletions docs/about-the-authors.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>About the Authors | Efficient Programming with AI</title>
<title>About the Authors | AI for Efficient Programming</title>
<meta name="description" content="Description about Course/Book." />
<meta name="generator" content="bookdown 0.24 and GitBook 2.6.7" />

<meta property="og:title" content="About the Authors | Efficient Programming with AI" />
<meta property="og:title" content="About the Authors | AI for Efficient Programming" />
<meta property="og:type" content="book" />


<meta property="og:description" content="Description about Course/Book." />


<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="About the Authors | Efficient Programming with AI" />
<meta name="twitter:title" content="About the Authors | AI for Efficient Programming" />

<meta name="twitter:description" content="Description about Course/Book." />

Expand Down Expand Up @@ -368,7 +368,7 @@
<div class="body-inner">
<div class="book-header" role="navigation">
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
</h1>
</div>

Expand Down Expand Up @@ -475,7 +475,7 @@ <h1>About the Authors</h1>
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2023-11-01
## date 2023-11-07
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib source
Expand Down
8 changes: 4 additions & 4 deletions docs/ai-for-bioinformatics-hands-on-exercise.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Chapter 12 AI for Bioinformatics: Hands-On Exercise | Efficient Programming with AI</title>
<title>Chapter 12 AI for Bioinformatics: Hands-On Exercise | AI for Efficient Programming</title>
<meta name="description" content="Description about Course/Book." />
<meta name="generator" content="bookdown 0.24 and GitBook 2.6.7" />

<meta property="og:title" content="Chapter 12 AI for Bioinformatics: Hands-On Exercise | Efficient Programming with AI" />
<meta property="og:title" content="Chapter 12 AI for Bioinformatics: Hands-On Exercise | AI for Efficient Programming" />
<meta property="og:type" content="book" />


<meta property="og:description" content="Description about Course/Book." />


<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Chapter 12 AI for Bioinformatics: Hands-On Exercise | Efficient Programming with AI" />
<meta name="twitter:title" content="Chapter 12 AI for Bioinformatics: Hands-On Exercise | AI for Efficient Programming" />

<meta name="twitter:description" content="Description about Course/Book." />

Expand Down Expand Up @@ -368,7 +368,7 @@
<div class="body-inner">
<div class="book-header" role="navigation">
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
</h1>
</div>

Expand Down
8 changes: 4 additions & 4 deletions docs/ai-for-bioinformatics.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Chapter 11 AI for Bioinformatics | Efficient Programming with AI</title>
<title>Chapter 11 AI for Bioinformatics | AI for Efficient Programming</title>
<meta name="description" content="Description about Course/Book." />
<meta name="generator" content="bookdown 0.24 and GitBook 2.6.7" />

<meta property="og:title" content="Chapter 11 AI for Bioinformatics | Efficient Programming with AI" />
<meta property="og:title" content="Chapter 11 AI for Bioinformatics | AI for Efficient Programming" />
<meta property="og:type" content="book" />


<meta property="og:description" content="Description about Course/Book." />


<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Chapter 11 AI for Bioinformatics | Efficient Programming with AI" />
<meta name="twitter:title" content="Chapter 11 AI for Bioinformatics | AI for Efficient Programming" />

<meta name="twitter:description" content="Description about Course/Book." />

Expand Down Expand Up @@ -368,7 +368,7 @@
<div class="body-inner">
<div class="book-header" role="navigation">
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
</h1>
</div>

Expand Down
10 changes: 5 additions & 5 deletions docs/annotating-your-code.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Chapter 7 Annotating Your Code | Efficient Programming with AI</title>
<title>Chapter 7 Annotating Your Code | AI for Efficient Programming</title>
<meta name="description" content="Description about Course/Book." />
<meta name="generator" content="bookdown 0.24 and GitBook 2.6.7" />

<meta property="og:title" content="Chapter 7 Annotating Your Code | Efficient Programming with AI" />
<meta property="og:title" content="Chapter 7 Annotating Your Code | AI for Efficient Programming" />
<meta property="og:type" content="book" />


<meta property="og:description" content="Description about Course/Book." />


<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Chapter 7 Annotating Your Code | Efficient Programming with AI" />
<meta name="twitter:title" content="Chapter 7 Annotating Your Code | AI for Efficient Programming" />

<meta name="twitter:description" content="Description about Course/Book." />

Expand Down Expand Up @@ -368,7 +368,7 @@
<div class="body-inner">
<div class="book-header" role="navigation">
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
</h1>
</div>

Expand Down Expand Up @@ -652,7 +652,7 @@ <h2><span class="header-section-number">7.10</span> Summary</h2>
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2023-11-01
## date 2023-11-07
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib source
Expand Down
10 changes: 5 additions & 5 deletions docs/annotation-hands-on-exercise.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Chapter 8 Annotation: Hands-On Exercise | Efficient Programming with AI</title>
<title>Chapter 8 Annotation: Hands-On Exercise | AI for Efficient Programming</title>
<meta name="description" content="Description about Course/Book." />
<meta name="generator" content="bookdown 0.24 and GitBook 2.6.7" />

<meta property="og:title" content="Chapter 8 Annotation: Hands-On Exercise | Efficient Programming with AI" />
<meta property="og:title" content="Chapter 8 Annotation: Hands-On Exercise | AI for Efficient Programming" />
<meta property="og:type" content="book" />


<meta property="og:description" content="Description about Course/Book." />


<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Chapter 8 Annotation: Hands-On Exercise | Efficient Programming with AI" />
<meta name="twitter:title" content="Chapter 8 Annotation: Hands-On Exercise | AI for Efficient Programming" />

<meta name="twitter:description" content="Description about Course/Book." />

Expand Down Expand Up @@ -368,7 +368,7 @@
<div class="body-inner">
<div class="book-header" role="navigation">
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
</h1>
</div>

Expand Down Expand Up @@ -569,7 +569,7 @@ <h2><span class="header-section-number">8.2</span> Questions</h2>
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Etc/UTC
## date 2023-11-01
## date 2023-11-07
##
## ─ Packages ───────────────────────────────────────────────────────────────────
## package * version date lib source
Expand Down
8 changes: 4 additions & 4 deletions docs/ethics-of-using-ai.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Chapter 2 Ethics of Using AI | Efficient Programming with AI</title>
<title>Chapter 2 Ethics of Using AI | AI for Efficient Programming</title>
<meta name="description" content="Description about Course/Book." />
<meta name="generator" content="bookdown 0.24 and GitBook 2.6.7" />

<meta property="og:title" content="Chapter 2 Ethics of Using AI | Efficient Programming with AI" />
<meta property="og:title" content="Chapter 2 Ethics of Using AI | AI for Efficient Programming" />
<meta property="og:type" content="book" />


<meta property="og:description" content="Description about Course/Book." />


<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Chapter 2 Ethics of Using AI | Efficient Programming with AI" />
<meta name="twitter:title" content="Chapter 2 Ethics of Using AI | AI for Efficient Programming" />

<meta name="twitter:description" content="Description about Course/Book." />

Expand Down Expand Up @@ -368,7 +368,7 @@
<div class="body-inner">
<div class="book-header" role="navigation">
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
</h1>
</div>

Expand Down
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@

<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Efficient Programming with AI</title>
<title>AI for Efficient Programming</title>
<meta name="description" content="Description about Course/Book." />
<meta name="generator" content="bookdown 0.24 and GitBook 2.6.7" />

<meta property="og:title" content="Efficient Programming with AI" />
<meta property="og:title" content="AI for Efficient Programming" />
<meta property="og:type" content="book" />


<meta property="og:description" content="Description about Course/Book." />


<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Efficient Programming with AI" />
<meta name="twitter:title" content="AI for Efficient Programming" />

<meta name="twitter:description" content="Description about Course/Book." />

Expand Down Expand Up @@ -368,7 +368,7 @@
<div class="body-inner">
<div class="book-header" role="navigation">
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
</h1>
</div>

Expand All @@ -389,7 +389,7 @@ <h1>
<img class= "hero-image" src="assets/dasl_thin_main_image.png">
</div>
<div id="header">
<h1 class="title">Efficient Programming with AI</h1>
<h1 class="title">AI for Efficient Programming</h1>
<h2 class="subtitle"><em>Harnessing the Power of Large Language Models</em></h2>
<p class="date"><em>November, 2023</em></p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Efficient Programming with AI"
title: "AI for Efficient Programming"
subtitle: "Harnessing the Power of Large Language Models"
date: "November, 2023"
site: bookdown::bookdown_site
Expand Down
Loading

0 comments on commit 9806e1a

Please sign in to comment.