<?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 Tiffany Jaya on Medium]]></title>
        <description><![CDATA[Stories by Tiffany Jaya on Medium]]></description>
        <link>https://medium.com/@tiffanyjaya?source=rss-9a929e327df7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XBVFLlRXZINMz3UELuLOMg.jpeg</url>
            <title>Stories by Tiffany Jaya on Medium</title>
            <link>https://medium.com/@tiffanyjaya?source=rss-9a929e327df7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:09:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tiffanyjaya/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 I have learned at a UX Whiteboard Party]]></title>
            <link>https://medium.com/quick-design/what-i-have-learned-at-a-ux-whiteboard-party-957222d157d2?source=rss-9a929e327df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/957222d157d2</guid>
            <category><![CDATA[job-interview]]></category>
            <category><![CDATA[whiteboarding]]></category>
            <category><![CDATA[interview-tips]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[product-design]]></category>
            <dc:creator><![CDATA[Tiffany Jaya]]></dc:creator>
            <pubDate>Mon, 26 Aug 2019 17:20:30 GMT</pubDate>
            <atom:updated>2019-08-28T17:44:52.170Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-gU7g_ymzxwLgg568ltBxw.jpeg" /><figcaption>Lily, the organizer, giving us an example of a UX Whiteboard Challenge</figcaption></figure><p>Thank you Lily, volunteers from SF Product Designers Meetup group, and Yeti LLC for hosting the Whiteboarding Party this weekend. As a professional transitioning career to product design, I learned so much as to what constitutes a UX Whiteboard Challenge. The main takeaway is showing how we can solve a problem and not so much on finding the “perfect” solution.</p><ol><li><strong>Don’t assume</strong>. It’s better to clarify with a question than introduce bias with an assumption.</li><li><strong>Explain everything that you write</strong> because we haven’t figured out a way yet to read minds.</li><li><strong>Design not only from the user’s perspective but also the business’s</strong>. What’s the point of solving the user’s problem if we cannot execute it because of business’s constraints?</li><li><strong>Write every answer to every question and label it</strong> so interviewers can easily follow along with your thought process.</li><li>On the same vein, <strong>do not write/draw then erase it</strong>. It’s harder to remember what we can’t see.</li><li><strong>Do not ask what to do next</strong>. You are there to demonstrate your problem solving skills, not to show the lack thereof.</li><li>If you have ever seen a <strong>whiteboard layout</strong>, remember it at the back of your mind but don’t draw every element out on the whiteboard at the start of the challenge. Every design exercise has a little nuance difference to it that can only be addressed by being curious and asking questions.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MzrCj-rXjACxpVxcCOw7vg.jpeg" /><figcaption>Ricardo showing us what a whiteboard layout might look like</figcaption></figure><p><strong>Recommended book:</strong> <a href="https://www.amazon.com/Back-Napkin-Expanded-Problems-Pictures/dp/1591842697">The Back of the Napkin by Dan Roam</a></p><p><strong>Recommended podcast:</strong> <a href="https://99percentinvisible.org/">99% invisible</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=957222d157d2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/quick-design/what-i-have-learned-at-a-ux-whiteboard-party-957222d157d2">What I have learned at a UX Whiteboard Party</a> was originally published in <a href="https://medium.com/quick-design">Quick Design</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Product Design Retrospect on ‘Twitterrain,’ a Prototype Marketing Platform]]></title>
            <link>https://medium.com/berkeleyischool/product-design-retrospect-on-twitterrain-a-prototype-marketing-platform-9c338b406eb4?source=rss-9a929e327df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c338b406eb4</guid>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[berkeleyischool]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Tiffany Jaya]]></dc:creator>
            <pubDate>Tue, 22 Jan 2019 23:43:40 GMT</pubDate>
            <atom:updated>2019-01-23T17:47:00.727Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oUzI4B_FytnhpHB98YYKKg.png" /><figcaption>Prototype of Twitterrain’s Version 1</figcaption></figure><p>‘Twitterrain’ was never a marketing platform to begin with.</p><p>It started out with an idea my teammate Daniel proposed for our <a href="https://www.ischool.berkeley.edu/courses/datasci/209">data visualization</a> course in the <a href="https://datascience.berkeley.edu/">Master of Information and Data Science (MIDS)</a> program at the UC Berkeley School of Information: “What if we could visualize how people feel surrounding a given topic in real time? How cool would that be?” As cool as the initial concept might be, it was difficult for us to come up with features for the product; let alone delegate tasks for potential contributors without a user in mind. It was clear, early on, that this was our first of many product design lessons.</p><h4><strong>Product Design Lesson #1: Design with a user in mind</strong></h4><p>What differentiates good product from great is that great product enables people. Every form and function is intentional because each individual component collectively affects the users. Like all product designers who come to pass, we design these components with the intention of relieving the users’ problem.</p><p>Our users, in this case, are marketers. The problems they face is justifying to brands why they should use social media for market leads.</p><p>Talking to marketers, I was able to define <a href="https://docs.google.com/document/d/1jrwmyYYcaj33QfydIsczpBhvb8rzZm_v69UzZOblsmY/edit?usp=sharing">tasks</a> that could help them out in their day-to-day work. As excited as we were to implement these tasks, I realized we faced a number of constraints. First, we had ten weeks to implement this project with three people who have other obligations besides this project. Second, I was the only team member well-versed in web application development. Third, most free APIs limit the information one can see, so several of the tasks proposed by our marketer friends are not feasible unless we are willing to pay.</p><p>Instead of pushing these constraints further down the pipeline, we decided to embrace them and figure out what alternate solutions might be. This is the second product design lesson we learned.</p><h4><strong>Product Design Lesson #2: Embrace the constraints</strong></h4><p>Working with the constraints, we were able to rank tasks that are not only worthwhile for marketers to use but also within the scope of what free APIs can do. We then focused on one social media platform, Twitter, because we wanted to have a working prototype running within our time constraints. What was effective about Twitter is that Twitter tells us people’s opinion in a concise 280 characters limit over a broad spectrum of topics (even though the search time range is constrained up to seven days for the Standard version of Twitter API).</p><p>At this point, however, we hit a second roadblock as a team. Without a visual of how the product would look and feel like, no one seemed to know how a cohesive product would be formed. What’s more, we do not live nearby to each other so the only form of communication we could do as a team is through a video call. How are we going to solve this problem?</p><p>I decided to put my product designer’s hat on. Since we could not meet in person and sketch out together the different components that make up the visualizations, I looked instead at the competitive landscape and determined what interactive component works and what doesn’t. Then I designed the basic functionalities of each task in a quick sketch and showed it to my marketing friend. Once I received a thumbs-up, “you’re good to go” okay from him, I proceeded to learn Sketch (the digital design toolkit) and designed a high-fidelity mockup for my team. It was then that I realized how important researching the competitive landscape and visuals are.</p><h4><strong>Product Design Lesson #3: Research the competitive landscape</strong></h4><h4><strong>Product Design Lesson #4: Visuals help team share a cohesive vision</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*DU7h9ixKaAWk698tFFUOqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*0qbqVTTGDjRbnT-fShUq8w.png" /><figcaption>Our first high-fidelity visuals</figcaption></figure><p>With a shared vision in mind, we employed our first high-fidelity visuals to evaluate how effective ‘Twitterrain’ is at completing the three tasks we defined in the beginning. We repeated the cycle of prototyping high-fidelity visuals followed by a meeting with marketers to see if the prototype fulfilled their needs before finalizing on one that we would eventually code. This iteration step was crucial to the development because we often missed one feature that did not seem effective to the user.</p><p>What we found to be the most constructive way to gain insight about a feature was to record and ask the users to perform a list of tasks without us guiding them (Thanks Andy for the tip!). It was through this process that we ended up with our final high-fidelity visuals.</p><h4><strong>Product Design Lesson #5: Design iteration brings powerful results</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*ivvANdUIhVSH3-q-Oem8Jw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*DMg1LVccwVQQ2OXKHusSqA.png" /><figcaption>Our final high-fidelity visuals</figcaption></figure><p>The iteration process does not stop there. Interaction is another component that our visuals cannot represent. Since all members were more comfortable programming than prototyping an interaction, we repeated the iteration step as before but instead of using visuals to evaluate the interaction, we deployed the marketing platform and have our users, the marketers, assessed the interaction on the website.</p><p>‘Twitterrain’ still has a long way to go before it becomes a digital product that marketers cannot live without. In order to achieve this goal, it needs to continually adapt to the rapid changes in the field and provide continual improvement in the marketers’ daily life. One way to do so is to avoid confusion. Currently our <a href="https://tiffapedia-twitterrain.herokuapp.com/tasks/sov">working prototype</a> has not integrated a login function, so it does not assume that multiple users will visit the site. For example, if user A and user B visited the site and user A modified an interaction user B was seeing, user B will see the interaction changes that user A has made. In version 2 of ‘Twitterrain,’ we will address this issue with a login feature.</p><p>For those of you who are interested in our iteration process, please feel free to check out the presentations that we delivered <a href="https://docs.google.com/presentation/d/1jgFCRRhcstKTKF72PgWMn1QEwdsa8AFeWQgs9q_iC4k/edit?usp=sharing">midway</a> through the development and in our <a href="https://docs.google.com/presentation/d/1duqBxv-bMcYuvdzzY8hizjKB0-lwFlNNJFHgoJD4E20/edit?usp=sharing">final</a> week. Thank you for taking the time to read my retrospective thought on this product’s design process. Any constructive feedback would be appreciated!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c338b406eb4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/berkeleyischool/product-design-retrospect-on-twitterrain-a-prototype-marketing-platform-9c338b406eb4">Product Design Retrospect on ‘Twitterrain,’ a Prototype Marketing Platform</a> was originally published in <a href="https://medium.com/berkeleyischool">BerkeleyISchool</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Dialogs 2017 Recap]]></title>
            <link>https://medium.com/@tiffanyjaya/data-dialog-2017-recap-a25063a96907?source=rss-9a929e327df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a25063a96907</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Tiffany Jaya]]></dc:creator>
            <pubDate>Thu, 26 Oct 2017 01:25:41 GMT</pubDate>
            <atom:updated>2017-10-26T17:23:36.479Z</atom:updated>
            <content:encoded><![CDATA[<p>Two days ago I had the pleasure to attend the Data Dialogs Conference at UC Berkeley where we discussed what can data scientists do to improve their craft. The key takeaway in the discussion is that it is so much easier to work with data than people. Even though we are able to extract insight from data, the key insight still lies in putting the human in the loop. For more details, let’s run through the main points from each speaker.</p><h3>Project Jupyter by Fernando Perez</h3><p>If you haven’t yet used Jupyter Notebook, come join the bandwagon. As stated in their <a href="http://jupyter.org/">website</a>, “Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text.” The goal of Jupyter notebook is to <strong>ensure that research is reproducible</strong>. It would be a pity if we have accomplished, for example, over 40 years of research, and future scientists are not able to reproduce it.</p><p>But reproducibility can only goes so far if the scientific communities cannot read all the publications released in their respective field. For this reason, a shift in mindset has to take place. Remember the goal of scientific literature is to communicate ideas for others to build upon. Unfortunately, it has become a way for scientists to get professional credit for what they do. The first thing we need to do then is to <strong>separate professional credit from the communication of ideas</strong>. <strong>We need to publish less so we can read more</strong>. The other shift that has to take place is to <strong>build the scientific literature easy to read by machines </strong>since we have yet to find a super human who can read all the publications released yearly. Lastly, <strong>data has to be made available for others </strong>for reproducibility to be achieved.</p><p>The goal of Jupyter Notebook is to ensure that research is reproducible, but we need to join that effort in order to make the dream of every research reproducible a reality.</p><h3>Vernacular Data by T. Christian Miller</h3><p>T. Christian Miller introduces the concept of vernacular data which will allow anyone who has access to data to answer their own question what is happening. He defines <strong>vernacular data</strong> as</p><ul><li><strong>data created by users via sensors, mobile devices and personal data mining</strong></li><li><strong>data used in creative ways to unearth previously unknown information or trends</strong></li><li><strong>democratized data</strong></li></ul><p>We should strive to ensure vernacular data is made available as it is difficult right now to have access to data that will provide insight as to what is happening.</p><h3>Continuing Evidence of Discrimination Among Local Elected Officials by D. Alex Hughes</h3><p>For those who strive to learn more on how you can take a research question and develop a design process to reach to a conclusion, I recommend listening in to D. Alex Hughes’ talk. I will not do him justice by summarizing his already summarized approach, so details of his presentations (as well as others’ in the conference) is included in a <a href="https://drive.google.com/file/d/0B5Z2I4GECy-rcERpTmlyaWV5YTQ/view?usp=sharing">PDF file</a>.</p><p>From the research questions he posed, he was able to determine whether or not <a href="https://en.wikipedia.org/wiki/Street-level_bureaucracy">street-level bureaucrats</a> take differential actions in responding to emails based on the name of the sender alone. He categorized the names based on race: white, African-American, Latino, and Arabs. What his research has determined is that Latino and Arab names receive lower rates of response, but African-American equal whites in terms of the rates of response received. Therefore, when street-level bureaucrats open letters from the general public, it would be best if the name of the sender was anonymized for fair treatment.</p><h3>Analytics for the 4th Industrial Revolution by Chetan Gupta</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*rqIkwxpWlThLlnz68saE_w.png" /></figure><p>We have come a long way since the day when data exists mostly in databases. Now data is everywhere, and the algorithms we have discovered brings us one step closer to developing a <a href="http://cyberphysicalsystems.org/">cyber-physical systems</a>, the potential 4th Industrial Revolution after we have achieved computer automation in our time. The four common categories on how we can apply algorithms on data as of right now are</p><ul><li>descriptive or recognition <br>i.e. fraud detection</li><li>predictive<br>i.e. clinical decision support</li><li>prescriptive or recommendation<br>i.e. movie recommendations</li><li>autonomous<br>i.e. self-driving car</li></ul><p>with descriptive or recognition being the most valued among customers (in comparison to automation).</p><p><strong>It is more important that data scientists know how to operationalize data than getting the accuracy of data. </strong>As an example, industrial analytics is one way how data scientists can operationalize data. Although I will leave the details how this can be achieved in the <a href="https://drive.google.com/file/d/0B5Z2I4GECy-rcERpTmlyaWV5YTQ/view?usp=sharing">PDF file</a>, the key takeaways are:</p><ol><li>Remember to think about the cost tradeoffs.</li><li>Different settings require different needs; therefore, you cannot solely rely on algorithms to make prediction. You will also need to take input from the experts in the field.</li><li>Perform A/B testing in order to figure out if there is an improvement after the change.</li><li>Before solving at a higher level, think of the problems at the plant level because solving problem at a higher level is more complicated exponentially since it requires to solve multiple problems at once.</li></ol><h3>The Challenge of Predicting Churn in the Enterprise World by Sharon Lin</h3><p>In business, retaining customer is as important as growing your customer base. So creating a machine learning model to predict the likelihood of a customer leaving based on his/her user pattern would be beneficial for the enterprise overall. The key takeaway she found during her three months building the model is that <strong>good features will lead to good prediction</strong>. This insight did not materialize without setbacks. These setbacks include extracting user attributes from different silos, cleaning data especially in the naming convention department because a single company can be identified in fifteen different ways in terms of name, and relying on metrics other than accuracy because churn rate of enterprise is typically less than 25%.</p><h3>Visual Trumpery by Alberto Cairo</h3><blockquote>Mere exposure to data does not have a persuasive effect — maybe at least partially due to the increased sense of objectivity evidence supported by numbers carries. <br>~ The Persuasive Power of Data Visualization</blockquote><p>Data scientists are data people. They understand data. But <strong>most people are not literate in data</strong> and often time misread or use data and data visualizations to push agendas. It is for these people that <strong>data scientists need to engage in a data dialog</strong>. It starts with a one-on-one conversation with the following key points:</p><ol><li>Read beyond the title.</li><li>Pay attention. When a visualization is given, it isn’t meant to be seen; it’s meant to be read.</li><li>Notice what the visualization shows — and think about what it may be leaving out.</li><li>A visualization shows only what it shows — and nothing else.</li></ol><p>Data scientists should also be engaged in data dialogs with other data people, including journalists, to ensure that data are presented in a clear manner so as to not deceive their audience. This can be achieved by</p><ol><li>Disclosing data and methodology in plain English</li><li>Representing the right data, and doing it accurately</li><li>Showing an appropriate amount of data</li><li>Revealing uncertainty if it was relevant</li></ol><h3>Advanced Analytics in Wells Fargo by Menglin Cao and Mauro Cardenas</h3><p>It is nice to see a change of pace where speakers interview each other in an Oprah Winfrey’s style. The main takeaway from the discussion is that <strong>data scientists like to talk to data more than they like to talk to people</strong>, which succinctly summarizes the overall theme of the conference. But for data scientists to become better data scientists, they need to <strong>understand their business partners</strong> and what keeps them up at night. In order to do this, data scientists need to:</p><ol><li>Be really good at what they do.</li><li>Be able to tie what they are doing with business priorities.</li><li>Get buy-ins from their peers.</li></ol><p><strong>One way to go about understanding what priorities business partners have is to anticipate their questions</strong>. If data scientists can address these questions, it will go a long way to achieving their long-term goal. To make this process easier, <strong>give credit to the decision makers</strong> because people tend to implement an idea if it was their own.</p><h3>“Full Stack” Data Science at Stitch Fix by Hoda Eydgahi</h3><p>Stitch Fix provides personal styling as a service which incorporates both algorithms and human recommendations. In this case, the human in the loop is the personal stylist. As a company, they have found that <strong>incorporating both machine learning algorithms and human recommendations gets the best of both worlds</strong>. Machine learning has yet to decipher the subtle intricacy of style. Left alone, they would recommend a similar pair of jeans user has come to love over and over again. On the other hand, a stylist does not have the time to peruse thousands of inventories. For this reason, machine learning takes out the grunt work by reducing the sheer of volume of items user will love, and the stylist selects distinct, novel items that hopefully tickles the fancy of the user.</p><p>Stitch Fix sets up their business model as well as their development model differently to maintain their competitive edge against their competitors. Unlike discovery e-commerce that permeates in the market today, they do not let their users see their inventory. They do this because they know shopping is exhausting for their customer. But mostly, it creates an advantage by collecting high quality and differentiating data that competitors do not have access at the beginning of the sign-up stage. In addition, Stitch Fix hires full stack data scientists who can carry out data science, software engineering, and project management tasks. They find that by doing so, the development team is able to iterate quickly because they are not held back by priorities and lost of context commonly found if data scientists and software engineers were separated into their respective groups.</p><h3>Using R to Build a Data Discovery Tool for Domain Experts by Tarak Shah</h3><p>When constructing a software application, such as a data discovery tool, for people with different skillsets, it is important to define using simple definitions and build upon these definitions for more complex definitions. In essence, <strong>simple language allows easier communication and collaboration with people of different skillsets</strong>. This can be achieved by</p><ol><li>Minimizing synthetic noise, as explained in Martin Fowler’s book Domain Specific Language</li><li>Maintaining flexibility without complexity</li><li>Defining clear and understandable error messages</li><li>Providing documentations and tutorials and seeking collaborations</li></ol><h3>Getting Data Together by Katherine Ahern</h3><p>Companies are having difficult time transitioning data from databases to cloud. The reasons for this is because data tends to have system-specific data encodings, and systems tend to be locked and proprietary. To make the transition smoother, the presenter suggested to look into:</p><ol><li><a href="https://www.getpostman.com/docs/pro/what_is_pro">Postman</a> which can assist in building a fast and smooth workflow for API development</li><li><a href="https://cloud.google.com/bigquery/docs/">Google BigQuery</a> which provides access to Google’s Dremel via a REST API. For those who are not familiar with Dremel, Dremel is an interactive ad-hoc query system that allows users to run queries on large, structured datasets in near realtime.</li><li><a href="https://drill.apache.org/">Apache Drill</a> which is the open source project inspired by Google’s Dremel. On a side note not discussed by the presenter, Apache Impala is also inspired by Google’s Dremel but one of the main difference between the two is that Impala is tied down to Hadoop while Drill can connect to custom data sources.</li></ol><p>Once you have “fun with data”, apply A/B testing to determine whether or not the changes applied on the dataset have made an impact.</p><h3>Conclusion</h3><p>The key takeaway in the discussion is that it is so much easier to work with data than people. Even though we are able to extract insight from data, the key insight still lies in putting the human in the loop.</p><p>As data scientist, what do you think you can do differently to improve your craft? Leave your thoughts, and we can start another data dialog on the comments section below!</p><p>Details about each of the speakers can be found in this linked <a href="https://drive.google.com/file/d/0B5Z2I4GECy-rcERpTmlyaWV5YTQ/view?usp=sharing">PDF file</a>.</p><p>If you can make it, I hope to see you in the next Data Dialogs Conference May of next year.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a25063a96907" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mistakes I’ve Made in Angular 1]]></title>
            <link>https://medium.com/@tiffanyjaya/mistakes-ive-made-in-angular-1-c97609e7d471?source=rss-9a929e327df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c97609e7d471</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Tiffany Jaya]]></dc:creator>
            <pubDate>Fri, 14 Oct 2016 01:16:19 GMT</pubDate>
            <atom:updated>2016-10-27T18:08:08.580Z</atom:updated>
            <content:encoded><![CDATA[<h4>And is it right to choose Angular as the front-end?</h4><p>As excited as we are to dive right in to the heart of the <a href="http://lab41.github.io/gestalt/">Gestalt</a> challenge —<a href="https://gab41.lab41.org/why-data-visualization-3cf85990b41b#.xcucb8b6k"> to explain data clearly in a visual manner</a> — we need to build the framework to lay the foundation for our work. We decided to go with Angular 1 for the front-end and web.py as the back-end because they allow us to quickly prototype our ideas (more details about the front-end decision at the end of the blog post). It goes without saying that my journey with Angular starts out bumpy. By sharing the mistakes I’ve made in Angular, I hope you can learn what Angular is and make a better informed decision when it is appropriate to use Angular versus another front-end framework.</p><h3>Mistake #1: Not following the “Angular” way</h3><p>Angular has a set of concrete rules. This is simply because it was created as an extension to HTML. It follows the HTML mindset in that you want to make as few changes to the DOM as possible. For those of you who do not know what the DOM is, here is a quick 101. DOM is the abstract embodiment of a webpage in the form of a tree. Changing the content of the webpage means changing the DOM too. You have to remember which component in the webpage is tied to which implementation. This becomes troublesome to keep track of, especially if there are multiple components that are dynamically changing in a webpage. Angular simplifies the manipulation of the DOM via its <a href="https://www.thinkful.com/projects/understanding-the-digest-cycle-528/">digest cycle</a>. Like magic, it detects the changes and modifies the DOM as necessary. The benefit, unfortunately, comes with a cost: follow the Angular way or be prepared to have some pretty janky code that’s not maintainable.</p><p><a href="https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md">John Papa’s</a> and <a href="https://github.com/toddmotto/angular-styleguide">Todd Motto’s</a> style guides are great references to use if you are not familiar with the Angular pattern. It helps <a href="https://www.pluralsight.com/courses/angularjs-patterns-clean-code">produce code that is easier to maintain, debug, and scale</a>.</p><p>Another common consequence of not following the Angular way is stumbling on code that’s not working as intended. One example of this is using capitalization or underscore in the <a href="https://docs.angularjs.org/guide/directive">directive</a>’s name at the HTML level. The Angular compiler cannot accept that because HTML is case-insensitive, and therefore, Angular can only refer to the directive in the DOM by its lower-case form. To add to the confusion, the convention for directive’s name is camelCase in Javascript and dash-separated in HTML. Not knowing this minute detail can easily lead you astray from the actual solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*Q-i5AWyPy3FGvGvHfn5AWQ.png" /></figure><p>So remember, follow the Angular way. Or Angular will just tell you to go take the highway.</p><h3>Mistake #2: Thinking it’s similar to other front-ends</h3><p>Since Angular provides the structure you need to develop a web application, getting started in Angular is delightfully easy. It is not until later when you demand a richer functionality in your application that you realize you need to take time to really understand the inner workings of Angular. I was short-sighted and thought that I can transition my knowledge to other front-end frameworks. Boy, was I in for a surprise! Not only is Angular 1 different than React and Ember, it is vastly different than Angular 2 that you can almost say they’re two separate front-end frameworks!</p><p>I can imagine how difficult it might be to integrate existing projects with other front-end framework that is not Angular. Fortunately for us, we are not tackling this problem.</p><h3>Mistake #3: Grouping files by type vs feature</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*Zxa25WVxEZBAkFbeKjxhFA.png" /><figcaption><a href="https://www.tutorialspoint.com/angularjs/angularjs_mvc_architecture.htm">Model-View-Controller</a></figcaption></figure><p>Angular employs the Model-View-Controller (MVC). The beauty of this methodology is the separation of concerns where the jobs that handle the user interface is separated from those that handle the logic of the application. As the diagram shown above, the controller handles all the requests for the application (i.e., user clicks on a visual diagram). It then communicates with the model to extract any data that is needed by the view. The view uses the data prepared by the controller to generate the right display for the request (i.e., user clicks on a visual diagram -&gt; diagram zooms in on that particular target with additional information).</p><p>Angular uses a different naming convention than the standard Model-View-Controller. It can be summarized as follows:</p><ul><li><strong>Service (Model)</strong>: Service communicates with the back-end to get the data requested by the controller. Since it is a singleton, it persists throughout the lifetime of the application. $scope is then used in the controller as the Model container.</li><li><strong>Directive (View)</strong>: Directive handles the final presentation displayed to the user after the controller extracts the information it needs from the service. <em>Directive should be the only one that manipulates the DOM.</em></li><li><strong>Controller (Controller)</strong>: Controller requests the data it needs from the service and bound them to $scope for the view to use. It can administer complex logic, but it should be minimized to the request it handles. Because of this, controller lasts as long as its use case requires.</li></ul><p>Knowing that Angular employs the Model-View-Controller framework, it might seem right for the first time to group the files by their respective types.</p><pre><strong>DO NOT FOLLOW THIS EXAMPLE</strong></pre><pre>app/<br>    app.js<br>    config.js<br>    Service/<br>        LoginService.js<br>        WorkspaceService.js<br>    Directive/<br>        LoginDirective.js<br>        WorkspaceDirective.js<br>    Controller/        <br>        LoginController.js<br>        WorkspaceController.js<br>    HTML/<br>        login.html<br>        workspace.html</pre><p>But a directory like the one above becomes increasingly difficult to follow with each additional feature. This also holds true for new team members who are not familiar with all the features the project has to offer. A better way to structure the directory is to group by the features and place the necessary MVC within the featured folder.</p><pre>app/<br>    app.js<br>    config.js<br>    Login/<br>        login.html<br>        LoginController.js<br>        LoginDirective.js<br>        LoginService.js<br>    Workspace/<br>        workspace.html<br>        WorkspaceController.js<br>        WorkspaceDirective.js<br>        WorkspaceService.js</pre><p>As you can see, you can find what you are looking for right off the bat and map out what features the project has (without having to dive right into the documentation page). Winning!</p><h3>Mistake #4: Bloated controller</h3><p>It’s very tempting to make the controller do so much. After all, it is the first to respond to an event and interacts with both the view and the model. But before we continue …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*cvqJ910Y_hQacPak0lK8Hg.png" /></figure><p>Let’s forget we even had that thought. Because the controller coordinates with the view and the model, it should be minimal so that testing is much simpler. It should never do what the directive does (manipulating DOM) nor should it ever store any data like what the service does. Controller will forget about the data after the application transitions states, so storing data in controller is a big no-no. Even if you managed to store it in the localStorage, it’s so much slower than storing it in a Javascript variable like $scope.</p><p>An example where I encountered such a problem is when I tried to have the controller handle what was supposed to be the job for the directive. After the controller provides a list of data to the HTML template, I wanted to <a href="http://stackoverflow.com/questions/34085076/execute-a-function-inside-ng-repeat-in-angularjs">iterate through the list and call a function for each item in the list</a>. At the time, I assumed that the controller is the mastermind behind all the logics in the view. It was an incorrect assumption to make because once the data is passed from the controller to the view, it is the directive’s job to handle any changes in the view. Once this MVC intuition is set into my core thinking, everything just falls into place.</p><h3>Mistake #5: Handling asynchronous calls</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*QF_hLBzG0OZaHoElloOYEg.png" /></figure><p>The most surprising aspect to wrap my head around is the idea of asynchronous calls in Javascript. Basically Javascript runs on a single thread in your browser. If I forced Javascript to execute in sequence, it will wait for one call to finish before moving on to the next. The user is then forced to interact with an unresponsive app. That’s why Javascript is the way as it is — asynchronous — to keep the application responsive. This is great when you are trying to develop a data visualization platform which makes multiple I/O calls to retrieve the data and has possibly multiple users interacting on the same field.</p><p>If an I/O call was dependent to a previous I/O call, how would you do it in Angular asynchronously? You can chain them. You can also have simultaneous I/O calls run in parallel before performing a logic on those data. <a href="http://solutionoptimist.com/2013/12/27/javascript-promise-chains-2/">Burleson Thomas</a> wrote a great blog post on how to accomplish this.</p><h3>Mistake #6: Watching too much</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*xnZCgJq3oWB9MtAo.png" /><figcaption><a href="https://docs.angularjs.org/guide/databinding">Two way data binding in Angular</a></figcaption></figure><p>Do you remember how magical it was when you first discovered two way data-binding in Angular? Without a line of code, you can make an element fully dynamic by changing the value in the $scope. But there lurks a hidden problem even I did not foresee. Before we tread through this adventurous path, let’s try to understand two-way data binding better so that we know where this potential problem lies.</p><p>Storing the state of the application inside the DOM is generally bad practice because the view should not store data. So where can we stow the state of the application if we can’t store it in the DOM? Why, we can store it in Javascript of course! But what if the user wanted to view the retrieved data? Hmm, I guess we can also store it in the DOM? Here lies the beauty and the beast in two-way data binding.</p><p>Because Angular saves the state of the application both in Javascript and the DOM and sync really fast between the two (as shown in the image above), you are able to dynamically change the element without adding a line of code. But with increasing complexity in the application, the number of elements increases, and sometimes you want to add a watcher on an element to perform additional logic on top of it. Overtime, your application can be overrun by zombie-like watchers waiting for the change on their respective element. This eats up the resources on your browser, and your application becomes slow. It can be especially bad when you are building an application on mobile devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*SVC1po6EnhsI8Zeo_etsTw.gif" /></figure><p>The solution to this problem is to avoid watchers if you can. Who says too much watching can be bad for you? Angular said. And if you know what’s good for you, always follow what Angular says (or you can transition over to Angular 2 that attempts to solve this issue). And please, don’t put a watcher in the controller. It’s already bloated.</p><h3>Why choose Angular 1 then?</h3><p>For those who are new to front-end development, Angular is a good place to start. It is not a quick way to start because there is a substantial learning curve involved that is not transferrable to other front-end frameworks. Even its successor Angular 2 is not the same as Angular 1.</p><p>Because Angular 1 employs the digest cycle to update its view, its performance can be questionable at times. Angular 2 supposedly fixes this performance issue by replacing the digest cycle (in the two-way data binding process) with a change detection algorithm that can check if the binding has changed and avoid scanning parts of the DOM tree that did not change. <a href="https://auth0.com/blog/more-benchmarks-virtual-dom-vs-angular-12-vs-mithril-js-vs-the-rest/">Sebastián Peyrott</a> compared the performance of Angular 1 against that of Angular 2 as well as other front-end frameworks’ if you’re interested.</p><p>So why did we choose Angular 1 instead of Angular 2? Or Angular 1 instead of Ember with Flux? The stable release of Angular 2 was announced after the start of the Gestalt challenge. Since it is a fairly recent release, we know we have to update regularly and adjust with each new updates. Our focus in Gestalt is to figure out how to explain data clearly in a visual manner. We try to minimize the disturbances in the flow of operation by choosing Angular 1. But, if we have the second chance to do it all over again, we would use Angular 2. Angular 2 has better performance and is tailored not only for the browsers in your desktop but also the browsers in your mobile devices.</p><p>As for Ember with Flux, we did not get a chance to explore them yet. It will be good practice to do so in the future. Both Angular and Ember can be paired up with D3.js (and other data visualization tools) to build the platform needed for visualizing — and more importantly, explaining — data.</p><h4>Lab41 is a Silicon Valley challenge lab where experts from the U.S. Intelligence Community (IC), academia, industry, and In-Q-Tel come together to gain a better understanding of how to work with — and ultimately use — big data.</h4><h4>Learn more at <a href="http://www.lab41.org/">lab41.org</a> and follow us on Twitter: <a href="https://twitter.com/_lab41">@_lab41</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c97609e7d471" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualization for Data Driven Storytelling]]></title>
            <link>https://medium.com/@tiffanyjaya/why-data-visualization-3cf85990b41b?source=rss-9a929e327df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cf85990b41b</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Tiffany Jaya]]></dc:creator>
            <pubDate>Mon, 08 Aug 2016 09:21:05 GMT</pubDate>
            <atom:updated>2016-10-03T20:36:25.115Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qpJ5JiDT7kncMu5qDS_84Q.jpeg" /></figure><p>Before words are introduced to a child, she draws. By the time she reaches her third birthday, she begins to grasp the symbolic meaning behind her drawings. What was once a circle and a stick are now a dandelion flower, a circle and a triangle are now her mother, and a circle by itself is now the sun. These symbolic drawings together tell a story, for example, of the time when her mother took the child to the park on a sunny afternoon to pick a dandelion flower.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fehnOpmmupu9_XaHXeCmcg.png" /></figure><p><strong>Visualization helps us grasp information efficiently because it is an innate skill that we have.</strong> It can be traced as far back to the history of man when the testimony on cave walls — drawn in vibrant red and yellow ochre — tells a story of how our ancestors used paintings as a means to communicate with each other over 40,000 years ago. <strong>Effective visual communication has to be well understood by the sender and receiver, or else the meaning behind the visuals and the story associated is lost. </strong>In the case of cave paintings, archaeologists have concluded that the prehistoric signs on the <a href="http://www.citrinitas.com/history_of_viscom/rockandcaves.html">cave walls are an early form of graphic communication</a>, but <a href="http://www.cbc.ca/news/technology/did-early-humans-communicate-with-cave-signs-1.3040723">they cannot figure out what these signs meant</a>. Similarly, had I not offered a potential meaning behind the child’s drawing above, you could interpret it in many different ways, maybe minimizing the underlying story to simply that of a girl holding a flower.</p><p>If we know that a picture is not enough to convey the message, we certainly cannot “glue” different data visualizations together and expect our audience to know what story these graphs/charts/images/diagrams/plots are supposed to say. Herein lies the problem with<em> exploratory visualization</em>. Exploratory visualizations are great for a subject matter expert. They piece graphs, charts, and plots together so that their target data consumer can “explore” and analyze data in a range of differing views. They are prevalent when it comes to assisting data scientists in building visualizations out of data and can be commonly found in the form of a dashboard. However, the goal of a data scientist is not to extract new information from the dataset for her own benefit. The goal of a data scientist is to inform and enlighten others — such as her management or her client — on how they can take action on the new information. For this reason, divergent visualizations without a cohesive narrative will not succeed in providing the visual persuasion that the data scientist needs.</p><figure><a href="https://echo.epa.gov/help/air-dashboard-help"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cZWOofSr78dpoftbmFSnHg.png" /></a><figcaption>An example of an exploratory visualization</figcaption></figure><p>On the other hand, adding context to a visualization is no easy task. This is what <em>explanatory visualization</em> should do, but even in our current state, explanatory visualizations are limited to mostly <a href="https://www.customermagnetism.com/infographics/what-is-an-infographic/">infographics</a>, which are static, manually generated, and relatively data-poor.</p><p>Data visualizations need to address the problems and insufficiency of explanatory and exploratory visualizations. There is no standardized way to go about building story-minded visualizations. I am fortunate enough to be a part of the team here at <a href="http://www.lab41.org/">Lab41</a> that is researching possible solutions to this problem in the <a href="https://github.com/Lab41/gestalt">Gestalt challenge</a>. My team has about 3 more months to figure out the optimal way to recommend and generate (and re-generate) explanatory visualizations from a given set of data — and do so interactively. By approaching it in this manner, we will negate the disadvantages of infographics and instill in data scientists the confidence they need to tell the salient and true story contained in their data and analysis.</p><p>I am excited to share this journey with you, so stay tuned for the next blog post! If you have additional time on your hands before then, take a look at the following articles that discuss the use of data comics and conversational user interfaces as possible means of visually explaining data:</p><ul><li><a href="http://hcil2.cs.umd.edu/trs/2015-15/2015-15.pdf">Data Comics: Sequential Art for Data-Driven Storytelling</a> (data comics)</li><li><a href="https://medium.com/behavior-design/die-dashboards-die-why-conversations-will-reinvent-software-a632880d5465#.9003pkx1b">Die Dashboards Die! Why Conversations Will Reinvent Software</a> (We find this intriguing for its nuanced stand against dashboards. We understand that it pays to be strategic in choosing where to add conversational user interfaces to a project; for one thing, conversational user interfaces do not have the instantaneous effect of an image when dealing with a large amount of information.)</li></ul><h4>Lab41 is a Silicon Valley challenge lab where experts from the U.S. Intelligence Community (IC), academia, industry, and In-Q-Tel come together to gain a better understanding of how to work with — and ultimately use — big data.</h4><h4>Learn more at <a href="http://www.lab41.org/">lab41.org</a> and follow us on Twitter: <a href="https://twitter.com/_lab41">@_lab41</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cf85990b41b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TPS Report for Recommender Systems? Yeah, That Would be Great.]]></title>
            <link>https://medium.com/@tiffanyjaya/tps-report-for-recommender-systems-yeah-that-would-be-great-3beb26ab9fe0?source=rss-9a929e327df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3beb26ab9fe0</guid>
            <category><![CDATA[recommender-systems]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[precision-metrics]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Tiffany Jaya]]></dc:creator>
            <pubDate>Sun, 13 Mar 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-10-13T19:06:36.791Z</atom:updated>
            <content:encoded><![CDATA[<h4>Standard Performance Metrics in Recommender Systems</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O7-303YEB5IkDFLpBlG2aA.jpeg" /></figure><p>Here at Lab 41, we launched a project called <a href="https://github.com/Lab41/hermes">Hermes</a> to look into recommender systems as a mean to answer the question, “How can we help analysts to connect the dots better across a number of different sources and data types?” My colleagues have spent a great deal of effort sharing their work in this space already, <a href="https://medium.com/gab41/recommending-recommendation-systems-cc39ace3f5c1#.c8tqirqf5">introducing recommender systems</a> in general, <a href="https://medium.com/gab41/the-nine-must-have-datasets-for-investigating-recommender-systems-8d46eddae823#.up8sa7kgb">going over what datasets</a> we have used to apply recommender system algorithms, and <a href="https://medium.com/gab41/recommender-systems-its-not-all-about-the-accuracy-562c7dceeaff#.u7hc3fkc2">discussing non-standard performance metrics</a> we can use to compare these recommender system algorithms. This blog post will <strong>focus on standard performance metrics</strong> that we use to compare the different recommender system algorithms.</p><p>Think of a recommender system as fulfilling an information retrieval task — retrieving items in an ordered list for a particular user. The standard practice of quantifying how well the system retrieves this information in the scientific world is via <strong>accuracy</strong> and <strong>precision</strong>. Accuracy is determined by how close you are to the correct result while precision is how consistently you receive the same result.</p><p>We will discuss in more detail exactly what accuracy and precision mean in the world of recommender systems. For now, understand that we will use accuracy and precision as well as other performance metrics to quantify the prediction error of a recommender system. We will also look into <strong>Root Mean Squared Error (RMSE) and Mean Absolute Error (MAE)</strong> to determine how well a recommender system performs when predicting a non-binary rating — for example, predicting what rating a user will give a movie on a scale from 1 to 5. We will also delve into metrics that address the performance of a recommender system that works only with binary ratings, such as differentiating a movie that a user is likely to watch from one which a user will fall asleep in. In addition, we will define <strong>recall</strong> and <strong>F-score</strong> for supplementary insight into recommendations on binary values. And what better way to learn about these performance metrics than to get your hands dirty implementing and using them in Spark! At the edge of your seat already? Well I <em>recommend</em> that you read on!</p><h3>Predictive Performance Metrics</h3><p>There is a plethora of recommendation algorithms that you can apply to a dataset. We view recommendations as a supervised learning problem where the task is to predict users’ ratings of items, interactions between users and items, or even links between users and items. A model trained on a labeled set of user ratings or interactions can be used to make predictions (i.e. recommendations) on a separate set of inputs similar to the training set.</p><p>With as many algorithms to choose from as there are mobile dating apps, how can we be sure that we apply the right performance metrics for comparing algorithms? After all, with recommenders as with online dating, being choosy makes a difference!</p><p>The answer is…it depends on the dataset in question. If the algorithm makes predictions of a non-binary value, like what rating a user will give on a movie on a scale of 1 to 5, we can use RMSE or MAE. RMSE and MAE calculate the distance between the predicted value given by the algorithm and the actual value given by the user. Since accuracy is determined by how close the prediction is to the correct result, the lower the error is, the closer the prediction is to the actual value. In other words, with RMSE or MAE, we can determine how well a user’s ratings can be reproduced by the recommender system algorithm.</p><h4><strong>Root Mean Squared Error and Mean Absolute Error</strong></h4><p>Root Mean Squared Error (RMSE) can be described as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*SLgC8fq-m71ByKBPEhgSEA.png" /></figure><p>where p_i is the predicted value, r_i is the actual value, and n is the number of items to be predicted.</p><p>Subtracting r_i from p_i allows us to quantify how far off the predicted value is from the actual value. By squaring the difference, (p_i - r_i)^2, we can keep the error positive, no matter if the predicted or the actual value is higher. Summing up all of the differences and dividing them by the number of items to be predicted gives us the average of the prediction errors. Since squaring the difference changes the scale, we need to bring the scale back down by putting a square root over the entire equation. RMSE, therefore, describes the average of how far off the predicted value is from the actual value.</p><p>Mean Absolute Error, or MAE, can be described as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*s4Qk1npYUWmDszQwkSweTg.png" /></figure><p>The only difference between RMSE and MAE is in their approach of keeping the error positive. RMSE squares the residual while MAE takes the absolute value. Since it doesn’t square the difference, MAE places less emphasis on large deviations than RMSE. MAE, therefore, punishes large errors much less severely than RMSE does.</p><h4><strong>Implementation of RMSE and MAE in Spark</strong></h4><p>If you are not familiar with the use of resilient distributed datasets (RDD) in Spark, please check out <a href="https://www.lab41.org/transformers-rdd-in-disguise">my blog post</a> on the topic as I will be using RDDs throughout this section.</p><p>Let’s consider the case of a recommender system trying to predict what rating a user will assign to a movie. We have a RDD called y_predicted that the recommender system algorithm outputs. y_predicted is in the form [(user_id, movie_id, predicted_rating)]. It lists the predicted rating for each user and movie pair. y_actual is the RDD that has the actual rating for each user and movie pair. Its format is [(user_id, movie_id, and actual_rating)]. To implement RMSE in Spark, we first have to reformat y_predicted and y_actual so that user_id and movie_id are used as the key.</p><pre>y_predicted_reformat = y_predicted.map(<br>  lambda (user_id, movie_id, predicted_rating): <br>         ((user_id, movie_id), predicted_rating)<br>)</pre><pre>y_actual_reformat = y_actual.map(<br>   lambda (user_id, movie_id, actual_rating): <br>          ((user_id, movie_id), actual_rating)<br>)</pre><p>Once you have reformatted the RDD, you can join the result together so that you have both predicted_rating and actual_rating in the same RDD to compute their squared difference.</p><pre>ratings_diff_sq = (y_predicted_reformat).join(y_actual_reformat) \<br>  .map(lambda (_, (predicted_rating, actual_rating)): \<br>              (predicted_rating — actual_rating) ** 2 )</pre><p>You determine the average of the prediction errors by adding all the differences together with the reduce function and then dividing by the number of ratings.</p><pre>sum_ratings_diff_sq = ratings_diff_sq.reduce(add)</pre><pre>num = ratings_diff_sq.count()</pre><pre>average_prediction_error = sum_ratings_diff_sq / float(num)</pre><p>To scale it back down after squaring the difference, take the square root of the prediction error average.</p><pre>rmse = sqrt(average_prediction_error)</pre><p>Now that you know how to compute RMSE in Spark, your homework is to implement MAE. The answer can be found in <a href="https://github.com/Lab41/hermes/blob/master/src/algorithms/performance_metrics.py">Hermes’s GitHub repo</a>, so go check that out after you are done here.</p><p>Although it is good practice to know how to implement RMSE and MAE in Spark, Spark’s MLlib has its own implementations of each that you should probably use. The only input required is a RDD containing the predicted and actual rating pair in the format of [(predicted_rating, actual_rating)].</p><pre>predicted_and_actual_ratings =   <br>    y_predicted_reformat.join(y_actual_reformat) \<br>        .reduceByKey(lambda \<br>            predicted_rating, actual_rating: \<br>                predicted_rating + actual_rating) \<br>        .map(lambda \<br>            ((user_id, movie_id), \<br>             (predicted_rating, actual_rating)): \<br>                (predicted_rating, actual_rating)<br>    )</pre><pre>from pyspark.mllib.evaluation import RegressionMetrics</pre><pre>metrics = RegressionMetrics(predicted_and_actual_ratings)<br>rmse = metrics.rootMeanSquaredError<br>mae = metrics.meanAbsoluteError</pre><h3>Classification Performance Metrics</h3><p>RMSE and MAE allow us to compare systems that output non-binary values. If we need to compare recommender systems of binary values, we can employ accuracy, precision, recall or F-scores.</p><p>Before we dive deeper into what each of these metric entails, we should first go over what a confusion matrix is, as this will make it easier for us to understand the metrics. In a binary classification problem where an event can either occur or not occur, there are only four possible combinations of predicted and actual value.</p><p>We can either successfully predict whether or not the event occurs:</p><ul><li>predict that the event is likely to occur and it does occur: true positive (TP)</li><li>predict that the event is not likely to occur and it does not occur: true negative (TN)</li></ul><p>or we can fail to do so:</p><ul><li>predict that the event is likely to occur but it does not occur: false negative (FP)</li><li>predict that the event is not likely to occur but it does occur: false positive (FN)</li></ul><p>When your recommender has run on a dataset you can tally up each of these cases and put them in in a table, often called a <strong>confusion matrix</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*yTa-v_WL9X2sTYsgOVhalw.png" /></figure><h4>Accuracy, Prediction, Recall and F-score</h4><p>Let’s look at a similar case to the one we looked at for RMSE and MAE, but instead try to determine if a recommender system algorithm can assess whether or not a movie is good (assuming a clean binary distinction between good and bad movies). If an algorithm is accurate, we can just count the number of correct classifications over the total number of cases. We can express that as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*ggdCqAK4HOcH8JmuM7dOpg.png" /></figure><p>Precision helps us assess the likelihood that a positive prediction (movie was good) is indeed positive. In fact, in other fields, precision also goes by the name “positive predictive value.” It is defined as the ratio of true positives to positive predictions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*iRf1vlWtxm2TZ1s8MwhT7Q.png" /></figure><p>Precision can be easily confused with recall. Recall is the proportion of correct positive classifications of cases that are actually positive. In the binary movie quality example, recall measures the proportion of good movies that the recommender system successfully recommends.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*RyECYcYc34BLgED4Zix4NA.png" /></figure><p>Precision and recall are inversely related. As we recommend more items, recall increases but precision decreases, and vice versa. We can combine precision and recall to provide a single measurement for a recommender system: the F-score. The traditional (“balanced”) F-score is defined as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/246/1*tzJOwPMZR_BHkrymkzbtyg.png" /></figure><h4>Implementation of Precision, Recall, and F-score in Spark</h4><p>Since Spark has its own library that computes precision, recall and F-score, we will demonstrate how to compute these metrics in MLlib and leave the manual implementation of each as homework. The only input the library requires is a RDD containing the predicted and actual classification pair. We will use a RDD called predicted_and_actual_classifications in the format of [(predicted_classification, actual_classification)]. We will also assume that the prediction and actual classification is either 0.0 or 1.0, where 0.0 is considered a “bad” movie and 1.0 is considered a “good” movie.</p><pre>from pyspark.mllib.evaluation import RegressionMetrics</pre><pre>metrics = RegressionMetrics(predicted_and_actual_classifications)</pre><pre>confusion_matrix = metrics.confusionMatrix().toArray()</pre><pre>precision = metrics.precision()</pre><pre>recall = metrics.recall()</pre><pre>f1 = metrics.fMeasure()</pre><pre>precision_for_bad_movies = metrics.precision(0.0)</pre><pre>precision_for_good_movies = metrics.precision(1.0)</pre><pre>recall_for_bad_movies = metrics.recall(0.0)</pre><pre>recall_for_good_movies = metrics.recall(1.0)</pre><pre>f1_for_bad_movies = metrics.fMeasure(0.0, 1.0)</pre><pre>f1_for_good_movies = metrics.fMeasure(1.0, 1.0)</pre><h3>Conclusion</h3><p>Accuracy and precision allow us to train a recommender system by minimizing the prediction error and then estimating the quality of the recommender system for other recommendations, where we have no ground truth. However, we must not lose sight of other metrics that can describe a given recommender system, as explained in Anna’s blog post <a href="http://www.lab41.org/recommender-systems-its-not-all-about-the-accuracy/">on metrics for novelty, diversity, and serendipity in recommendations</a>. I encourage you to take a look! If we focus too highly on accuracy, precision, and recall, our recommender system model might overfit the training data at the expense of producing quality recommendations. Although we only covered a small subset of performance metrics in this post, we hope you have a better understanding of their use. You can learn more about other performance metrics implemented in Spark by either reading the <a href="http://spark.apache.org/docs/latest/mllib-collaborative-filtering.html">documentation</a> or the <a href="https://spark.apache.org/docs/1.6.0/api/python/_modules/pyspark/mllib/evaluation.html">source code</a>. And if you are interested in Hermes, please check out <a href="https://github.com/lab41/hermes">our GitHub page</a>. We hope to see you soon!</p><p><em>Originally published at </em><a href="https://www.lab41.org/tps-report-for-recommender-systems-yeah-that-would-be-great/"><em>www.lab41.org</em></a><em> on March 13, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3beb26ab9fe0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transformers: RDDs in Disguise]]></title>
            <link>https://medium.com/@tiffanyjaya/transformers-rdds-in-disguise-5890de0ef728?source=rss-9a929e327df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5890de0ef728</guid>
            <category><![CDATA[pyspark]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[introduction-to-pyspark]]></category>
            <category><![CDATA[recommender-systems]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Tiffany Jaya]]></dc:creator>
            <pubDate>Sun, 13 Mar 2016 00:00:00 GMT</pubDate>
            <atom:updated>2016-10-13T19:05:34.055Z</atom:updated>
            <content:encoded><![CDATA[<h4>An Introduction to PySpark</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XwcUkAUwWD1JFwR9vekIKA.jpeg" /></figure><p>This blog post is intended as a practical introduction for anyone who has data and needs to reshape that data into another format for analysis. To do this, I will use Spark and its Resilient Distributed Dataset (RDD). Data that are encapsulated in RDD can be transformed from one form to another. I will focus on how RDD <em>transformations</em> can help you group, filter, and sort your data. Although we will take examples from <a href="https://github.com/lab41/hermes">Hermes</a> (Lab 41’s exploration of recommender systems) to learn how these transformations are applied, you do not need to have an extensive knowledge of the project to follow along. Feel free to check out <a href="https://github.com/lab41/hermes">Hermes’s GitHub</a> and its accompanying blog posts, starting with Anna’s post to get <a href="https://gab41.lab41.org/recommending-recommendation-systems-cc39ace3f5c1#.4qqtyrvn6">an overview of the project and of recommenders in general</a>. You might also want to check out Kyle’s blog post on <a href="https://gab41.lab41.org/using-docker-to-build-an-ipython-driven-spark-deployment-47e2343df17c#.nmj2brfmx">how to use Docker to build an IPython-driven Spark deployment</a>, if you’re interested in setting up a Spark environment but don’t know how.</p><h3>What is RDD?</h3><p>RDDs are Spark’s main abstraction component. Think of it as a handler to your partitioned data after some computation. It addresses the data reuse problem found in existing distributed computing systems, i.e. Hadoop’s MapReduce. Instead of storing intermediate data after a computation into on-disk storage such as HDFS, these data can be run under multiple computations without additional creation of data unless a “reduce” (in Hadoop’s MapReduce term) or a “shuffle” (in Spark term) operation is performed. The ability to not create intermediate data during computation is one of the reasons why Spark is able to execute faster than Hadoop’s MapReduce.</p><p>Of course, there are other reasons why Spark is faster than Hadoop’s MapReduce. I will not cover them in this blog post — as that can be another blog post in itself — but this is the reason why I decided to use Spark in this tutorial.</p><h3>Counting the number of distinct items</h3><p>Let’s take data that has the following format: [(user_id, movie_id, rating)],where user_id refers to a particular user, movie_id refers to a particular movie, and rating is the rating that the user assigns to the movie. We want to determine what is the total number of users in this dataset. Since one user can rate multiple movies at any given time, we cannot just count the number of records to find the number of users. Instead, we use the <strong>distinct</strong> function to determine the correct number of users. Here’s how you do it in Python (which I will use throughout this article):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*s5L_m8KTkOI6Qy6YGpissQ.png" /></figure><p>There are only 4 users: 5, 9, 25, and 78.</p><h3>Grouping</h3><p>If we are working with the same dataset as above and want to group all the ratings a movie has received — that is, transform data in the original format [(user_id, movie_id, rating)] into pairs of [(movie_id, [(user_id, rating)])] — we can use <strong>groupByKey</strong> and set movie_id as the key (or label) and user_id and rating as the values (or features). But Databricks, creator of Spark, <a href="https://databricks.gitbooks.io/databricks-spark-knowledge-base/content/base_practices/prefer_reducebykey_over_groupbykey.html">suggests not to use groupByKey in general</a> because it is computationally expensive. One way to overcome this is to use the transformation function <strong>reduceByKey</strong>.</p><p>Here’s why: the dataset that you provide to Spark is typically partitioned, so that when you assign a task, the task can be run in parallel across the dataset. Tasking reduceByKey on your dataset means that Spark performs the reduce operation at each partition before shuffling. Shuffling is Spark’s way of redistributing the data so that it is grouped differently across partitions. The shuffle step involves data serialization and I/O calls, which are expensive. By contrast, when you task groupByKey on your dataset, Spark shuffles each element in your dataset before executing the group operation. Although reduceByKey will not solve every grouping problem that you encounter, <strong>it is usually better to use reduceByKey, foldByKey, or combinebyKey than groupByKey</strong>. For this example, we will use both groupByKey and reduceByKey and compare their runtimes on our cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*hBTb9Yc7JjHLQih67if0ug.png" /></figure><p>groupByKey returns a ResultIterable as its value. To convert this to a Python list, we have to map the values to a list:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*F9Dg4vpkD2wMb-XrrIH-Jg.png" /></figure><p>The movie with id 25 has 5 ratings. User 320 rates it a 3. User 333 rates it a 4 and etc.</p><p>This groupByKey operation ran on 1M elements on our cluster and returned in 10.76 seconds.</p><p>Now let’s see if reduceByKey really is faster. We have to wrap each value — that is, each (user_id, rating) tuple — in a list because lists are mutable. We then have to explicitly specify an append operation to concatenate each movie’s user-rating pairs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*TEmkTgTaWCc6DBD_eJQ1SA.png" /></figure><p>The time it takes to execute this reduceByKey operation with 1M elements on our cluster is 5.50054502487 seconds.</p><p>As you can see, it is much faster to compute using reduceByKey than groupByKey as our example of reduceByKey takes approximately 5 seconds while groupByKey takes approximately 10 seconds.</p><p><strong>The main limitation of reduceByKey is that the input and output value have to be the same type. If the input and output value are of different types, try combineByKey.</strong> We will first compare combineByKey with groupByKey and reduceByKey using the above example case. We will then go into detail on how combineByKey works when the output type is different from the input type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*2dSQunNgqHhzSsuaeFrq0A.png" /></figure><p>The time it takes to execute this combineByKey operation with 1M elements is 9.91050696373 seconds.</p><p>Let’s go through each argument to combineByKey:</p><ol><li>The first argument, createCombiner, is lambda first_user_rating_pair: first_user_rating_pair. This callable handles the very first value encountered by combineByKey. In this case, since the first value is in the format of [(user_id, rating)], it is in the format we already desired. We return it unchanged. Remember, as with any lambda callable, you can substitute this with a defined function.</li><li>The second argument, mergeValue, is specified as lambda combined_values, new_user_rating_pair: combined_values + new_user_rating_pair. The mergeValue callable tells combineByKey what to do when it encounters a new value other than the first value. In this case, we want to append the new value to the growing list of ratings tuples. If we encountered a second value in the format of [(user_id_2, rating_2)], we will append this to the first value we have already handled, so it will output [(user_id_1, rating_1), (user_id_2, rating_2)].</li><li>The third argument, mergeCombiners, is lambda combined_values_1, combined_values_2: combined_values_1 + combined_values_2. This handles what combineByKey will do when it needs to merge two combiners, for instance after running two combiners on different partitions of the data and then aggregating their results. In this case, the function just appends the two lists together, similar to the mergeValue argument.</li></ol><p>combineByKey is essentially what is implemented underneath reduceByKey, but does not constrain the input and output to be of the same type. Let’s take combineByKey and transform the input type into a differing output type which reduceByKey cannot do.</p><p>Let’s say we want to compute the average rating of each user by transforming [(user_id, movie_id, rating)] into [(user_id, mean_rating)]. Since calculating the average rating of a user requires only user_id and rating, we can transform the RDD from [(user_id, movie_id, rating)] into [(user_id, rating)] first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*CslPF6O1zvE1cS_OJx--rA.png" /></figure><p>Below we call combineByKey and convert the value rating from type float to type tuple. This tuple consists of the sum of all ratings a user has rated and the number of ratings a user has rated. These two values will be used to calculate the mean rating of a user because mean = sum/num.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*TCkQD9wYuPSx6jQM3GoHsA.png" /></figure><p>User with id 1536 gives an average rating of 4.2. User with id 2304 gives an average rating of 3.7 and etc.</p><p>It is much faster to use combineByKey compared to groupByKey as this example takes less than 10 seconds to run on 1 million records. Unlike reduceByKey, combineByKey can have a different output type than its input. In this case, the input rating is of type float and the output (sum_rating, num_rating) is of type tuple.</p><h3>Filtering</h3><p>If you are keeping up to this point, great job! Let’s take a step further by extracting all the movies users enjoy. We will do so by retrieving all the movies which a user gave above his/her personal rating average.</p><p>All of the examples taken in this blog post are computations we have used in Hermes using the MovieLens dataset. In a recommendation systems, ratings should be tailored to the individual’s habit and preferences, and should probably take into account what their personal average rating is. If we wanted to get a list of movies that each user likes, one approach would be to pull out all the movies that users gave above-average rating to, adjusting that average to their personal preference.</p><p>Since we already have mean ratings for each user, let’s filter out all ratings that are less than the user’s mean rating so that we are left with a list of movies with positive weight for each user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*mcwMHa38t4BMYsF5bVvvJQ.png" /></figure><p>user_movieRating is in the format of [(user_id, (movie_id, rating))]. user_meanRating is in the format of [(user_id, user_mean_rating)]. When you join these two RDDs together, you will receive an output in the format of [(user_id, ((movie_id, rating), user_mean_rating))] because the transformation function join appends the two values together in a tuple when they have matching key; in this case, the matching key is user_id.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*YHIxpr3_a_2uHqIiocYMyQ.png" /></figure><h3>Sorting</h3><p>Normally RDDs are unordered unless you explicitly apply transformations like sortBy, sortByKey, or takeOrdered:</p><ul><li>sortBy: sort according to the function that is passed in</li><li>sortByKey: sort by a key</li><li>takeOrdered: sort according to the function that is passed in and take the first N elements</li></ul><p>As an example, let’s say we want to get the 10 users with the highest mean rating. We also want to make sure that the user_id is sorted. To execute this computation, you can do the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*XGHjfk210CQYlHFrhqDqXQ.png" /></figure><p>What is this code doing?</p><ol><li>First, it sorts in descending order by the user’s mean_rating. To sort in descending order, you have to take the negative of the mean_rating.</li><li>Second, it sorts by user_id in ascending order. If there are two users with the same mean rating, the user with the lower value user_id will be sorted ahead of the user with the higher value user_id. (We don’t actually see any such ties in the example above).</li><li>Last, it gives a Python list of the first 10 elements in the RDD.</li></ol><h3>Grouping and Sorting</h3><p>Yes, we are nearing completion! By this point, you have a general understanding of how to use transformation functions with RDDs. It is time to take everything that you have learned and roll it into one. As Optimus Prime from Transformers said, “Autobots, roll out!”</p><p>In this example, which is an actual use case that we encounter in Hermes, we want to extract the top 20 users who have the most similarity with a given user. The input RDD is in the format [((user_id_a, user_id_b), (pearson_correlation, num_shared_ratings))]. pearson_correlation is the measure of similarity (linear correlation) between two users. num_shared_ratings is the number of ratings user_id_a and user_id_b shared.</p><p>Ritesh Agrawal provided a clean solution to this problem in his blog post <a href="https://ragrawal.wordpress.com/2015/08/25/pyspark-top-n-records-in-each-group/">“PySpark: Top N Records in Each Group”</a>. If you have not checked his blog out, please do so. He writes new ways on how to approach a problem in Spark.</p><p>The first thing that we want to do is to specify the key. Assume that we have a RDD named input with the following format: [((user_id_a, user_id_b), (pearson_correlation, num_shared_ratings))]. Since we wanted to know the top 20 users who have the most similarity with a given user, we can select the given user as user_id_a and user_id_b as other users who have similarity (or little similarity) with user_id_a. Because of this, we can specify user_id_a as the key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*Jh4be7i4F7tZzOWvMTSULQ.png" /></figure><p>Next, we want to group the top 20 user_id_b for each user_id_a and have the Pearson correlation between the two users sorted in descending order. We can use <strong>combineByKey</strong> function to do this by appending all user_id_b for each user_id_a in a list and sorting this list in the <strong>merge_value</strong> and <strong>merge_combiner</strong> functions to extract the top 20. We can employ heapq library’s <strong>nsmallest</strong> and <strong>nlargest</strong> functions to extract the smallest or the largest values the list contains respectively.</p><p>If you think about it, this is the same thing as <strong>takeOrdered</strong> but by key. Agrawal who proposed this solution aptly named it <strong>takeOrderedByKey</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*PRK8eipMA-Pt6HN9gcI1zQ.png" /></figure><p>You can then add this function to the RDD class so that you can call takeOrderedByKey like you would with any transformation function like takeOrdered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*QeYq64baUSXQGCh-sdmbMA.png" /></figure><p>We can call takeOrderedByKey to determine the top 20 users who have the most similarity with a given user by Pearson Correlation, sorted with the highest value first and the lowest value last.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*f9ZQw1IlBcORqNGmZ9maSQ.png" /></figure><p>If desired, we can then remove the key, user_id_a, since it is only needed during the computation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*FLrw3EntBF4gJyPokw6CDw.png" /></figure><h3>RDD Transformation is not RDD Action</h3><p>We must remember that RDD transformation is not the same as RDD action. Just like how RDD is created in two ways — either by referencing a dataset stored in external stable storage or by transforming an existing RDD — computing a RDD is also done in two ways: action or transformation. Action produces a value back to the driver program (the program that runs on the main node where you can see the output). Transformation, on the other hand, produces a new RDD. Its computation will not be executed until you call an action on that RDD. <strong>Remember that both RDD transformations and actions can only be called within the driver program and not within other RDD transformations and actions.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QUfQP-Dc454jfZjd.png" /></figure><p>Remember the distinct example we looked at earlier? The distinct function is a transformation function, and the count function is an action function. <strong>Transformation functions do not run until an action function is called. </strong>In other words, Spark is a lazy in a sense that transformation function like distinct creates the transformed RDD and defers the actual computation until count is called. “This design enables Spark to run more efficiently — for example, we can realize that a dataset created through map will be used in a reduce and return only the result of the reduce to the driver, rather than the larger mapped dataset.” It is another reasons why Spark can run faster than Hadoop’s MapReduce.</p><h3>Conclusion</h3><p>I hope you now have a basic understanding of RDD transformation functions. Please feel free to check out other transformation functions not covered in this blog post, such as aggregate, cogroup, foldByKey, and foreach. You can find a list of these transformation functions along with examples at the <a href="https://spark.apache.org/docs/1.6.0/api/python/pyspark.html#transformations">Spark’s docs</a>.</p><p>Also, if you are interested in getting hands-on with the recommender system project we are carrying out, please feel free to either check out our <a href="https://github.com/lab41/hermes">GitHub</a> page or read my colleagues’ blog posts:</p><ul><li><a href="https://gab41.lab41.org/recommending-recommendation-systems-cc39ace3f5c1#.hlycrohyn">Recommending Recommendation Systems</a>: blog post introducing what recommender system is and what Hermes will entail</li><li><a href="https://gab41.lab41.org/the-nine-must-have-datasets-for-investigating-recommender-systems-ce9421bf981c#.uyp549jae">Nine Datasets for Investigating Recommender Systems</a>: blog post introducing what datasets we have used in Hermes</li><li><a href="https://gab41.lab41.org/recommender-systems-its-not-all-about-the-accuracy-562c7dceeaff#.9j517ddya">Recommender Systems — It’s Not All About the Accuracy</a>: blog post introducing non-standard performance metrics</li><li><a href="https://medium.com/@tiffapedia/tps-report-for-recommender-systems-yeah-that-would-be-great-3beb26ab9fe0#.jix98xcwb">TPS Report for Recommender Systems? Yeah, That Would be Great</a>: blog post introducing standard performance metrics</li><li><a href="https://gab41.lab41.org/python2vec-word-embeddings-for-source-code-3d14d030fe8f#.gqbgb5vb7">Python2Vec: Word Embedding for Source Code</a>: recommending source code using word embeddings</li></ul><p><em>Originally published at </em><a href="https://www.lab41.org/transformers-rdd-in-disguise/"><em>www.lab41.org</em></a><em> on March 13, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5890de0ef728" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>