Skip to content

Commit 5e234df

Browse files
committed
Merge branch 'main' of https://github.com/fhdsl/AI_for_software into main
2 parents e69b2f0 + 9806e1a commit 5e234df

25 files changed

+87
-87
lines changed

docs/03-writing_code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ devtools::session_info()
504504
## collate en_US.UTF-8
505505
## ctype en_US.UTF-8
506506
## tz Etc/UTC
507-
## date 2023-11-01
507+
## date 2023-11-07
508508
##
509509
## ─ Packages ───────────────────────────────────────────────────────────────────
510510
## package * version date lib source

docs/03-writing_code_activity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ devtools::session_info()
5353
## collate en_US.UTF-8
5454
## ctype en_US.UTF-8
5555
## tz Etc/UTC
56-
## date 2023-11-01
56+
## date 2023-11-07
5757
##
5858
## ─ Packages ───────────────────────────────────────────────────────────────────
5959
## package * version date lib source

docs/04-refactoring.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ proc.time() - start_time
553553

554554
```
555555
## user system elapsed
556-
## 7.971 0.000 7.970
556+
## 8.933 0.003 8.935
557557
```
558558

559559
:::{.query}
@@ -581,7 +581,7 @@ proc.time() - start_time
581581

582582
```
583583
## user system elapsed
584-
## 0.800 0.527 0.620
584+
## 0.775 0.564 0.625
585585
```
586586

587587
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.
@@ -609,7 +609,7 @@ proc.time() - start_time
609609

610610
```
611611
## user system elapsed
612-
## 0.340 0.371 0.285
612+
## 0.361 0.299 0.263
613613
```
614614

615615
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.

docs/05-annotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ devtools::session_info()
374374
## collate en_US.UTF-8
375375
## ctype en_US.UTF-8
376376
## tz Etc/UTC
377-
## date 2023-11-01
377+
## date 2023-11-07
378378
##
379379
## ─ Packages ───────────────────────────────────────────────────────────────────
380380
## package * version date lib source

docs/05-annotation_activity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ devtools::session_info()
192192
## collate en_US.UTF-8
193193
## ctype en_US.UTF-8
194194
## tz Etc/UTC
195-
## date 2023-11-01
195+
## date 2023-11-07
196196
##
197197
## ─ Packages ───────────────────────────────────────────────────────────────────
198198
## package * version date lib source

docs/404.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44

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

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

1414

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

1717

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

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

@@ -368,7 +368,7 @@
368368
<div class="body-inner">
369369
<div class="book-header" role="navigation">
370370
<h1>
371-
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
371+
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
372372
</h1>
373373
</div>
374374

docs/About.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Tools Used:
3838
## collate en_US.UTF-8
3939
## ctype en_US.UTF-8
4040
## tz Etc/UTC
41-
## date 2023-11-01
41+
## date 2023-11-07
4242
##
4343
## ─ Packages ───────────────────────────────────────────────────────────────────
4444
## package * version date lib source

docs/about-the-authors.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44

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

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

1414

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

1717

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

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

@@ -368,7 +368,7 @@
368368
<div class="body-inner">
369369
<div class="book-header" role="navigation">
370370
<h1>
371-
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
371+
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
372372
</h1>
373373
</div>
374374

@@ -475,7 +475,7 @@ <h1>About the Authors</h1>
475475
## collate en_US.UTF-8
476476
## ctype en_US.UTF-8
477477
## tz Etc/UTC
478-
## date 2023-11-01
478+
## date 2023-11-07
479479
##
480480
## ─ Packages ───────────────────────────────────────────────────────────────────
481481
## package * version date lib source

docs/ai-for-bioinformatics-hands-on-exercise.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44

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

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

1414

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

1717

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

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

@@ -368,7 +368,7 @@
368368
<div class="body-inner">
369369
<div class="book-header" role="navigation">
370370
<h1>
371-
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
371+
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
372372
</h1>
373373
</div>
374374

docs/ai-for-bioinformatics.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44

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

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

1414

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

1717

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

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

@@ -368,7 +368,7 @@
368368
<div class="body-inner">
369369
<div class="book-header" role="navigation">
370370
<h1>
371-
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">Efficient Programming with AI</a>
371+
<i class="fa fa-circle-o-notch fa-spin"></i><a href="./">AI for Efficient Programming</a>
372372
</h1>
373373
</div>
374374

0 commit comments

Comments
 (0)