Skip to content

Commit

Permalink
Add licence and readme, ready for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
rgayler committed Oct 11, 2021
1 parent a0d549e commit 7d766a3
Show file tree
Hide file tree
Showing 7 changed files with 584 additions and 0 deletions.
395 changes: 395 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

80 changes: 80 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
---
title: "Analogical Reasoning"
author: Ross Gayler
date: 2021-10-06
output: github_document
editor_options:
markdown:
wrap: 72
---

<!-- README.md is generated from README.Rmd. Please edit only README.Rmd -->

<!-- badges: start -->

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5560799.svg)](https://doi.org/10.5281/zenodo.5560799)
[![License: CC BY
4.0](https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)

<!-- badges: end -->

This repository contains the source code of the slides for the lecture
"Analogical Reasoning" given on 2021⁠-⁠10⁠-⁠06 as Module 6 of
[Neuroscience 299: Computing with High-Dimensional
Vectors](https://redwood.berkeley.edu/courses/computing-with-high-dimensional-vectors)
at the [Redwood Center for Theoretical
Neuroscience](https://redwood.berkeley.edu/), University of California,
Berkeley.

The purpose of this repository is to archive the source code for
creating the presentation.

## Related materials

All the materials related to this lecture have been archived on
[Zenodo](https://zenodo.org/):

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5560797.svg)](https://doi.org/10.5281/zenodo.5560797)
Video recording of lecture

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5552219.svg)](https://doi.org/10.5281/zenodo.5552219)
Slides (PDF)

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5560799.svg)](https://doi.org/10.5281/zenodo.5560799)
Source code of slides (this repository)

## Project structure

This code is structured as an [RStudio
project](https://support.rstudio.com/hc/en-us/articles/200526207-Using-Projects)
using the [R programming language](https://www.r-project.org/) and
[Rmarkdown](https://rmarkdown.rstudio.com/).

I assume you know how to run an R project, so won't go through all the
details of installation.

This project relies on the
[`renv`](https://rstudio.github.io/renv/articles/renv.html) package to
record the versions of all the packages used by the project. You will
need to have `renv` installed. Call `renv::restore()` from within the
project to install all the versions of the packages used in this
project.

The `assets/` directory contains the images used in the slides. These
images are copied from various papers and these sources are acknowledged
in the slides.

## Files

`lecture.Rmd` -
[Rmarkdown](https://rmarkdown.rstudio.com/authoring_basics.html) source
code for the slides as an
[ioslides](https://bookdown.org/yihui/rmarkdown/ioslides-presentation.html)
presentation.

`lecture.html` - The slides rendered as an HTML document. Open the file
with a web browser to give the presentation. The aspect ratio is 16:9.

`lecture.pdf` - The slides rendered as a PDF document. This was created
by printing the presentation to PDF from the web browser. The aspect
ratio is 4:3.
74 changes: 74 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
Analogical Reasoning
================
Ross Gayler
2021-10-06

<!-- README.md is generated from README.Rmd. Please edit only README.Rmd -->
<!-- badges: start -->

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5560799.svg)](https://doi.org/10.5281/zenodo.5560799)
[![License: CC BY
4.0](https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by/4.0/)

<!-- badges: end -->

This repository contains the source code of the slides for the lecture
“Analogical Reasoning” given on 2021⁠-⁠10⁠-⁠06 as Module 6 of
[Neuroscience 299: Computing with High-Dimensional
Vectors](https://redwood.berkeley.edu/courses/computing-with-high-dimensional-vectors)
at the [Redwood Center for Theoretical
Neuroscience](https://redwood.berkeley.edu/), University of California,
Berkeley.

The purpose of this repository is to archive the source code for
creating the presentation.

## Related materials

All the materials related to this lecture have been archived on
[Zenodo](https://zenodo.org/):

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5560797.svg)](https://doi.org/10.5281/zenodo.5560797)
Video recording of lecture

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5552219.svg)](https://doi.org/10.5281/zenodo.5552219)
Slides (PDF)

[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5560799.svg)](https://doi.org/10.5281/zenodo.5560799)
Source code of slides (this repository)

## Project structure

This code is structured as an [RStudio
project](https://support.rstudio.com/hc/en-us/articles/200526207-Using-Projects)
using the [R programming language](https://www.r-project.org/) and
[Rmarkdown](https://rmarkdown.rstudio.com/).

I assume you know how to run an R project, so won’t go through all the
details of installation.

This project relies on the
[`renv`](https://rstudio.github.io/renv/articles/renv.html) package to
record the versions of all the packages used by the project. You will
need to have `renv` installed. Call `renv::restore()` from within the
project to install all the versions of the packages used in this
project.

The `assets/` directory contains the images used in the slides. These
images are copied from various papers and these sources are acknowledged
in the slides.

## Files

`lecture.Rmd` -
[Rmarkdown](https://rmarkdown.rstudio.com/authoring_basics.html) source
code for the slides as an
[ioslides](https://bookdown.org/yihui/rmarkdown/ioslides-presentation.html)
presentation.

`lecture.html` - The slides rendered as an HTML document. Open the file
with a web browser to give the presentation. The aspect ratio is 16:9.

`lecture.pdf` - The slides rendered as a PDF document. This was created
by printing the presentation to PDF from the web browser. The aspect
ratio is 4:3.
6 changes: 6 additions & 0 deletions assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Assets

This directory contains the images used in the slides.
These are copied from various papers
and the sources are acknowledged in the slides.

Binary file removed assets/blokpoel - explanation.png
Binary file not shown.
29 changes: 29 additions & 0 deletions lecture.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,37 @@ output:
editor_options:
markdown:
wrap: 72

# This is an ioslides presentation
# Present the html file by opening it in a web browser (e.g. Chrome)
# The presentation can be printed to PDF from the web browser
#
# Unfortunately:
# 1. The html presentation is fixed size, which means displaying it for screen
# sharing or projection can be a bit fiddly to get the slide to fill the
# view port (https://github.com/rstudio/rmarkdown/issues/185).
# 2. Even when the presentation is set to widescreen (16:9) the print to PDF
# aspect ratio is set to 4:3.
#
# Next time I will try to find a more modern presentation package that allows
# printing to PDF.
---

```{r LICENSE, include=FALSE}
# "Analogical Reasoning" (c) by Ross W. Gayler 2021
# This document is the source for the slides of the lecture
# "Analogical reasoning" presented 2021-10-06 as Module 6 of Neuroscience 299:
# Computing with High-Dimensional Vectors at the Redwood Center for Theoretical
# Neuroscience, University of California, Berkeley.
# https://redwood.berkeley.edu/courses/computing-with-high-dimensional-vectors
#
# This document is licensed under a Creative Commons Attribution 4.0 International License.
#
# You should have received a copy of the license along with this work.
# If not, see http://creativecommons.org/licenses/by/4.0/.
```

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
Expand Down
Binary file modified lecture.pdf
Binary file not shown.

0 comments on commit 7d766a3

Please sign in to comment.