# D4S Sunday Briefing #196

Issue #196 of the Data Science Briefing, the weekly newsletter of Data For Science, March 27, 2023. Published at https://data4sci.com/newsletter/data-science-briefing-196

Dear friends,\
Welcome to the March 26th edition of the Sunday Briefing. This week we're on hiatus from blogging. While we work on our next post, you can catch up on the latest post in the Viz4Sci series: [Waterfall Chart](https://viz4sci.substack.com/p/waterfall-chart). The latest [Medium](https://medium.data4sci.com/) post "[Top 10 Books we read in 2022](https://medium.data4sci.com/top-10-books-we-read-in-2022-c3db94a5bdb7)" and the most recent post on the G4Sci series: [Network Attacks: Breaking up a network without observing it completely](https://graphs4sci.substack.com/p/network-attacks).

Several of you have reached out in recent weeks asking how they can help support the work we do here at Data For Science. While the Sunday Briefing is a labor of love and will always remain free, it is not without costs, and any help is appreciated.

If you wish to support our work, there are several options:

1. Paid subscription to [Graphs for Science](https://graphs4sci.substack.com/subscribe) or [Visualization for Science](https://viz4sci.substack.com/subscribe) which gives you complete access to the archive of previous posts.
2. Subscribe to Medium using our [referral link](https://bgoncalves.medium.com/membership) at no extra cost to you
3. Directly through a one-time [PayPal](http://paypal.me/data4sci) donation.

Don't forget we have the very first edition of the [Interactive Data Visualization with Python](https://data4sci.com/interactive-data-visualization) webinar coming up in less than 24h, but there's still time to [Register](https://www.oreilly.com/live-events/interactive-data-visualization-with-python/0636920085839/) so you don't miss out on learning everything you need to know about generating interactive visualizations for your data using matplotlib, bokeh and plotly.

On our regularly scheduled content, we learn how to [build a Semantic Search Engine With OpenAI and Pinecone](https://sigmoidprime.com/post/searchthearxiv/), how to [run 100B+ language models at home, BitTorrent‑style](https://petals.ml/) and explore [a Beginner’s Guide to Synthetic Data](https://pub.towardsai.net/a-beginners-guide-to-synthetic-data-52f0d84ea434).

On the academic front, we dive into [strong connectivity in real directed networks](https://www.pnas.org/doi/abs/10.1073/pnas.2215752120?af=R), [a manifesto for applying behavioural science](https://www.nature.com/articles/s41562-023-01555-3) and the[ Correlated Impact Dynamics in Science](https://arxiv.org/abs/2303.03646).

This week’s Data Science Book is "[The Recursive Book of Recursion](https://amzn.to/40CR1r7)" by Al Sweigart. As always you can find **all the previous book recommendations** on our [website](https://data4sci.com/book-reviews). In the video of the week, we have a tutorial that teaches you [How to build GPT: from scratch, in code, spelled out.](https://www.youtube.com/watch?v=kCc8FmEb1nY)

Data shows that the best way for a newsletter to grow is by word of mouth, so if you think one of your friends or colleagues would enjoy this newsletter, just go ahead and forward this email to them. This will help us spread the word!

*Semper discentes,*

The D4S Team

## Book of the week

[The Recursive Book of Recursion](https://amzn.to/40CR1r7)

This week’s Data Science Book is " The Recursive Book of Recursion " by Al Sweigart, a highly recommended book for programmers of all levels. The book explains recursion in a clear and approachable way. It begins by laying important groundwork and explains functions and their operation and features. The author spends significant time explaining the call stack, what it does, how it is structured, and how it operates, leading to a discussion of ‘stack overflow,’ one of the risks of using recursion. He then devotes an entire chapter to comparing recursion and iteration, demonstrating that in the vast majority of cases, recursive functions are not necessary and in some cases perform worse than their iterative counterparts. However, the book also shows where recursion is actually a good idea and where it is a good fit. Sweigart explores traversing tree structures and demonstrates how memoization can improve the efficiency of some recursive functions. The book ends with several projects that build on the concepts that come before, including the Droste Effect, a recursive art technique that generates a similar recursive image from any photograph or drawing utilizing images. Overall, the Recursive Book of Recursion is a great read for beginners and intermediate programmers alike. The book teaches about recursion and stretches the reader to think differently while confidently showing that seemingly lofty concepts are within reach.

## Links of the week

1. [Building a Semantic Search Engine With OpenAI and Pinecone](https://sigmoidprime.com/post/searchthearxiv/) (sigmoidprime.com)
2. [Run 100B+ language models at home, BitTorrent‑style](https://petals.ml/) (petals.ml)
3. [The genie escapes: Stanford copies the ChatGPT AI for less than $600](https://newatlas.com/technology/stanford-alpaca-cheap-gpt/) (newatlas.com)
4. [The Unpredictable Abilities Emerging From Large AI Models](https://www.quantamagazine.org/the-unpredictable-abilities-emerging-from-large-ai-models-20230316/) (quantamagazine.org)
5. [Leveraging Time-Series Segmentation and Machine Learning for Better Forecasting Accuracy](https://odsc.medium.com/leveraging-time-series-segmentation-and-machine-learning-for-better-forecasting-accuracy-4049656ce29f) (odsc.medium.com)
6. [A Beginner's Guide to Synthetic Data](https://pub.towardsai.net/a-beginners-guide-to-synthetic-data-52f0d84ea434) (pub.towardsai.net)
7. [Recipe for Disaster: The Formula That Killed Wall Street](https://www.wired.com/2009/02/wp-quant/) (wired.com)

## Papers of the week

- [Strong connectivity in real directed networks](https://www.pnas.org/doi/abs/10.1073/pnas.2215752120?af=R), N. Rodgers, P. Tiňo, S. Johnson
- [Spatial immunization to abate disease spreading in transportation hubs](https://www.nature.com/articles/s41467-023-36985-0), M. Mazzoli, R. Gallotti, F. Privitera, P. Colet, J. J. Ramasco
- [A manifesto for applying behavioural science](https://www.nature.com/articles/s41562-023-01555-3), M. Hallsworth
- [Superhuman artificial intelligence can improve human decision-making by increasing novelty](https://www.pnas.org/doi/abs/10.1073/pnas.2214840120?af=R), M. Shin, J. Kim, B. van Opheusden, T. L. Griffiths
- [Linking social network structure and function to social preferences](https://arxiv.org/abs/2303.08107), J. B. Brask, A. Koher, D. P. Croft, S. Lehmann
- [Correlated Impact Dynamics in Science](https://arxiv.org/abs/2303.03646), J. Liu, T. Kunal, D. Wang, C. Song
- [From localized to well-mixed: How commuter interactions shape disease spread](https://arxiv.org/abs/2303.04490), A. Winn, A. Konkol, E. Katifori

## Video of the week

[Let's build GPT: from scratch, in code, spelled out](https://www.youtube.com/watch?v=kCc8FmEb1nY)
