Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update routing #198

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
ac694fb
Add content, work in progress for Juan
Robinlovelace Feb 6, 2025
f26e3f1
update p3/index.qmd and DESCRIPTION
yyuanxuan Feb 11, 2025
64ff1c8
Update p3/index.qmd
yyuanxuan Feb 12, 2025
eab53d7
Update p3/index.qmd
yyuanxuan Feb 12, 2025
cd9ff35
Update p3/index.qmd
yyuanxuan Feb 12, 2025
b69cf90
minor change
yyuanxuan Feb 12, 2025
509ca91
Merge pull request #178 from itsleeds/update-p3
Robinlovelace Feb 12, 2025
07f7ad1
Post merge tweaks, close #179
Robinlovelace Feb 12, 2025
d724511
Auto-style with styler.equals::style_file(p3/index.qmd)
Robinlovelace Feb 12, 2025
7f8994f
Remove excess whitespace following https://dev.to/0xkoji/remove-space…
Robinlovelace Feb 12, 2025
3e92379
Update eval false
Robinlovelace Feb 12, 2025
4c5c685
Merge pull request #181 from itsleeds/routing
Robinlovelace Feb 12, 2025
5f0e64a
Add zonebuilder remotes
Robinlovelace Feb 12, 2025
c42a677
add buffer analysis
yyuanxuan Feb 12, 2025
84eaf18
Merge pull request #182 from itsleeds/update-p3-buffer
Robinlovelace Feb 12, 2025
fb67833
Merge pull request #180 from itsleeds/179-post-merge-improvements-to-p3
yyuanxuan Feb 12, 2025
de155d2
added examples for Seminar 1
juanfonsecaLS1 Feb 12, 2025
3c58738
added a file with TM stations
juanfonsecaLS1 Feb 12, 2025
c1af339
updated gitignore to ignore zip files
juanfonsecaLS1 Feb 12, 2025
45b89c4
add bonus
yyuanxuan Feb 12, 2025
a725e97
Merge pull request #183 from itsleeds/p3-bonus
Robinlovelace Feb 12, 2025
cbef141
Show p3
Robinlovelace Feb 12, 2025
a88314d
Update homework
Robinlovelace Feb 12, 2025
066da00
Add example prompt, close #184
Robinlovelace Feb 12, 2025
4464d10
Merge pull request #185 from itsleeds/184-add-example-prompt
Robinlovelace Feb 12, 2025
db7db79
Update p4 homework doc
Robinlovelace Feb 12, 2025
a581c95
Update index.qmd
yyuanxuan Feb 13, 2025
5beccc4
Merge pull request #186 from itsleeds/update-p3-tweaks
Robinlovelace Feb 13, 2025
bac1ff4
added pedestrian dataset
juanfonsecaLS1 Feb 13, 2025
d70bb37
fixed missing maptiles
juanfonsecaLS1 Feb 13, 2025
77eafc0
Merge pull request #170 from itsleeds/169-s1-content
Robinlovelace Feb 13, 2025
1762f59
Minor fixes, close #187 (#188)
Robinlovelace Feb 13, 2025
7aa0c28
Update d2
Robinlovelace Feb 13, 2025
2756dc6
Tweak landing page, big-up the module and team
Robinlovelace Feb 13, 2025
c441e0d
Add formative assessment brief
Robinlovelace Feb 13, 2025
d800d1b
Request interim report in .qmd format only
Robinlovelace Feb 13, 2025
bce0497
Merge pull request #191 from itsleeds/190-assessment-details
Robinlovelace Feb 13, 2025
7e340ce
Set maximum zip size to 10 MB
Robinlovelace Feb 13, 2025
a22c0fb
Allow zip files to be up to 30 MB
Robinlovelace Feb 13, 2025
2efc5b6
Tweak formative assessment brief
Robinlovelace Feb 13, 2025
7554cad
Fix typos in timetable, close #192
Robinlovelace Feb 13, 2025
092ca95
Rename practical 6
Robinlovelace Feb 14, 2025
f4dea43
Merge pull request #193 from itsleeds/192-update-timetable
Robinlovelace Feb 14, 2025
528fd91
Update notification
Robinlovelace Feb 14, 2025
61d7ca9
Update deadline 2 date
Robinlovelace Feb 14, 2025
2a205c1
Update deadline for d2
Robinlovelace Feb 14, 2025
e341105
Ignore docs
Robinlovelace Feb 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ _freeze/
*cache*
.Rproj.user
*.geojson
*.zip


!s1/Estaciones_Troncales_de_TRANSMILENIO.geojson
*.docx
*.pdf
6 changes: 4 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ Imports:
spData,
zoo,
pct,
zonebuilder
zonebuilder,
ggspatial
Remotes:
nowosad/spDataLarge,
itsleeds/pct
itsleeds/pct,
zonebuilders/zonebuilder
8 changes: 5 additions & 3 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ website:
text: Practical 1
- href: p2
text: Practical 2
# - href: p3
# text: Practical 3
- href: p3
text: Practical 3
- href: s1
text: Seminar 1
# - href: p4
# text: Practical 4
# - href: p5
Expand All @@ -47,7 +49,7 @@ website:
icon: info-circle
dismissable: true
# content: "**Alert** ensure you have completed the second homework, described at the end of [itsleeds.github.io/tds/p1](https://itsleeds.github.io/tds/p1/#homework) by this Thursday 6th February."
content: "**Homework to present at the next session**: Ensure you have completed the second homework, described at the end of [itsleeds.github.io/tds/p2](https://itsleeds.github.io/tds/p2/#homework) by Thursday 13th February."
content: "**Homework to present at the next session**: Ensure you have completed the second homework, described at the end of [itsleeds.github.io/tds/p3](https://itsleeds.github.io/tds/p3/#homework) by **Thursday 20th February**. Note: there will be a practical (10:00-13:00) AND a seminar (14:00-17:00) on this day. Location: Institute for Transport Studies, room 1.11."
type: primary
position: below-navbar

Expand Down
177 changes: 174 additions & 3 deletions d2/index.qmd
Original file line number Diff line number Diff line change
@@ -1,11 +1,182 @@
---
title: "Draft portfolio"
title: "Formative assessment brief: portfolio plan and reproducible data science code"
bibliography: ../tds.bib
toc: true
toc: false
execute:
cache: true
number-sections: true
---

This is a placeholder page, contents will be added
```{r}
#| echo: false
#| eval: false
# docx format results in higher accessibility scores on Minerva:
quarto::quarto_render("d2/index.qmd", output_format = "docx", output_file = "tds-formative-assessment-brief.docx")
file.rename("docs/tds-formative-assessment-brief.docx", "~/OneDrive/career/modules/tds/2024-25/TRAN5340M TDS Formative Assessment Brief.docx")
```

```{bash}
#| eval: false
#| echo: false
gh release upload 2025 formative-assessment-brief.docx
gh release upload 2025 formative-assessment-brief.pdf
```

<!-- Based on https://github.com/itsleeds/tdsarchive/blob/master/coursework-template.md -->

## Module Code & Title

**TRAN5340M** - Using Data Science to Solve Transport Problems

## Assessment Title

Formative Coursework: Portfolio Plan and Reproducible Code

## Assessment Type

Portfolio Plan and Reproducible Code Submission

## Learning Outcomes Assessed

1. To develop a clear plan for applying data science techniques to a transport problem.
2. To demonstrate the ability to work with datasets and produce reproducible code.
3. To critically engage with academic literature and formulate research questions.

## Assessment Length/Time Limit Guidance

- A 5-page maximum PDF document outlining your topic, plan, and preliminary analysis.
- A .zip file containing the reproducible code (in a Quarto document saved as a `.qmd` file) and the resulting PDF.

## Use of GenAI in This Assessment

**AMBER**: AI tools can be used in an assistive role.
You are permitted to use AI tools for specific defined processes within the assessment. See below for further details.

## Weighting

Formative (non-assessed, but required for feedback and guidance).

## Deadline or Date of Assessment

**Non-assessed submission deadline**: 28th February 2025, 13:59.

## Submission Method

- A `.zip` file with:
- A short (5-page max) PDF document.
- Reproducible code (e.g., `.qmd` file).
- A maximum zip file size of 30 MB but ideally less (note: you may need to remove large data files from the folder before zipping).
- Submitted via Turnitin.

## Feedback Provision

Feedback will be provided within 15 working days of submission. Written feedback will be provided alongside guidance on how to proceed with the final coursework.

## Module Leader & Contact Details

**Professor Robin Lovelace**
[email protected]

---

## Assessment Summary Guidance

This formative coursework is designed to help you plan and receive feedback on your final coursework. You will submit a `.zip` file containing a PDF document and reproducible code. The document should outline your topic, datasets, research questions, and analysis plan. Feedback will be provided to guide your final submission.

---

## Use of GenAI

**Generative AI Category: AMBER**
Under this category, AI tools can be used in an assistive role.

In this assessment, AI tools can be utilised in an assistive role to:
- Act as a support tutor, assisting your research on the topic (e.g., asking clarifying questions or suggesting areas to investigate).
- Test and debug any code you produce yourself as part of the assignment.
- Provide ideas or inspiration to help you overcome a creative block.
- Give feedback on content or proofread content that you have generated yourself.

In this assessment, AI tools **cannot** be utilised to:
- Produce the entirety of, or sections of, a piece of work that you submit for assessment beyond that which is outlined above.

The use of Generative AI must be acknowledged in an **‘Acknowledgements’** section of any piece of academic work where it has been used as a functional tool to assist in the process of creating academic work. The minimum requirement to include in acknowledgement:
- Name and version of the generative AI system used (e.g., ChatGPT-4.0).
- Publisher (company that made the AI system) (e.g., OpenAI).
- URL of the AI system.
- Brief description (single sentence) of the context in which the tool was used.

**Example:**
“I acknowledge the use of ChatGPT-3.5 (Open AI, https://chat.openai.com/) to summarise my initial notes and to proofread my final draft.”

The standard Academic Misconduct procedure applies for students believed to have ignored this categorisation.
For detailed guidance, see [Generative AI and Assessments](https://generative-ai.leeds.ac.uk/ai-and-assessments/categories-of-assessments/).

---

## General Guidance

Skills@Library hosts useful guidance on academic skills, including specific guidance on academic writing and referencing. Visit [Academic Skills | Library | University of Leeds](https://library.leeds.ac.uk/info/1402/referencing/50/leeds-harvard-introduction).

---

## Assessment Criteria and Process

### Submission Requirements

You will submit a `.zip` file containing:

1. A **5-page maximum PDF document** with the following:
- A draft title of your topic.
- The main dataset you will use and other potential datasets.
- Ideas on a research question.
- Questions you would like to ask about the topic (e.g., "Is this a suitable dataset?").
- At least **2 references** to academic literature related to the topic.
- Minimal code and/or a description of where you accessed the data and how you imported it.
- Any preliminary analysis you have done.
- A suggested structure for the document:
- Topics considered.
- Input datasets.
- Analysis plan (e.g., a workflow diagram as shown [here](https://user-images.githubusercontent.com/1825120/127524923-7d9f5511-84a6-430b-8de9-a603a5524f39.png)).
- Motivation for choosing this topic.
- Questions and options.
2. **Reproducible code** in a `.qmd` file.

### Purpose of the Submission

- To allow you to ask questions to the course team (e.g., "Does this sound like a reasonable input dataset and topic?").
- To describe progress on reading input datasets and the analysis plan.
- To receive feedback on your approach before the final submission.

### Rendering Instructions

- If you cannot render to PDF directly, render to HTML and convert to PDF by printing to PDF from your browser.

---

## Presentation/Formatting and Referencing

You must appropriately cite all supporting evidence using the **Leeds Harvard referencing style**. For guidance, visit [Leeds Harvard Referencing](https://library.leeds.ac.uk/info/1402/referencing/50/leeds-harvard-introduction).

See [the authoring tutorial with RStudio at quarto.org](https://quarto.org/docs/get-started/authoring/rstudio.html#citations) for guidance on how to add citations to your document in RStudio's Visual Editor mode.

---

## Academic Misconduct and Plagiarism

The university expects that all the work you do, which includes all forms of assessments submitted and examinations taken, meet the university’s standard for Academic Integrity. All forms of Academic Integrity are investigated through the Academic Misconduct Procedure. This applies to all taught elements of your study, including undergraduate programmes, taught postgraduate study, and taught elements of research degrees. Breaching academic integrity standards can lead to serious penalties.

Guidance on Academic Integrity and Academic Misconduct can be found on the [For Students website pages](https://students.leeds.ac.uk/info/10110/academic-integrity). Full definitions of offences under the Academic Misconduct Procedure can be found in the [Academic Misconduct Procedure](https://secretariat.leeds.ac.uk/student-cases/academic-misconduct/).

---

## Assessment Criteria Rubric

The assessment is formative so is not assessed, but you will be provided with feedback on the following criteria:

- Clarity and feasibility of the proposed topic and research question.
- Appropriateness of the selected datasets.
- Engagement with academic literature.
- Quality of the analysis plan and workflow diagram.
- Reproducibility of the code and documentation.

See the [Marking Criteria](https://itsleeds.github.io/tds/marking-criteria.html) for more details.
3 changes: 2 additions & 1 deletion index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ number-sections: false
---

A module on using data science to solve transport problems.
This couse is based at the University of Leeds' Institute for Transport Studies.
This couse is based at the University of Leeds' Institute for Transport Studies (module code [TRAN5340M](https://webprod3.leeds.ac.uk/catalogue/dynmodules.asp?Y=202425&M=TRAN-5340M)).
Led by Robin Lovelace, Professor of Transport Data Science and developer of several data-driven solutions for effective transport planning, the course is designed to teach you how to use data science to solve transport problems.
It has evolved over a decade of teaching and research in the field and aims to teach you up-to-date and future-proof skills with practical examples and reproducible workflows using industry-standard data science tools.

# Prerequisites
Expand Down
4 changes: 2 additions & 2 deletions p1/slides.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ The Bureau of Labor Statistics in the US projects a 35% increase in data science

<p lang="en" dir="ltr">

Milestone passed in my academic career, first online-only delivery of lecture <a href="https://twitter.com/ITSLeeds?ref_src=twsrc%5Etfw">@ITSLeeds</a>, seems to have worked, live code demo with <a href="https://twitter.com/hashtag/rstats?src=hash&amp;ref_src=twsrc%5Etfw">#rstats</a>/<a href="https://twitter.com/rstudio?ref_src=twsrc%5Etfw">@rstudio</a>, recording, chat + all🎉<br><br>Thanks students for 'attending' + remote participation, we'll get through this together.<a href="https://twitter.com/hashtag/coronavirus?src=hash&amp;ref_src=twsrc%5Etfw">#coronavirus</a> <a href="https://t.co/wlAUxmZj5r">pic.twitter.com/wlAUxmZj5r</a>
Milestone passed in my academic career, first online-only delivery of lecture <a href="https://twitter.com/ITSLeeds?ref_src=twsrc%5Etfw">@ITSLeeds</a>, seems to have worked, live code demo with <a href="https://twitter.com/hashtag/rstats?src=hash&amp;ref_src=twsrc%5Etfw">#rstats</a>/<a href="https://twitter.com/rstudio?ref_src=twsrc%5Etfw">rstudio</a>, recording, chat + all🎉<br><br>Thanks students for 'attending' + remote participation, we'll get through this together.<a href="https://twitter.com/hashtag/coronavirus?src=hash&amp;ref_src=twsrc%5Etfw">#coronavirus</a> <a href="https://t.co/wlAUxmZj5r">pic.twitter.com/wlAUxmZj5r</a>

</p>

— Robin Lovelace (@robinlovelace) <a href="https://twitter.com/robinlovelace/status/1239930988416897033?ref_src=twsrc%5Etfw">March 17, 2020</a>
— Robin Lovelace <a href="https://twitter.com/robinlovelace/status/1239930988416897033?ref_src=twsrc%5Etfw">March 17, 2020</a>

</blockquote>

Expand Down
4 changes: 3 additions & 1 deletion p2/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,14 @@ system("gh release upload 2025 lad_boundaries_2023.geojson")
base_url = "https://github.com/ITSLeeds/tds/releases/download/2025/"
if (!file.exists("custom-filtered-2025-02-04T00_06_30Z.csv")) {
download.file(paste0(base_url, "custom-filtered-2025-02-04T00_06_30Z.csv"), "custom-filtered-2025-02-04T00_06_30Z.csv")
}
if (!file.exists("lad_boundaries_2023.geojson")) {
download.file(paste0(base_url, "lad_boundaries_2023.geojson"), "lad_boundaries_2023.geojson")
}
res_sf = sf::st_read("lad_boundaries_2023.geojson")
```

```{r}
res_sf = sf::st_read("lad_boundaries_2023.geojson")
travel_to_work_lad = readr::read_csv("custom-filtered-2025-02-04T00_06_30Z.csv")
# names(travel_to_work_lad)
# [1] "Lower tier local authorities Code"
Expand Down
Loading