<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Katarina Slama on Medium]]></title>
        <description><![CDATA[Stories by Katarina Slama on Medium]]></description>
        <link>https://medium.com/@katarinaslama?source=rss-1fec9d7f3edd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*LB9oCNWreDjWiR00y3R4SA.jpeg</url>
            <title>Stories by Katarina Slama on Medium</title>
            <link>https://medium.com/@katarinaslama?source=rss-1fec9d7f3edd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 00:35:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@katarinaslama/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What does “ambivalent” really mean? The potential of transformers for cross-cultural translation.]]></title>
            <link>https://katarinaslama.medium.com/what-does-ambivalent-really-mean-the-potential-of-transformers-for-cross-cultural-translation-594fce289230?source=rss-1fec9d7f3edd------2</link>
            <guid isPermaLink="false">https://medium.com/p/594fce289230</guid>
            <category><![CDATA[culture-change]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[culture-shock]]></category>
            <category><![CDATA[finland]]></category>
            <dc:creator><![CDATA[Katarina Slama]]></dc:creator>
            <pubDate>Sat, 31 Oct 2020 19:58:09 GMT</pubDate>
            <atom:updated>2021-08-29T23:10:00.270Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Epistemic status</em></strong><em>: Story-telling; maybe a hypothesis; at least a little bit tongue-in-cheek. All views are obviously my own.</em></p><p><strong>The story</strong></p><p>“I am deeply ambivalent”, my sister said confidently. <br>She’s a therapist, so she can get away with saying stuff like that. She knows all about the process of swimming in uncertainty, and she refuses to let anyone impose binary judgements on her. <br>The Finnish person that she was talking to was annoyed. They had wanted a direct answer. <br>“Which one is it?” <br>But my sister held her ground, firmly seated on the fence, maintaining strong arguments for this, and the other. <br>“Yes”, she said, “deeply ambivalent.”</p><p>“I am deeply ambivalent”, I tried. <br>“Yeah…” my American friend nodded in understanding. “That’s pretty clear then.” <br>I was trying to express my feelings about a job I was considering applying for. I, too, wanted to take a confident seat on the fence, clearly expressing that I had considered the full reality of this exciting, demanding, scary opportunity. But it seemed that the sounds I had uttered arrived in my friend’s auditory processing stream in a much altered form. What they understood was that I was solidly rejecting this atrocious excuse for a career path.</p><p>To tell the truth, these conversations didn’t play out exactly that way. To begin with, my sister never said, “I am deeply ambivalent.” What she said was, “Jag är djupt ambivalent”, which is the word-for-word translation of the same expression in Swedish. In retrospect, I understand that that is totally different.</p><p>This happens to me all the time. When I applied to grad school, my then-mentor apparently received several phone calls from professors that I had interviewed with, with an inquiry of approximately this form: “Kata is very qualified, but… …it’s not clear that she’s very <strong>excited </strong>about our work.” <br>(I’m from Finland. We don’t do “excited”. In fact, in my <a href="https://reader.digitale-sammlungen.de/de/fs1/object/display/bsb11373729_00005.html">native language</a>, one of the greatest compliments that you can pay to a friend for, say, a meal that they’ve cooked for you is: “He fäjla ast.” This literally translates to: “It lacked little.”¹ We really don’t do “excited”.) <br>“No, no, no!” my mentor would reply. “You see, she’s from Finland! What she means is that she couldn’t be <strong>more</strong> excited!” <br>And thus, I went to grad school.</p><p>You can’t always count on somebody else to act as your on-demand cross-cultural interpreter. One day many years ago, I ran into <a href="https://medium.com/octavians-thoughts/what-does-its-a-good-start-really-mean-ff8c1a2495c4">this brilliant blog post</a>. Over time, it’s become a habit for me to send the link along to Americans that I meet and talk to, you know, as an apology, an explanation, a Rosetta Stone.</p><p><strong>What’s transformers got to do with it?</strong></p><p>As part of an on-going deep learning journey, I’ve recently been playing around with some language models. There’s a cool, public repo called `<a href="https://huggingface.co/transformers/installation.html">transformers</a>` from Hugging Face that I recommend that you check out. Take, as an example, <a href="https://huggingface.co/transformers/model_doc/distilbert.html#distilbertforsequenceclassification">a pre-trained model for sentiment analysis</a>. Sentiment analysis means that the model can take a written sentence as input, and output a value for whether it thinks that sentence is positive or negative. Pre-trained means that it’s already seen lots of data, and it should be good at doing the task. This model was trained on English-language <a href="https://nlp.stanford.edu/sentiment/index.html">movie reviews</a>.² You can play with it yourself by following the code available in <a href="https://huggingface.co/transformers/task_summary.html">this friendly tutorial</a>.</p><p>If you feed the model the sentence, “I love it”, it will tell you that it’s “positive” with a score of<strong> </strong>0.99988. <br>(The scores for either the positive or negative label range from 0.5 to 1. Scores close to 1 means that the model is really confident in its choice. Scores close to 0.5 means it’s unsure. If the score were to tip below 0.5, the sentence would be assigned the opposite label). <br>If you feed it, “I hate it”, it returns “negative” with a score of 0.99964. <br>Now, the model doesn’t “like” to be uncertain.³ But it can be. For the input, “I feel 50–50 about that”, it returned the label “positive”, but with a score of merely 0.56475.</p><p>Now the critical question is: Is “ambivalent” truly ambivalent? According to this model, trained on English-language movie reviews (drum roll): <strong>No.</strong> With a score of 0.96681, “ambivalent” is unambiguously negative.⁴</p><p><strong>Moral of the story</strong></p><p>If you, too, are a cross-cultural transplant, consider using a transformer model to not only translate the words, but also assess the valence, of the message you intend to convey.</p><p><strong>Footnotes<br></strong><em>These will make the story more truthful and less entertaining. Read at your own peril.</em></p><p>¹ I heard that the expression “I can’t fault it” has been used on MasterChef Australia, so this style of complimenting may not be as unique to the Närpes dialect as I thought.</p><p>² I am making a confident assumption that nearly all reviews were in English, and a less confident assumption that a majority of them were written by Americans, or at least people steeped in American culture and communication style.</p><p>³ For example, at the last layer of the network, the outputs are normalized to a 0–1 range, using a <a href="https://en.wikipedia.org/wiki/Softmax_function">softmax function</a>. This pushes large values close to 1, and small values close to 0. It makes large values, relatively speaking, even larger, and small values even smaller, so you end up with fewer values near the center (0.5). | In addition, if I read some of the background articles for this network correctly, I believe that the authors deliberately selected polarized movie reviews (positive or negative) for the training phase. Hence, it may be that the network hasn’t seen a whole lot of truly ambivalent examples.</p><p>⁴ Notice that, because the softmax operation pushes large values closer to 1 and close together (see footnote 3 and <a href="https://towardsdatascience.com/softmax-and-uncertainty-c8450ea7e064">this article for example</a>), a score of 0.96681 is further away from 0.99964 than you might intuitively think if you view them as proportional confidence levels or probabilities. So the classification score is maybe not as “unambiguous” as I’m making it sound here. But “<a href="https://www.goodreads.com/quotes/807622-never-let-the-truth-get-in-the-way-of-a">never let the truth get in the way of a good story</a>”. :-p</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=594fce289230" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Highlights from the 2019 SF WiMLDS scikit-learn Open-Source Sprint]]></title>
            <link>https://medium.com/wimlds-bay-area-blog/highlights-from-the-2019-sf-wimlds-scikit-learn-open-source-sprint-bed9075d69c3?source=rss-1fec9d7f3edd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bed9075d69c3</guid>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Katarina Slama]]></dc:creator>
            <pubDate>Mon, 04 Nov 2019 16:11:47 GMT</pubDate>
            <atom:updated>2019-11-06T01:23:27.809Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*43o1x6i5n-FuGZp_uX-3Sw.png" /></figure><p>The first ever <a href="https://sites.google.com/view/bay-area-wimlds-2019-sprint/home">Bay Area WiMLDS scikit-learn Open-Source Sprint</a> took place this past Saturday, November 2, 2019, at the UCSF Mission Bay Campus. scikit-learn is one of <a href="https://github.blog/2019-01-24-the-state-of-the-octoverse-machine-learning/">the most popular</a> open-source machine learning packages available and, like most open-source libraries, <a href="https://reshamas.github.io/the-gender-imbalance-in-tech/">it is predominantly written by men</a>… …men who incidentally work really hard to democratize software, and would love to involve a diverse team of contributors, but a pretty homogeneously male group nonetheless. <a href="http://wimlds.org/">WiMLDS (Women in Machine Learning and Data Science)</a> is an organization, which aims to change these dreary gender-imbalanced statistics. Its mission is to “support and promote women and gender minorities who are practicing, studying or are interested in the fields of machine learning and data science”. The purpose of the Bay Area scikit-learn sprint was to increase the participation of women and gender minorities in the scikit-learn and python open-source ecosystems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f_AeOzQStzLMN99gXFQk8A.png" /></figure><p>WiMLDS scikit-learn sprints have previously been organized in <a href="https://reshamas.github.io/highlights-from-the-2018-NYC-WiMLDS-scikit-sprint/">NYC</a> (three times, no less) and <a href="http://wimlds.org/nairobi-scikit-sprint-2019/">Nairobi</a>. The Bay Area, always lagging woefully behind in technological developments, was host to the event for the very first time this year. An entrenched Bay Area resident, my last visit to New York was 8 years ago (not long after <a href="https://en.wikipedia.org/wiki/Scikit-learn">the very first public release of scikit-learn</a>) and I have regrettably never visited Nairobi, so this was also <em>my</em> very first WiMLDS scikit-learn sprint. I will share some of my observations here, and then let some of the excellent humans that I met at the sprint speak for themselves.</p><p>The organizers and volunteers showed up bright and early at 8:30 am, an hour before start time. I was lucky (my graduate student budget thanks me) to share a ride with some of them from Berkeley at 7:40 am. Everyone was cheerful and fully awake at this ungodly hour. It involved absolutely no one asking themselves “why did we sign up for this again?” (Jokes aside, the organizers and participants alike benefitted immensely not least on a personal level from this incredibly valuable event: Just take a look at their own stories, below.)</p><p>The fearless organizing and volunteer team consisted of (from the left):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4e4qAtOHQfiSve2m6eommw.jpeg" /></figure><ul><li>Valentina Borghesani (<a href="http://vborghesani/">@vborghesani</a>, see Valentina’s <a href="https://medium.com/@valentinaborghesani/of-coding-sprints-and-half-marathons-2b4755f21191">awesome blog about the sprint here</a>.)</li><li>Areez Malik</li><li>Tom Dupre La Tour</li><li>Reshama Shaikh (<a href="https://twitter.com/reshamas">@reshamas</a>)</li><li>Andreas Mueller</li><li>Xihe (Jeff) Xie</li><li>Michael Eickenberg</li><li>Pablo Damasceno</li><li>Cheng Wang (not pictured, but a *crucial* contributor to the sprint)</li></ul><p>Fortunately, breakfast arrived shortly after us…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cnaEQEwQsbmHR_yI6tS-fg.jpeg" /><figcaption>Photo Credit: Valentina Borghesani.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kaSn4evssSzLdGtheNRkAA.jpeg" /><figcaption>Where there is breakfast, there will be hackers. I made several new friends before 9:30 am. Not bad, for a Saturday morning. Photo credit: Valentina Borghesani.</figcaption></figure><p>…as did a set of cool stickers from the sponsors who, along with the organizers and volunteers, made this event possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wD3Ht4tcUv0DxeHnbFSMg.jpeg" /></figure><p><strong>Event sponsors</strong></p><p><a href="https://twitter.com/UCSF">@UCSF</a></p><p><a href="https://twitter.com/UCSFimaging">@UCSFimaging</a></p><p><a href="https://twitter.com/neo4j">@neo4j</a></p><p><a href="https://twitter.com/Microsoft">@Microsoft</a> &amp; <a href="https://twitter.com/MSFTReactor">@MSFTReactor</a></p><p><a href="https://twitter.com/seanmylaw">@seanmylaw</a> &amp; <a href="https://twitter.com/TDAmeritrade">@TDAmeritrade</a></p><p><a href="https://twitter.com/OReillyMedia">@OReillyMedia</a></p><p>The lead organizer, <a href="https://twitter.com/reshamas?lang=en">Reshama Shaikh</a>, kicked off the event around 9:30 am with thanking our host, UCSF, and the sponsors. She reminded us that this is a “women’s space”. This does not mean that it is exclusively intended for women: Indeed, a number of men participated in the sprint. What it does mean, Reshama explained, is that the sprint will be a harassment-free experience for all attendants. She further emphasized that part of this being a “women’s space” is that we let others speak. She specifically suggested that, if you know yourself to be a person who tends to speak a lot in public, a good rule of thumb is to let two other people speak before you speak a second time. (How I wish these things would go without saying… …or be explicitly stated when needed… …in all social spaces, not just those that are specifically branded as “women’s spaces”. But here we are.) The event was free to attend, but it was recommended that attendants donate a nominal amount to NumFOCUS to support open-source development (<a href="https://numfocus.org/donate">and you can too</a>).</p><p>Next, one of the core scikit-learn developers, <a href="https://datascience.columbia.edu/andreas-mueller">Andreas Mueller</a>, gave an introduction to setting up and starting to contribute to scikit-learn (<a href="https://github.com/WiMLDS/bayarea-2019-scikit-sprint/blob/master/scikit-learn-sprint-instructions.pdf">and you can too!</a>). He recommended that we try out pair programming which, as its name implies, entails two people programming together. An interesting twist on this concept that I wasn’t aware of before was the specific recommendation to have the *less experienced* person drive (well, code). In other words, the less experienced programmer should be writing the code, and submitting the pull requests, while both participants discuss the problem and decide what to do next.</p><p>And off we went… Before long, the PRs (pull requests) were trickling in by the dozens, while the teaching assistants were kept busy helping participants overcome roadblocks, and reviewing submitted PRs. I found that one of the most challenging things was selecting an issue that was both open (and actually up for grabs rather than just officially open), and tractable. One of the great things about being at a sprint like this was that there were several people available to help with technical glitches and, with core scikit-learn developers present at the event, we could get very rapid feedback on whether our PRs could be incorporated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ClDQIVP8oWauJpt2-yYizQ.jpeg" /><figcaption>Morning sprinting.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GcvBEWxMtYn-XwKByouJDA.jpeg" /><figcaption>Morning sprinting.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oTaQC4p5DzSF9tXZEt65vA.jpeg" /><figcaption>Ah yes, there was also lunch.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GdmXNXL-UIhsS8NodCDscw.jpeg" /><figcaption>Afternoon sprinting.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bw6XZH5Jsr2J5ZsLTaX-lw.jpeg" /><figcaption>Xihe, Areez, and Pablo, troubleshooting an undoubtedly very important bug.</figcaption></figure><p>Many attendants courageously kept coding until late in the afternoon, and all of us had our own particular favorite moments. Here is what some of the participants had to say.</p><h3>scikit-learn hackers of the WiMLDS sprint 2019</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-0d6txMtIYCPE8l12dzdww.jpeg" /></figure><p>“I just love to see women come out and contribute to open source, because this is something that I do full-time, and there are so few of us, that it gets a bit lonely. So, it’s really encouraging to see so many women show up and contribute to open-source.” (<a href="https://twitter.com/ledell?lang=en">Erin LeDell</a>, <a href="https://twitter.com/ledell?lang=en">@ledell</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-UatjGdso--LOkPit9yYwg.jpeg" /><figcaption>Superwomen pair-programming.</figcaption></figure><p>“It was making an open-source contribution for the first time. I have never done this, so it’s been good: Now I know what the workflow is like.” (Poorna)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SbzrNCqnVmuQtv04Nu_4iw.jpeg" /></figure><p>“My favorite thing was learning a lot about the source code. I have to read it carefully to understand what is happening within the code, so that I can edit the docstring. The learning experience was the best part. Contributing to open-source is another important goal for me.” (Hailey)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QPwjDxgrkJ6Q61rcZl-jjg.jpeg" /></figure><p>“I love connecting with people, and converging on similar interests and goals. The people is really the main thing for me. I also love contributing to open-source.” (Paula)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kp-jgBAwE6fBDb-0x_CcjQ.jpeg" /></figure><p>“My favorite thing about the sprint is that I discovered something weird: This. I discovered that you can compare an “else” statement with a “for” statement in python. Unlike in javascript. I’m starting to be more OK with this as I tell more people about it. At first I was offended. Now it’s acceptance.” (Anisha)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yd91gPoj-mD6yhHbwEcJsw.jpeg" /></figure><p>“My favorite thing about the sprint is the excitement people feel when they have submitted their first PR.” (Reshama, @reshamas)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Rkvl8UpDW7hf0cAp-z5Lw.jpeg" /><figcaption>Siblings pair-programming.</figcaption></figure><p>“I think it’s really awesome that there are TAs to help the process and the workflow behind doing open-source. It’s really helpful for getting started and to understand how to contribute to open-source.” (Regan)</p><p>“That’s a big one for me also: Understanding how to integrate into the community as a new participant, without being cumbersome and creating more problems than solutions. Somebody stopped by and showed me a piece of code logic I hadn’t seen before. Interacting with others gives you opportunities to continue to grow your technical skill set.” (Will)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TJMeXztZ092vWtLx3g9hZA.jpeg" /></figure><p>“A lot of things [were my favorite]. Firstly, I won a book. I have never contributed to open-source code before. I have done other things, like contributed to stack overflow, but not to an open-source codebase.” (Shruthi)</p><p>“I would echo what Shruthi said. I had never contributed to any sort of open-source project. It was something I had always wanted to do. The overhead for getting started had always seemed insurmountable. Having Andreas and the other volunteers here, really helped me overcome that initial learning curve. If I come to a sticky point, I can move past it. It gave me that little push I needed to get into the open-source community.” (Kevin)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z5WDp86WeVUe5aPUK1p0zg.jpeg" /></figure><p>“Getting started on a PR [was my favorite part]: the process of searching for the issue that I want to work on, forking the repo, pulling it down, and going from not knowing what I’m doing to figuring it out: that whole process.” (Tiffany)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_waPmq-GnME3t_odwLdQng.jpeg" /></figure><p>“The number of people for which this is the first time… They never felt that they would make it to a sprint, that they would fit in, but they are here, they are doing it, they are pushing their code. That’s definitely the best thing.” (Valentina, <a href="https://twitter.com/vborghesani">@vborghesani</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXfX8hZt-g87ebneHCiBEw.jpeg" /><figcaption>Laura and Tom hard at work.</figcaption></figure><p>“If you’re working on things on your own and you run into an issue, the best you can do is to post it on a forum, and people might yell at you, or be nice to you, but it takes time. The amount of back-and-forth that we could have here today would have taken days in an online forum.” (Laura)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9fxBcdV1FDPtpqNnXQGaw.jpeg" /></figure><p>“What was my favorite thing? The brownies! Just kidding. I think the best thing was the help. I felt like I had a lot of stupid questions, but nobody treated me that way.” (Rebecca)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xty9TwhiTdRM9xwo776FvQ.jpeg" /></figure><p>“Everybody was super-engaged. We got a lot of pull requests and it was really great. That was my favorite thing: Everybody being engaged and contributing.” (Andreas)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blJ3zRMSdn-Opzxn8EZasw.jpeg" /><figcaption>Pair courage.</figcaption></figure><p>“I love pair-programming, so it was great to get to work with someone all day.” (Sallie)</p><p>“I feel the same way, because I haven’t pair-programmed in a while. It makes it less intimidating to walk through the source code when you’re not alone.” (Fanny)</p><p>“It’s like pair courage.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bed9075d69c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/wimlds-bay-area-blog/highlights-from-the-2019-sf-wimlds-scikit-learn-open-source-sprint-bed9075d69c3">Highlights from the 2019 SF WiMLDS scikit-learn Open-Source Sprint</a> was originally published in <a href="https://medium.com/wimlds-bay-area-blog">WiMLDS Bay Area Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>