Skip to content

Commit 2048f44

Browse files
committed
Merge branch 'main' of https://github.com/fhdsl/AI_for_software into main
2 parents 557df01 + c49c1b8 commit 2048f44

17 files changed

+19
-19
lines changed

docs/03-writing_code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ devtools::session_info()
538538
## collate en_US.UTF-8
539539
## ctype en_US.UTF-8
540540
## tz Etc/UTC
541-
## date 2023-07-21
541+
## date 2023-08-22
542542
##
543543
## ─ Packages ───────────────────────────────────────────────────────────────────
544544
## 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-
## 13.384 0.012 13.396
556+
## 9.212 0.008 9.219
557557
```
558558

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

582582
```
583583
## user system elapsed
584-
## 0.833 0.348 0.795
584+
## 0.807 0.300 0.786
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.394 0.355 0.483
612+
## 0.344 0.244 0.361
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-07-21
377+
## date 2023-08-22
378378
##
379379
## ─ Packages ───────────────────────────────────────────────────────────────────
380380
## package * version date lib source

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-07-21
41+
## date 2023-08-22
4242
##
4343
## ─ Packages ───────────────────────────────────────────────────────────────────
4444
## package * version date lib source

docs/about-the-authors.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ <h1>About the Authors</h1>
471471
## collate en_US.UTF-8
472472
## ctype en_US.UTF-8
473473
## tz Etc/UTC
474-
## date 2023-07-21
474+
## date 2023-08-22
475475
##
476476
## ─ Packages ───────────────────────────────────────────────────────────────────
477477
## package * version date lib source

docs/annotating-your-code.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ <h2><span class="header-section-number">5.10</span> Summary</h2>
648648
## collate en_US.UTF-8
649649
## ctype en_US.UTF-8
650650
## tz Etc/UTC
651-
## date 2023-07-21
651+
## date 2023-08-22
652652
##
653653
## ─ Packages ───────────────────────────────────────────────────────────────────
654654
## package * version date lib source

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ <h1>
387387
<div id="header">
388388
<h1 class="title">AI for Software Development</h1>
389389
<h2 class="subtitle"><em>Harnessing the Power of Large Language Models</em></h2>
390-
<p class="date"><em>July, 2023</em></p>
390+
<p class="date"><em>August, 2023</em></p>
391391
</div>
392392
<div id="about-this-course" class="section level1 unnumbered">
393393
<h1>About this Course</h1>
@@ -396,8 +396,8 @@ <h1>About this Course</h1>
396396
<h2>Available course formats</h2>
397397
<p>This course is available in multiple formats which allows you to take it in the way that best suits your needs.</p>
398398
<ul>
399-
<li>The material for this course can be viewed without login requirement on this <a href="hutchdatascience.org/AI_for_software/">Bookdown website</a>. This format might be most appropriate for you if you rely on screen-reader technology.
400-
<!-- - This course can be taken for [free certification through Leanpub](LINK HERE). -->
399+
<li>The material for this course can be viewed without login requirement on this <a href="https://hutchdatascience.org/AI_for_software">Bookdown website</a>. This format might be most appropriate for you if you rely on screen-reader technology.</li>
400+
<li>This course can be taken for <a href="https://leanpub.com/courses/fredhutch/ai_for_software">free certification through Leanpub</a>.
401401
<!-- - This course can be taken on [Coursera for certification here](LINK HERE) (but it is not available for free on Coursera). --></li>
402402
<li>Our courses are open source, you can find the <a href="https://github.com/fhdsl/AI_for_software/">source material for this course on GitHub</a>.</li>
403403
<li>The slides for the images in the course can be found <a href="https://docs.google.com/presentation/d/1MCNeSO4aOm1iESWDLOGTcx3aLEbnu8UttV0QGVAeafE/edit?usp=sharing">here</a>.</li>

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "AI for Software Development"
33
subtitle: "Harnessing the Power of Large Language Models"
4-
date: "July, 2023"
4+
date: "August, 2023"
55
site: bookdown::bookdown_site
66
documentclass: book
77
bibliography: [book.bib]
@@ -19,8 +19,8 @@ This course on AI for software development explores the use of AI large language
1919

2020
This course is available in multiple formats which allows you to take it in the way that best suits your needs.
2121

22-
- The material for this course can be viewed without login requirement on this [Bookdown website]( hutchdatascience.org/AI_for_software/). This format might be most appropriate for you if you rely on screen-reader technology.
23-
<!-- - This course can be taken for [free certification through Leanpub](LINK HERE). -->
22+
- The material for this course can be viewed without login requirement on this [Bookdown website](https://hutchdatascience.org/AI_for_software). This format might be most appropriate for you if you rely on screen-reader technology.
23+
- This course can be taken for [free certification through Leanpub](https://leanpub.com/courses/fredhutch/ai_for_software).
2424
<!-- - This course can be taken on [Coursera for certification here](LINK HERE) (but it is not available for free on Coursera). -->
2525
- Our courses are open source, you can find the [source material for this course on GitHub](https://github.com/fhdsl/AI_for_software/).
2626
- The slides for the images in the course can be found [here](https://docs.google.com/presentation/d/1MCNeSO4aOm1iESWDLOGTcx3aLEbnu8UttV0QGVAeafE/edit?usp=sharing).
-1 Bytes
Loading
-6 Bytes
Loading

0 commit comments

Comments
 (0)