<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Source on The Edge Cases</title>
    <link>https://www.kylestratis.com/tags/source/</link>
    <description>Recent content in Source on The Edge Cases</description>
    <generator>Hugo</generator>
    <language>en</language>
    <copyright>© 2025</copyright>
    <lastBuildDate>Fri, 18 Sep 2026 22:38:55 -0400</lastBuildDate>
    <atom:link href="https://www.kylestratis.com/tags/source/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Notes for Backpropagation Through Space Time and the Brain</title>
      <link>https://www.kylestratis.com/notes/notes-for-backpropagation-through-space-time-and-the-brain/</link>
      <pubDate>Mon, 15 Dec 2025 18:11:24 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/notes-for-backpropagation-through-space-time-and-the-brain/</guid>
      <description>&lt;h2 id=&#34;summary&#34;&gt;Summary&lt;/h2&gt;&#xA;&lt;p&gt;What are the key ideas?&#xA;How can I apply this knowledge that I learned?&#xA;How do these ideas relate to what I already know?&lt;/p&gt;&#xA;&lt;h2 id=&#34;ideas&#34;&gt;💡Ideas&lt;/h2&gt;&#xA;&lt;p&gt;Note: These should become Project Idea fleeting notes with a link back to this source.&lt;/p&gt;&#xA;&lt;h2 id=&#34;fleeting-notes&#34;&gt;Fleeting Notes&lt;/h2&gt;&#xA;&lt;p&gt;Note: Conceptual notes that aren&amp;rsquo;t as tied to the source material. These are fodder for processing into evergreen notes.&lt;/p&gt;&#xA;&lt;h2 id=&#34;literature-notes&#34;&gt;Literature Notes&lt;/h2&gt;&#xA;&lt;p&gt;Note: Commentary on the book or things you don&amp;rsquo;t want to forget. Maybe for use in a public mind garden. Should have a visible source reference. These are &amp;ldquo;weakly evergreen&amp;rdquo; because they&amp;rsquo;re tied heavily to a single piece. Must be in your own words. These should be processed into Evergreen notes, or used as fodder for them.&#xA;&amp;ldquo;“Literature notes”, titled after a single work and meant primarily as linkages to other more durable notes, and as targets for backlinks. I write these roughly as “outline notes,” except for someone else’s ideas.&amp;rdquo;&#xA;These should be regularly refactored into individual notes in &lt;code&gt;Sources/! Literature Notes/&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Designing Machine Learning Systems</title>
      <link>https://www.kylestratis.com/notes/designing-machine-learning-systems/</link>
      <pubDate>Wed, 04 Oct 2023 00:41:17 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/designing-machine-learning-systems/</guid>
      <description>&lt;p&gt;[author: Chip Huyen]&lt;/p&gt;&#xA;&lt;h2 id=&#34;summary&#34;&gt;Summary&lt;/h2&gt;&#xA;&lt;p&gt;What are the key ideas?&#xA;How can I apply this knowledge that I learned?&#xA;How do these ideas relate to what I already know?&lt;/p&gt;&#xA;&lt;h2 id=&#34;ideas&#34;&gt;💡Ideas&lt;/h2&gt;&#xA;&lt;p&gt;Note: These should become Project Idea fleeting notes with a link back to this source.&lt;/p&gt;&#xA;&lt;h2 id=&#34;fleeting-notes&#34;&gt;Fleeting Notes&lt;/h2&gt;&#xA;&lt;p&gt;Note: Conceptual notes that aren&amp;rsquo;t as tied to the source material. These are fodder for processing into evergreen notes.&lt;/p&gt;&#xA;&lt;h2 id=&#34;literature-notes&#34;&gt;Literature Notes&lt;/h2&gt;&#xA;&lt;p&gt;Note: Commentary on the book or things you don&amp;rsquo;t want to forget. Maybe for use in a public mind garden. Should have a visible source reference. These are &amp;ldquo;weakly evergreen&amp;rdquo; because they&amp;rsquo;re tied heavily to a single piece. Must be in your own words. These should be processed into Evergreen notes, or used as fodder for them.&#xA;&amp;ldquo;“Literature notes”, titled after a single work and meant primarily as linkages to other more durable notes, and as targets for backlinks. I write these roughly as “outline notes,” except for someone else’s ideas.&amp;rdquo;&#xA;These should be regularly refactored into individual notes in &lt;code&gt;Sources/! Literature Notes/&lt;/code&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Democratizing LLMs for Low-Resource Languages by Leveraging Their English Dominant Abilities With Linguistically Diverse Prompts</title>
      <link>https://www.kylestratis.com/notes/democratizing-llms-for-low-resource-languages-by-leveraging-their-english-domina/</link>
      <pubDate>Tue, 04 Jul 2023 20:05:00 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/democratizing-llms-for-low-resource-languages-by-leveraging-their-english-domina/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;[author: Xuan-Phi Nguyen, Sharifah Magani Aljunied, Shafiq Joty, Lidong Bing]&#xA;[full title: Democratizing LLMs for Low-Resource Languages by Leveraging Their English Dominant Abilities With Linguistically Diverse Prompts]&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;literature-notes&#34;&gt;Literature Notes&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-dataview&#34; data-lang=&#34;dataview&#34;&gt;TABLE rows.file.link AS &amp;#34;Literature Note&amp;#34;, rows.file.cday AS &amp;#34;Date&amp;#34;&#xA;FROM #note/literature AND [Democratizing LLMs for Low-Resource Languages by Leveraging Their English Dominant Abilities With Linguistically Diverse Prompts](/notes/democratizing-llms-for-low-resource-languages-by-leveraging-their-english-domina/)&#xA;GROUP BY file.link&#xA;sort date ASCENDING&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;highlights&#34;&gt;Highlights&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;in low-resource languages, obtaining such hand-picked exemplars can still be challenging, where unsupervised techniques may be necessary (Page 1)&lt;/li&gt;&#xA;&lt;li&gt;competent generative capabilities of LLMs are observed only in high-resource languages, while their performances among under-represented languages fall behind due to pre-training data imbalance (Page 1)&lt;/li&gt;&#xA;&lt;li&gt;we propose to assemble synthetic exemplars from a diverse set of high-resource languages to prompt the LLMs to translate from any language into English. These prompts are then used to create intra-lingual exemplars to perform tasks in the target languages (Page 1)&lt;/li&gt;&#xA;&lt;li&gt;ﬁne-tuning a 7B model on data generated from our method helps it perform competitively with a 175B model (Page 1)&lt;/li&gt;&#xA;&lt;li&gt;In non-English translation tasks, our method even outperforms supervised prompting by up to 3 chrF++ in many low-resource languages (Page 1) ^558469488&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Note: Can possibly draw performance benchmarking ideas from here&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;While most LLMs were pre-trained with multilingual corpora in addition to the gigantic English corpus, and were shown to demonstrate impressive abilities in other languages (Brown et al., 2020; Chowdhery et al., 2022; Scao et al., 2022; Shi et al., 2022; Huang et al., 2023), they only excel in high-resource languages, such as French (Page 1)&lt;/li&gt;&#xA;&lt;li&gt;In this work, we focus on unsupervised, and zero-shot, generative translation and summarization tasks in low-resource languages, where no supervised few-shot prompts are used (Page 1)&lt;/li&gt;&#xA;&lt;li&gt;we propose LinguisticallyDiverse Prompting (LDP), a technique that prompts the models to locate the task of “translate any language X into English” by showing the model exemplar pairs between every language and English (En). Practically, we gather a small set of synthetic X -&amp;gt; En exemplars from a diverse set of high-resource languages using off-the-shelf unsupervised MT models (Page 2)&lt;/li&gt;&#xA;&lt;li&gt;The most multilingual LLM is BLOOM (Scao et al., 2022), which was trained on 46 languages in the ROOTS corpus (Laurençon et al., 2022). This corpus includes 34 Indic and African languages regarded as low-resource, with each language having a pre-training 5% in Tumbuka for the African group coverage of less than 1% in Hindi for the Indic group, to 2e^-5 % in Tumbuka for the African group (Page 3)&lt;/li&gt;&#xA;&lt;li&gt;Therefore, we use BLOOM as the main model to evaluate our methods and baselines in such 34 low-resource languages (Page 3)&lt;/li&gt;&#xA;&lt;li&gt;the noteworthy gap between existing UMT and LLMs is that their language coverages do not overlap much, preventing us from using UMT models to enhance LLMs. (Page 3)&lt;/li&gt;&#xA;&lt;li&gt;Hendy et al. (2023) show that GPT models can perform competitively alongside state-of-the-art MT models (Page 3)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Note: Get this paper&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;there is still limited research involving low-resource languages in completely zero-shot setups (Page 3)&lt;/li&gt;&#xA;&lt;li&gt;linguistically-diverse prompting (LDP) method is inspired from three intuitive assumptions (Page 3)&lt;/li&gt;&#xA;&lt;li&gt;LLMs have already learned most of the knowledge and task concepts implicitly during pre-training (Page 3) ^558469498&lt;/li&gt;&#xA;&lt;li&gt;The second assumption is that the models intuitively learn to perform language encoding and understanding at an earlier time, before learning to generate language. (Page 4)&lt;/li&gt;&#xA;&lt;li&gt;The third assumption is that LLMs can already exhibit near-human generative abilities in the dominant language E (mostly English) where pre-training data is often orders of magnitude larger than other (Page 4)&lt;/li&gt;&#xA;&lt;li&gt;we argue that with respect to a minority language X, translation tasks between X and E are no longer symmetric and can be interpreted more broadly as follows (Page 4)&lt;/li&gt;&#xA;&lt;li&gt;X -&amp;gt; E translation is a language understanding task (NLU) in X. This notion extends NLU beyond popular classiﬁcation tasks, such as sentiment analysis or entailment (Page 4)&lt;/li&gt;&#xA;&lt;li&gt;E -&amp;gt; X translation is a language generation task (NLG) in X, which is often harder to master than NLU (Page 4)&lt;/li&gt;&#xA;&lt;li&gt;Speciﬁcally, while the input in E can be easy to encode, generating the intended results in X will be challenging if the model has not seen enough texts in X (Page 4)&lt;/li&gt;&#xA;&lt;li&gt;we design in-context exemplars so that the model locates the task of “translate from any language X into E”, by demonstrating prompt pairs from “every language” to E. (Page 4)&lt;/li&gt;&#xA;&lt;li&gt;This is because the target-side prompt distribution is now realistic and consistently close to the true target distribution we expect the model to generate, which has been shown to be crucial for in-context learning to work (Xie et al., 2021). (Page 5)&lt;/li&gt;&#xA;&lt;li&gt;X -&amp;gt; E task. As mentioned above, we ﬁrst gather n Z(sub)i -&amp;gt; X exemplar pairs (s(sub)Z, t^i(sub)E) with Z(sub)i ∈ Z(fancy) where Z(fancy) is a diverse set of languages with various writing systems, lexical and regional characteristics, such as French (Fr) and Chinese (Zh), and Zi ≠ {X, E}. Such exemplars can be collected by randomly selecting a single sentence from unlabeled data of the respective language Z(sub)i (Page 5)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Note: Convert to latex&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;E -&amp;gt; X task. We leverage [LDP prompt] to build intra-lingual prompts with unlabeled data from the target X language. Specifically, given m unlabeled texts s^j (sub) X ∈ D(sub)X with D(sub)X as monolinguial corpus in X, we produce synthetic back-translation (BT) target s^j(sub)E - L^(mt)(sub)X-&amp;gt;E(s^j(sub)X). Then we use the BT synthetic pairs as in-context exemplars for E-&amp;gt; X translation tasks for input S(sub)E (insert formula -&amp;gt; L^(mtbt)) (Page 5)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Note: Convert to Latex&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;we can also use L^(mtbt) simply swapping the direction of the (s^1(sub)E, t^1(sub)X) to (s^1(sub)X, t^1(sub)E). Nonetheless, we found in the experiments that both L^(mt) and L^(mtbt) perform similarly and on par with supervised prompting for the X -&amp;gt; E task, suggesting that we do not need any supervised or unlabeled data to translate any language into English. &amp;hellip; we can even omit these back-translation exemplars entirely with non-BT L^(mt) LDP by using native language tags (Page 5)&lt;/li&gt;&#xA;&lt;li&gt;During training, we only compute loss on the [output] part to train the model to generate the right language (Page 5)&lt;/li&gt;&#xA;&lt;li&gt;we empirically found that the model fails to learn to generate the low-resource languages unless we increase the learnable parameter counts signiﬁcantly, which seems to defeat the purpose of using PEFT (Page 5)&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Note: PEFT = parameter-efficient fine-tuning approach, e.g. LoRA&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;As the ROOTS corpus (Laurençon et al., 2022) that BLOOM (Scao et al., 2022) was pre-trained on offers the most diverse language coverage with open-sourced transparency, we tested our methods mainly with the BLOOM model (Page 6)&lt;/li&gt;&#xA;&lt;li&gt;Figure 5a reveals one reason the models struggle to translate En-&amp;gt;X when using LDP prompts L^mt (without intra-lingual BT data) is that the target-side distribution contains multiple languages, and the models struggle to recognize unfamiliar language tags, such as Marathi (Mr), and often generate wrong translations in the wrong languages (Page 9)&lt;/li&gt;&#xA;&lt;li&gt;supplying synthetic intra-lingual prompts where the target-side is consistently in the intended language, as shown in Figure 5b with L^mtbt, is more important in getting the models to recognize language rather than the language tag. In fact, we found that removing the language tag entirely can help improve the performance slightly. (Page 9)&lt;/li&gt;&#xA;&lt;li&gt;which high-resource languages should be selected as LDP exemplars. Table 6 examines which LDP language choice is optimal (Page 10)&lt;/li&gt;&#xA;&lt;li&gt;choosing a single related language (Hindi), which is often called cross-lingual prompting (Zhang et al., 2023; Zhu et al., 2023), can be disastrous as the model tends to translate the prompt language rather than the test language (Page 10)&lt;/li&gt;&#xA;&lt;li&gt;Choosing a single but distant language (Vi or Zh) yields better results, while choosing a wide variety of languages across different regions (e.g., Ar,Zh,Vi,Fr) may be the optimal choice. (Page 10)&lt;/li&gt;&#xA;&lt;li&gt;We introduce linguistically-diverse prompting (LDP), which is designed to use synthetic high-quality in-context exemplars from high-resource languages to prompt LLMs to perform generative tasks, such as translation and summarization, in low-resource languages (Page 11)&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Machine Learning System Design Interview</title>
      <link>https://www.kylestratis.com/notes/machine-learning-system-design-interview/</link>
      <pubDate>Sat, 15 Apr 2023 02:43:54 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/machine-learning-system-design-interview/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; See here for valid statuses&lt;/p&gt;&#xA;&lt;p&gt;[author: Ali Aminian Alex Xu]&lt;/p&gt;&#xA;&lt;h2 id=&#34;summary&#34;&gt;Summary&lt;/h2&gt;&#xA;&lt;p&gt;What are the key ideas?&#xA;How can I apply this knowledge that I learned?&#xA;How do these ideas relate to what I already know?&lt;/p&gt;&#xA;&lt;h2 id=&#34;ideas&#34;&gt;💡Ideas&lt;/h2&gt;&#xA;&lt;p&gt;Note: These should become Project Idea fleeting notes with a link back to this source.&lt;/p&gt;&#xA;&lt;h2 id=&#34;fleeting-notes&#34;&gt;Fleeting Notes&lt;/h2&gt;&#xA;&lt;p&gt;Note: Conceptual notes that aren&amp;rsquo;t as tied to the source material. These are fodder for processing into evergreen notes.&lt;/p&gt;</description>
    </item>
    <item>
      <title>System Design Interview</title>
      <link>https://www.kylestratis.com/notes/system-design-interview/</link>
      <pubDate>Mon, 31 Oct 2022 03:03:50 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/system-design-interview/</guid>
      <description>&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; See here for valid statuses&lt;/p&gt;&#xA;&lt;p&gt;[author: ]&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-is-the-book-about&#34;&gt;What is the Book About?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: See How To Read a Book&#xA;What kind of book is it?&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Non-fiction, practical book. Examples of system design interview questions.&#xA;What is the book about in 1-2 sentences at most?&lt;/li&gt;&#xA;&lt;li&gt;System design interview questions and how to answer them.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;summaries&#34;&gt;Summaries&lt;/h2&gt;&#xA;&lt;h2 id=&#34;chapter-1-scale-from-zero-to-millions-of-users&#34;&gt;Chapter 1: Scale from Zero to Millions of Users&lt;/h2&gt;&#xA;&lt;h3 id=&#34;single-server-setup&#34;&gt;Single Server Setup&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Request flow:&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Users access websites through domain names, which are resolved by DNS&lt;/li&gt;&#xA;&lt;li&gt;Internet protocol (IP) address is returned to the browser.&lt;/li&gt;&#xA;&lt;li&gt;Once IP address is obtained, HTTP requests are sent directly to server&lt;/li&gt;&#xA;&lt;li&gt;The web server returns HTML pages or JSON response.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;database&#34;&gt;Database&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Separating web/mobile traffic (web tier) from database (data tier) servers allows them to be scaled independently.&lt;/li&gt;&#xA;&lt;li&gt;Non-relational DBs might be right choice if:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Application requires super-low latency&lt;/li&gt;&#xA;&lt;li&gt;Data are instructured&lt;/li&gt;&#xA;&lt;li&gt;You only need to serialize and deserialize data&lt;/li&gt;&#xA;&lt;li&gt;You need to store massive amount of data.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;vertical-vs-horizontal-scaling&#34;&gt;Vertical vs. Horizontal Scaling&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Vertical scaling&lt;/strong&gt; - adding more power (CPU, memories, etc.) to servers. &amp;ldquo;Scale up&amp;rdquo;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Limitations:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Hard limit - can&amp;rsquo;t add unlimited CPU and memory&lt;/li&gt;&#xA;&lt;li&gt;No failover or redundancy&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Horizontal scaling&lt;/strong&gt; - adding more serviers to pool of resources&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;load-balancer&#34;&gt;Load Balancer&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A &lt;strong&gt;load balancer&lt;/strong&gt; evenly distributes traffic among web servers.&lt;/li&gt;&#xA;&lt;li&gt;The load balancer communicates with web serves via private IPs.&lt;/li&gt;&#xA;&lt;li&gt;Load balancers can redirect traffic away from offline servers&lt;/li&gt;&#xA;&lt;li&gt;They also can handle rapid gains in traffic, allowing you to simply add more servers behind the load balancer to accomodate the growing traffic.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;database-replication&#34;&gt;Database Replication&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Master/slave terminology: master only handles writes, slave databases only support reads and get copies of databases from the master.&lt;/li&gt;&#xA;&lt;li&gt;Advantages&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Better performance&lt;/li&gt;&#xA;&lt;li&gt;More reliable&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;If one slave DB is available then goes offline, read operations get directed to master database&lt;/li&gt;&#xA;&lt;li&gt;If master goes offline, after some time a slave will be promoted to the new master.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;cache&#34;&gt;Cache&lt;/h3&gt;&#xA;&lt;p&gt;A &lt;strong&gt;cache&lt;/strong&gt; is a temporary storage area that stores the result of expensive responses/frequently acccesed data in memory to serve them more quickly.&lt;/p&gt;</description>
    </item>
    <item>
      <title>FourthBrain - ML Model Drift and Decay</title>
      <link>https://www.kylestratis.com/notes/fourthbrain-ml-model-drift-and-decay/</link>
      <pubDate>Tue, 22 Mar 2022 21:43:08 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/fourthbrain-ml-model-drift-and-decay/</guid>
      <description>&lt;p&gt;FourthBrain - ML Model Drift and Decay&lt;/p&gt;&#xA;&lt;h2 id=&#34;metadata&#34;&gt;Metadata&lt;/h2&gt;&#xA;&lt;p&gt;URL: &lt;a href=&#34;https://www.youtube.com/watch?v=C1yiOonTYqM&#34;&gt;https://www.youtube.com/watch?v=C1yiOonTYqM&lt;/a&gt;&#xA;Author: FourthBrain&lt;/p&gt;&#xA;&lt;!--ID: 1677121825250--&gt;&#xA;&lt;h2 id=&#34;literature-notes&#34;&gt;Literature Notes&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-dataview&#34; data-lang=&#34;dataview&#34;&gt;TABLE rows.file.link AS &amp;#34;Literature Note&amp;#34;, rows.file.cday AS &amp;#34;Date&amp;#34;&#xA;FROM #note/literature AND Example Title&#xA;GROUP BY file.link&#xA;sort date ASCENDING&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Note: there may not be many literature notes for this, because it&amp;rsquo;s a how-to type of talk, where there won&amp;rsquo;t be notes on the piece itself, but on what it teaches.&lt;/p&gt;&#xA;&lt;h2 id=&#34;fleeting-notes&#34;&gt;Fleeting Notes&lt;/h2&gt;&#xA;&lt;p&gt;Supervised ML is interpolation geometry. &amp;ldquo;All training data exists as points in a Euclidean space&amp;hellip;we can create an enclosure. Then, inside that enclosure, we can interpolate.&amp;rdquo;&#xA;Global problem space -&amp;gt; regional problem space -&amp;gt; training domain -&amp;gt; model. When we get data, there are quantity and quality gaps which are smaller than the ideal training domain. This means that a model won&amp;rsquo;t work well at trying to predict on observations that fall outside the training domain because &lt;strong&gt;machine learning models for non-linear problems are interpolation machines&lt;/strong&gt;. They can not extrapolate.&#xA;Active learning can fix gaps between the training domain and regional problem space. This flags and prioritizes confusing inputs for human ground-truthing and augments the training set with newly labeled observations to fill gaps in the training domain.&#xA;Most machine learning methods are based on the assumption that the problem space does not change over time. In the real world, though, the problem space does indeed change - this is called &lt;strong&gt;non-stationarity&lt;/strong&gt;. In other words, the problem space &lt;em&gt;drifts&lt;/em&gt; out of alignment with the existing training domain and model (&lt;strong&gt;data drift&lt;/strong&gt;).&#xA;Addressing data drift can take the form of filling gaps with active learning or pruning old or obsolete observations by using a weighting scheme (among other strategies).&#xA;MLOps and Pipelines are beneficial for monitoring models for appreciable drift and refitting the model on augmented training data when drift is detected.&#xA;Two kinds of drift:&#xA;- &lt;strong&gt;concept drift&lt;/strong&gt; - or real drift; a shift in the relationship between model inputs and outputs (changes p(y | x)). This always causes model decay.&#xA;- &lt;strong&gt;data drift&lt;/strong&gt; - change to the statistical distributions within the input data (also known as &lt;em&gt;input drift&lt;/em&gt;, &lt;em&gt;feature drift&lt;/em&gt;, &lt;em&gt;covariate shift&lt;/em&gt;). This &lt;strong&gt;can&lt;/strong&gt; cause model decay by driving a change in p(y | x). If it doesn&amp;rsquo;t cause that change, then it&amp;rsquo;s called &lt;em&gt;virtual drift&lt;/em&gt;.&#xA;Both kinds of drift can manifest in 4 modes:&#xA;1. Abrupt&#xA;2. Incremental&#xA;3. Gradual&#xA;4. Reoccurring (like seasonality)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Learn Functional Programming With Elixir</title>
      <link>https://www.kylestratis.com/notes/learn-functional-programming-with-elixir/</link>
      <pubDate>Thu, 19 Aug 2021 21:35:26 +0000</pubDate>
      <guid>https://www.kylestratis.com/notes/learn-functional-programming-with-elixir/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://m.media-amazon.com/images/I/91B-u7PRbEL._SY160.jpg&#34; alt=&#34;rw-book-cover&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;metadata&#34;&gt;Metadata&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Author: Ulisses Almeida&lt;/li&gt;&#xA;&lt;li&gt;Full Title: Learn Functional Programming With Elixir&lt;/li&gt;&#xA;&lt;li&gt;Category: #books&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;literature-notes&#34;&gt;Literature Notes&lt;/h2&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code class=&#34;language-dataview&#34; data-lang=&#34;dataview&#34;&gt;TABLE rows.file.link AS &amp;#34;Literature Note&amp;#34;, rows.file.cday AS &amp;#34;Date&amp;#34;&#xA;&#xA;FROM #note/literature AND [Learn Functional Programming With Elixir](/notes/learn-functional-programming-with-elixir/)&#xA;&#xA;GROUP BY file.link&#xA;&#xA;sort date ASCENDING&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;summaries&#34;&gt;Summaries&lt;/h2&gt;&#xA;&lt;h3 id=&#34;chapter-1-thinking-functionally&#34;&gt;Chapter 1: Thinking Functionally&lt;/h3&gt;&#xA;&lt;p&gt;In functional programming, functions are the basic building blocks of a program, values are immutable, and the code is declarative, rather than imperative. Functions, immutability, and declarative code are the core principles of functional programming.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
