<?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 Seçil Şen on Medium]]></title>
        <description><![CDATA[Stories by Seçil Şen on Medium]]></description>
        <link>https://medium.com/@secilsen?source=rss-c9dd3041b9b8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qdsCPmtGONDD8enWAGmtLw.jpeg</url>
            <title>Stories by Seçil Şen on Medium</title>
            <link>https://medium.com/@secilsen?source=rss-c9dd3041b9b8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:21:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@secilsen/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[Ray Tutorial]]></title>
            <link>https://medium.com/codable/ray-tutorial-b3a1fb6e3601?source=rss-c9dd3041b9b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3a1fb6e3601</guid>
            <category><![CDATA[rays]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[obss-codable-english]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Seçil Şen]]></dc:creator>
            <pubDate>Wed, 12 Oct 2022 11:40:46 GMT</pubDate>
            <atom:updated>2022-10-12T11:40:46.060Z</atom:updated>
            <content:encoded><![CDATA[<p>This post aims to give a brief introduction of Ray, how it works and why it might be intriguing for the AI community. We’ll build a simple NLP application and distribute its tasks across multiple clusters. Prior knowledge in NLP and transformers are required to properly understand this post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*0_CwN2FK-PFXMjavt6-fjQ.png" /></figure><h3><strong>Introduction.</strong></h3><p><a href="https://www.ray.io/ray-core">Ray</a> is an open-source framework that enables the distribution of python applications. It is tailored considering the needs of AI/ML systems that have tasks like data preprocessing, hyperparameter tuning, model training, and serving. All those tasks are compute-intensive; require physical resources, preferably remote resources. Thus, the idea of distributing those tasks across clusters is attractive for most AI researchers. However, distributing pure python applications without any hands-on tool sounds compelling because the researcher has to schedule the processes, develop a failure management mechanism and handle interprocess communication while dealing with AI tasks’ inner challenges. Here, Ray comes into play. It addresses all those challenges of AI systems. Moreover, it is very simple; with few lines of API calls, one can distribute, manage and serve an application across clusters without considering distributed system management. Ray has different libraries that target all those challenges, <a href="https://www.ray.io/ray-tune">Ray Tune</a> for hyperparameter tuning, <a href="https://www.ray.io/ray-serve">Ray Serve</a> for serving a python application, and <a href="https://www.ray.io/rllib">RLib</a> for special needs of Reinforcement Learning. To use the aforementioned libraries, your python application must be decorated with <a href="https://docs.ray.io/en/latest/ray-core/package-ref.html">Ray Core API</a>. In this tutorial, we’ll go through the details of Ray Core API.</p><p>Before we start, I’ll introduce the Ray Core API components. Ray uses the actor model to tackle state management. Each Ray actor can be considered as a stateful component. Every Python class can be converted into a service by only adding the “@ray.remote” decorator at the beginning of the class declaration. While creating an object from the decorated class, simply calling<em> </em>the<em> “</em>remote()” function turns that object into an actor and each component of that object can be considered as stateless. Ray itself handles thread safety and schedules depending tasks across clusters.</p><h3><strong>An Example.</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*30fg8nwzzup4Stu80wGd1A.png" /></figure><p>As mentioned, we will build a simple transformer-based NLP system where the logical relationship of a pair of two sentences will be determined. NLP community calls it a Natural Language Inference (NLI) task where those sentences are named as hypothesis and premise respectively and the relationships are categorized into three types:</p><ul><li><strong>Entailment</strong>: the hypothesis can be inferred from the premise.</li><li><strong>Contradiction</strong>: the negation of the hypothesis can be inferred from the premise.</li><li><strong>Neutral</strong>: all the other cases.</li></ul><p>So our system will read two different sentences, feed them to an NLI model that will predict the relationship type, and output its prediction (entailment, contradiction, or neutral). For the sake of our example’s simplicity, we’ll use a pre-trained NLI model from <a href="https://huggingface.co/">huggingface transformers library</a>. So, make sure that you have already installed <a href="https://pytorch.org/">PyTorch</a>, <a href="https://docs.ray.io/en/latest/ray-overview/installation.html">Ray</a>, and <a href="https://huggingface.co/docs/transformers/installation">Transformers</a>. If the installations are successful, you’re all set.</p><p>First of all, we have to start the Ray.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f5a0a628bdeffe1c377a3235811e167/href">https://medium.com/media/8f5a0a628bdeffe1c377a3235811e167/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/26914912c3762d85f63735256560cff8/href">https://medium.com/media/26914912c3762d85f63735256560cff8/href</a></iframe><p>Now we run Ray on our local machines. If we want to run on a cluster, we need to pass the cluster location as a parameter to the “init()” function.</p><p>The NLI model expects two different sentences. Let’s say we have two different text resources and we would like to assign different workers responsible for reading those lists sequentially. Since those workers will perform identical operations, we can create an actor class called <strong>ReaderWorker</strong> and instantiate two different objects from that class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a53c47198d0ac3175f347b570449c2a1/href">https://medium.com/media/a53c47198d0ac3175f347b570449c2a1/href</a></iframe><p>Here, our text resources are simple python lists. The reader can read batches of sentences. As mentioned, we define a simple python class and by only adding the “@ray.remote” decorator, we turn that class into a service. Now we can create two different actors from that service:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b23b4ffb2d728d780299ac2913b7b4f/href">https://medium.com/media/0b23b4ffb2d728d780299ac2913b7b4f/href</a></iframe><p>The difference between object creation in Python and actor creation in Ray is obvious here: the “remote()” function call. The logic of passing parameters while initializing an actor is noticeable as well; simply pass desired parameters to the “remote()” function in the same order as the “__init__” function, “remote()” function handles the rest.</p><p>Now we need a service that loads the transformer model, takes two sentences, passes them to the model, and outputs the result respectively. Let’s name it as <strong>NLIWorker</strong> class and create an actor from that.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/851ab0ea71c6d8917c100c4d628941f2/href">https://medium.com/media/851ab0ea71c6d8917c100c4d628941f2/href</a></iframe><p>We are using ‘<a href="https://huggingface.co/cross-encoder/nli-distilroberta-base">cross-encoder/nli-distilroberta-base</a>’ model from huggingface as the NLI model. Now our “nli_worker” actor is ready for the prediction. However, the system has to somehow beware of the states of two reader actors since the NLI model might work with batches, meaning that the system has to wait for two reader actors’ output at each step before feeding the next batch into the NLI worker. Otherwise, the NLI model might throw an error. This is a common problem while working with clusters in distributed systems because each cluster might work on resources with different computational powers and solving it might require communicating with the OS in the current machine manually. As AI researchers, we don’t want to waste our time with complicated OS operations. Moreover, we might want to run our workers in different machines with different internal states and it sounds so hard to maintain. Thanks to Ray (again), this problem is solved by utilizing the “ray.wait()” function. Below code shows how the “ray.wait()” function works:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/23bade1a8781f1da335e828aec013bee/href">https://medium.com/media/23bade1a8781f1da335e828aec013bee/href</a></iframe><p>Each reader worker has “get_next_batch()” function that reads the given list. The functions of service classes can be called by the “remote()” function in the same manner. However, when a function of an actor is called with the “remote()” function, “remote()” returns an object id pointing to that operation. This way, Ray identifies and communicates with that operation if requested. For each batch call, we create object ids of workers and pass them as parameters to the “ray.wait()” function to make Ray wait for that operation before starting the next operation in the queue. “ray.wait()” returns two lists: “ready” and “not_ready”. Those lists contain the “object_ids” that have been terminated and not terminated yet, respectively. Checking those lists’ contents might be crucial for the sake of such applications but we skip that part for now. We only check the length of the “ready” list here. If both operations are terminated, their output will be fed through the NLI model. The list “ready” has the outputs of the workers in the same order as passed in the parameters of “ray.wait()”. So reader[0] and reader[1] refer to the object ids of the produced batch of workers 1 and 2 respectively. Beware that, it is not the value of the batches, the object ids of the batches which represent those batches in the Ray Object Store since Ray can recognize its objects only with their ids. It is similar to the pointer mechanism but more readable. If we call “ray.get(object_id)”, Ray checks its object store and matches the values with the object ids. For more information on Ray Object Store, please refer to <a href="https://docs.ray.io/en/master/ray-core/objects/memory-management.html">this</a> tutorial series.</p><p>The output of the whole example is shown below:</p><pre>Premise list for batch #0:<br>[&#39;A man inspects the uniform of a figure in some East Asian country.&#39;, &#39;An older and younger man smiling.&#39;]<br>Hypothesis list for batch #0:<br>[&#39;The man is sleeping.&#39;, &#39;Two men are smiling and laughing at the cats playing on the floor.&#39;]<br>Results for batch #0:<br><br><br>Premise list for batch #1:<br>[&#39;A black race car starts up in front of a crowd of people.&#39;, &#39;A soccer game with multiple males playing.&#39;]<br>Hypothesis list for batch #1:<br>[&#39;A man is driving down a lonely road.&#39;, &#39;Some men are playing a sport.&#39;]<br>Results for batch #1:<br><br><br>(NLIWorker pid=304472) [&#39;contradiction&#39;, &#39;neutral&#39;]<br>(NLIWorker pid=304472) [&#39;contradiction&#39;, &#39;entailment&#39;]</pre><h3><strong>Conclusion.</strong></h3><p>As we can see from our example, Ray’s abstraction mechanism is simple yet powerful. If you want to learn more about Ray, the tutorials listed below might be useful:</p><ul><li><a href="https://github.com/dmatrix/ray-core-tutorial">Introduction to Ray Programming Patterns.</a></li><li><a href="https://www.youtube.com/c/anyscale">Ray Summit Presentation Videos</a></li></ul><p>Hope you enjoyed!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3a1fb6e3601" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codable/ray-tutorial-b3a1fb6e3601">Ray Tutorial</a> was originally published in <a href="https://medium.com/codable">Codable</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing for Recommendation Systems.]]></title>
            <link>https://medium.com/@secilsen/designing-for-recommendation-systems-9dff8e938ea7?source=rss-c9dd3041b9b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9dff8e938ea7</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Seçil Şen]]></dc:creator>
            <pubDate>Tue, 29 Nov 2016 21:05:25 GMT</pubDate>
            <atom:updated>2016-11-29T21:05:25.507Z</atom:updated>
            <content:encoded><![CDATA[<p>We are all familiar with recommendation engines. A user might interact with one of them at any time: while browsing a content-based website, checking their social media account or buying an item from an e-commerce site. These are all common applications. We might think of a more sophisticated example: suppose you have a phone app which recommends you a dish it’s sure you will like in a restaurant which you are about to pass by. You feel hungry and recommendation looks great, you tried the meal, you really like it except the side dish. You provide this feedback in the app and start expecting more consistent recommendations based on your inputs. As can be seen from the given example, since these kinds of sophisticated apps are on the rise, users start expecting more sophisticated feedback mechanism to see more consistent recommendations. However, it might be restricted by the user interface of the app: you might not find a way to rate the side dish. At this point, the design comes into play. Machine learning algorithms need to be fed proper data in order to perform well. The proper data is collected mostly from user behavior, and user behavior is captured through user interactions. Thus, an interface must be designed in a way that user might be helpful to the machine learning algorithms and to the user consuming the recommendations.</p><p>A good user interface shouldn’t let ambiguities on the collected data. The ambiguity can be exemplified as follows: suppose your friend announced that his mother passed away on social media. You like this post not because you felt happy about her death but because you wanted to sympathize with your friend. Your friend might understand this for sure, but the recommendation engine might not be as clever as human cognition. Designers should make the interactions more precise to a recommendation system by providing more explicit choices to the user. However, designing like, dislike, sorry, happy buttons to make the action clear might not be the solution. The restaurant example given above is the proof of the existence of the issue. One solution is to allow users optionally provide more information with each lightweight application to be more specific about what they mean. It can be achieved by designing a little dialog box and ask for a user to detail his/her preference. This helps the software learn quickly as it combines explicit signals (liking/disliking) with more explanatory signals (why you like/dislike). This solution alleviates the problem of ambiguity in the data especially when patterns are aggregated across all users.</p><p>In regular systems, the goal of a user interface is to hide complexities of the software algorithms and keep the product easy to use. However, in new generation systems which are based solely on their recommendation system, revealing some of the behind-the-scenes processes can improve the user experience by showing how the recommendations are made. This sort of transparency can help bridge the gap between user’s inputs and interactions and the results they get. <br>So, how can we achieve that without overwhelming the users with data? One way is to map some of the machine learning algorithm’s recommendation logic to simple sentences, which are called “explains”. Think about Instagram and its explore tab. When you view a photo, there is an explanation about why you see that picture (Figure 1). This kind of brief explanations is the effective and lightweight way of giving the user enough information to increase their understanding of their impact on the product without overwhelming them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*6VnsFkYHdYOl0n5Bl1l5NQ.jpeg" /><figcaption>The “explain” is marked with the red box.</figcaption></figure><p>Of course, there might be other more sophisticated design choices which incorporate with your recommendation engine. The choices explained above are the most basic ones. Before taking design decisions, a designer should first understand how the machine learning algorithm works in order to plan actions to leverage the strengths of the algorithm. The synergy of technical understanding and user-focused thinking is vitally important when designing for machine learning products.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9dff8e938ea7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SlideShare]]></title>
            <link>https://medium.com/@secilsen/slideshare-53f59d84baf?source=rss-c9dd3041b9b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/53f59d84baf</guid>
            <dc:creator><![CDATA[Seçil Şen]]></dc:creator>
            <pubDate>Wed, 23 Nov 2016 09:53:21 GMT</pubDate>
            <atom:updated>2016-11-23T09:53:21.928Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2FwQRhwlyyMEBuzD&amp;url=http%3A%2F%2Fwww.slideshare.net%2FAmitRanjan%2Fquick-tour&amp;image=http%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fquicktour-1209540124077378-8-thumbnail-4.jpg%3Fcb%3D1392771049&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/28ae15f42d1568ddee042f913cfafb28/href">https://medium.com/media/28ae15f42d1568ddee042f913cfafb28/href</a></iframe><p>I bet none of you have heard of SlideShare or even those of you who have heard it often overlook it. You’re right, it doesn’t seem to offer much value at first sight. However, it gets 60 million visitors per month and seems to be a big opportunity for giving you the boost in traffic you need. The opportunity comes from the nature of the content it hosts — presentations — and thanks to the fact it’s owned by LinkedIn, the traffic it sends is also highest quality. Since few of companies/business owners/bloggers are taking advantage of this, there’s a very little competition, thus the door is wide open.</p><p>As mentioned, SlideShare is a LinkedIn service for uploading and sharing presentations in PowerPoint, PDF, Keynote, OpenDocument and in various video formats either privately or publicly. Although the site was originally intended for businesses to share slides amongst their employees, it has expanded and now hosts a huge number of slides which have been uploaded for anybody to view — it finally became a social platform for anybody. Published presentations can also be rated, commented on and shared across social media. For this reason, SlideShare can be used for many purposes like gaining traffic, ranking better on Google, getting e-mail subscribers or building your brand. On the other hand, you can also share tutorials or present your knowledge on a specific domain to increase your chance of being hired by a company of your interest. For instance, some engineers share instructive tutorials about their profession, or the scientific paper they published. Viewers rate and comment on these contents, and the high-rated slide owners usually draw the attention of the companies.</p><p>Thus, being noticeable is the main concern of the SlideShare community. SlideShare has also its guidelines to help you increase your chances of being noticed. These guidelines are listed below:</p><p>1- Design an appealing presentation: Because SlideShare’s audience expects high-quality presentations and rewards them with clicks and views, the demand for attractiveness is inevitable. Your presentation should be full of visual explanations instead of phrases because long phrases bore people.</p><p>2- Use Keywords and Phrases effectively to rank higher: Make sure users can easily find you when they search for what they’re looking for. That can be accomplished by using proper keywords/tags while publishing a slide.</p><p>3- Post your presentation to LinkedIn as a status: LinkedIn became a go-to spot for business professionals to educate themselves on industry-related topics. If you want to grab attention and increase your views, post your slide as a status.</p><p>Of course, there are other cues to increase your view count in SlideShare. If you are a content sharer, you should improve yourself on how to make yourself famous with the content you share.</p><p>I’m not a content provider but as a viewer, I really like using SlideShare because slides make it easy for me to see how to complete steps, go at their own pace and jump back and forth as needed. The shared content on SlideShare is usually of quality; instead of trying to find the most proper youtube video of my interest and wasting time, I prefer searching on SlideShare because I usually find what I expect at the first try. And for the content sharers, I think you have an important connection with the biggest professional social media platform by participating on SlideShare. If you want to show your expertise in your industry and become a thought leader, the LinkedIn/SlideShare combination is an undeniable powerhouse.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53f59d84baf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How does Tinder’s matching mechanism work]]></title>
            <link>https://medium.com/@secilsen/how-does-tinders-matching-mechanism-work-36543ac98db2?source=rss-c9dd3041b9b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/36543ac98db2</guid>
            <dc:creator><![CDATA[Seçil Şen]]></dc:creator>
            <pubDate>Tue, 15 Nov 2016 15:05:30 GMT</pubDate>
            <atom:updated>2016-11-15T15:05:30.916Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*qd09wcYfE6L9qmYPDlFdiA.jpeg" /></figure><p>Tinder is a known, widely used dating app that so many people stuck on. Even though there exists a plenty of other dating apps in the market, Tinder is a preferable one probably because of its successful matching mechanism. The actual developers of the app keep their algorithm private in order to prevent copycat apps. However, tech experts analyzed the app and had some relevant speculations of the technology behind its recommendation engine.</p><p><strong>Note</strong>: Actually, I’ve never used this app before but I have an insight on how it works — thanks to my best friend who met her fiance via Tinder :)<br>So, my knowledge is restricted, any comments on the arguments written here would be appreciated :)</p><p>When you first download and start using the app, you select the gender of your interest. Then system starts to show you the cards of the people you might be interested in near your location. However, although the system has no idea about your taste or your criteria in terms of attractiveness at the beginning, you somehow end up liking (or in Tinder’s language, swiping right) the first showing people. This is probably because the most attractive people are shown you at the beginning to keep you online in the app and make you think that you always meet attractive people in Tinder. But how can system sort people by their attractiveness? According to tech experts’ implications, the system has some sort of ranking system. Tinder’s CEO also confirms that they have a ranking system even it sounds plaguesome. Briefly describing, every user is assigned an internal rating referred to as “Elo score”. This score is basically calculated based on the right swipes on you, but of course, there exist other criteria like your education, the content of your profile picture etc.</p><p>But what if you’re shown to the people that don’t find you attractive? of course, your “attractiveness” rate slowly drops off. It wouldn’t be fair and mirror real life because different people have different standards and thus, would rate differently. On the other hand, if you’re rated by the people who has ratings close to yours, your rate starts increasing and it wouldn’t be fair either. It seems like Tinder developers found a solution to this issue. It is anticipated that each user’s votes are weighted depending on their value to the network. It means that, unfortunately, if you’re found more attractive by this system, you’re more likely to be shown to more attractive profiles. Nevertheless, I think this is the most effective solution found so far in order to bring the balance to the system.</p><p>Another criterion of this recommendation engine might be “being online”. It might also affect your ranking functions or your weight. If you’re online, you’re an active user and you’re more likely to have a conversation with your matchings. This criterion stands for increasing the popularity of the app. The more you log in, the more you have matches because you’re shown more often and consequently, you obtain a high rank. Actually, this isn’t fair either, but it makes sense because most user’s being online makes the app more famous.</p><p>I think there are lots of ethical issues of this recommendation engine. Ranking people by their attractiveness is totally irritating. Moreover, considering the criterions of this recommendation engine, I can say that this app stands for the people who is searching for a temporal relationship(s). How about the people who search for a long and serious relationship? Stay away from that app and don’t trust the people you met via Tinder! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36543ac98db2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chatbots]]></title>
            <link>https://medium.com/@secilsen/chatbots-93138efc6e38?source=rss-c9dd3041b9b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/93138efc6e38</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Seçil Şen]]></dc:creator>
            <pubDate>Tue, 08 Nov 2016 12:18:04 GMT</pubDate>
            <atom:updated>2016-11-08T12:18:04.573Z</atom:updated>
            <content:encoded><![CDATA[<p>With the rise of Artificial Intelligence, tech companies are seeking novel ideas in order to prove their interactiveness. Which is why we see an explosion of “chatbots”.</p><p>Before chatbots, there were just bots which are a piece of software that is designed to automate a specific task. Chatbots are built on the same premise, however, they mimic human conversation and react to spoken or written prompts to deliver a service using machine learning techniques. In a few words, chatbots promise human-like conversation with an app; they can transform the way you interact with the internet from a series of self-initiated tasks to a quasi-conversation. Despite the hype, it’s worth noting that this isn’t new technology. In the 1960s, <a href="https://en.wikipedia.org/wiki/ELIZA">ELIZA</a>, a natural language processing program was developed. What has changed is the advancement in AI technology and its growing accessibility for developers to build functioning chatbots relatively quickly.</p><p>There are several chatbots of known companies like H&amp;M, Vine, Slack, Facebook and Microsoft’s Tay. Vine’s chatbot asks you what kind of vines you might want to see and it shows results according to your answers. Slackbot is as primitive as that of Vine, it can just let you ask simple questions like “what do you want to do” etc. H&amp;M’s bot is quite interesting (than Vine’s and Slack’s bots), first, the bot prompts you to teach it about your style through a series of questions like “pick which look you like out of three photographs” then it starts to recommend outfits. The company’s purpose is to enhance its customers’ shopping experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*gvqxFN3ayfNNMCBeXn9-og.png" /><figcaption>:)</figcaption></figure><p>Facebook’s chatbot have a high impact on tech companies because it’s more sophisticated than other social platforms’ bots — thanks to 700 million Facebook users who probably contribute to the training process of this AI program. When they first released their chatbot, it was just used by its own employees to test and train the system. In April 2016, Facebook announced that they would allow businesses to deliver automated customer support, e-commerce guidance through their chatbot. After a while, when Facebook chatbot’s AI system will be mature enough, it will also be able to respond with structured messages that include images, links and call to action buttons: these could let users make a restaurant reservation, review an e-commerce order and more. This means that you can order flowers by just sending it a friend’s name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PSTK3_qm9ddGCcOejm5fSQ.png" /><figcaption>CNN’s facebook chatbot</figcaption></figure><p>This new AI technology has also its own drawbacks: Microsoft’s Tay is a good example of how things may go wrong with a chatbot. In March 2016, Microsoft launched a twitter chatbot named “Tay”. Tay was supposed to have conversations with Twitter users and learn how to sound like “millennial”. Instead, it learned how to love Hitler and hate feminism and it started posting racist tweets. Then, Microsoft subsequently took it offline. Actually, Tay was a pretty successful chatbot in that she learned what she was told and coherently put out responses to queries just not in a politically correct way. This “successful” example shows us how a chatbot can go nasty; how would we know if a chatbot learned how to steal one’s credit card info?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8TtBXl7kegfwWHkgXT7kMw.png" /></figure><p>Chatbots are now in a hype, maybe they’ll make humans obsolete in near future. They unlock the ability to provide personalized, interactive communication akin to talking to a human customer service or sales representative, but at scale for much cheaper than call centers for companies. If chatbots survive, they could redefine how businesses sell products and services. For us, the users, chatbots are also beneficial: instead of wandering around an app, a chatbot could ask your criteria and surface you relevant things to buy. Or just like Microsoft’s Tay, these chatbots might try to steal individual valuable information and they might be abused. We’ll see how things will go for this new technology in near future.</p><p>Read more about Tay’s behavior in twitter: <a href="http://www.telegraph.co.uk/technology/2016/03/24/microsofts-teen-girl-ai-turns-into-a-hitler-loving-sex-robot-wit/">http://www.telegraph.co.uk/technology/2016/03/24/microsofts-teen-girl-ai-turns-into-a-hitler-loving-sex-robot-wit/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93138efc6e38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cognitive Computing and Semantic web technologies]]></title>
            <link>https://medium.com/@secilsen/cognitive-computing-and-semantic-web-technologies-70bb6870ce72?source=rss-c9dd3041b9b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/70bb6870ce72</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Seçil Şen]]></dc:creator>
            <pubDate>Tue, 01 Nov 2016 19:46:41 GMT</pubDate>
            <atom:updated>2016-11-01T19:46:41.190Z</atom:updated>
            <content:encoded><![CDATA[<p>After IBM unveiled <a href="http://www.ibm.com/watson/what-is-watson.html">IBM Watson</a>, cognitive computing gained the attention of computer scientists. Conceptually, cognitive computing focuses on enabling software models that simulate functions of the human brain such as voice, speech and vision analysis. Before this new era of computing, classical artificial intelligence approaches produced machines that solely think for people. However, cognitive computing is all about augmenting human intelligence, it helps us think better. Using self-learning algorithms that use data mining, pattern recognition, and natural language processing, the computer can mimic the way a human brain works.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F_Xcmh1LQB9I%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D_Xcmh1LQB9I&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F_Xcmh1LQB9I%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b9ee16e1b36cb718d93f56f5bc58c8b/href">https://medium.com/media/6b9ee16e1b36cb718d93f56f5bc58c8b/href</a></iframe><p>IBM’s Watson rely on deep learning algorithms and neural networks to process information by comparing it to a teaching set of data. According IBM’s evangelists, Watson will gain an importance in healthcare systems to help collate a span of knowledge around a condition, including patient history, diagnostic tools etc. It analyses the vast quantity information, and provide a recommendation.</p><p>Many people think of cognitive computing as structured data and decision automation on structured data like standard business applications. However, regarding the healthcare example above, most of this kind of applications of cognitive computing are completely from unstructured sources. At this point, semantic web comes into the play. Nature of cognitive computing which comes from semi-structured and unstructured data relate it to the semantic web. Semantic web’s standards and technologies like OWL, RDF should become a bigger part of the overall cognitive computing discussion. As automation is another essential part of cognitive computing, Cognitive computing researchers should find insight in as close to an automated fashion as possible, downstream into all applications and decision points without having to write a code. All these requirements point to the semantic web technologies. Eventually, semantic web and cognitive computing should collaborate. Linked open data will be valuable ontologies that can be used for cognitive computing today.</p><p>So, to sum up, it seems that we should have a shared understanding of the relationships between the concepts of “cognitive computing” and “semantic computing/semantic technologies”. While cognitive computing refers to the ability of automated systems to handle conscious, reasoning models of thought, semantic computing facilitates and automates the cognitive processes involved in defining, modeling, transforming and querying the deep meanings of words and concepts. The extracted entities, relationships, facts, sentiments and other artifacts can be (or should be) used for creating ontologies and these ontologies make them explicit and reusable for all kinds of cognitive applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70bb6870ce72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recommendation Engines — A brief introduction.]]></title>
            <link>https://medium.com/@secilsen/recommendation-engines-a-brief-introduction-1f9f029b0a38?source=rss-c9dd3041b9b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f9f029b0a38</guid>
            <category><![CDATA[recommendation-engine]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[collaborative-filtering]]></category>
            <dc:creator><![CDATA[Seçil Şen]]></dc:creator>
            <pubDate>Tue, 25 Oct 2016 15:53:11 GMT</pubDate>
            <atom:updated>2016-10-25T15:53:11.268Z</atom:updated>
            <content:encoded><![CDATA[<p>After deciding our project topic, I started searching for a good resource that guides us throughout the semester. The book called “<a href="http://shop.oreilly.com/product/9780596529321.do">Programming Collective Intelligence: Building Smart Web 2.0 Applications</a>” is recommended by almost all the recommendation engine programmers, they all used it as a guideline while building their applications. I rent the book from Amazon and started reading it. After skimming through the book for a while, I see that this book encloses not only programmatical but also theoretical concepts of recommendation engine systems. I read chapter 1 and chapter 2 as soon as I get the book and I took a quick look at other chapters without going through the details of implementation stages. Because chapter 1 contains information about the concepts of Machine learning, I skip this part. This summary will basically cover chapter 2, which briefly describes the basic concepts of recommendation engines.</p><p><strong>User based filtering and item-based collaborative filtering</strong></p><p>As far as I see (if I didn’t miss something), collaborative filter systems of recommendation engines are of two types: user based and item based. In user-based filters, the system recommends you everything based on your data. It generally compares a user with every other user and finds similarities or dissimilarities depending on your engine’s recommendation system. Facebook’s “similar to you” feature does exactly the same thing: it uses your profile data and finds users that might be similar to you by comparing you to the users near you, friends of your friends etc. Facebook’s recommendation engine is indeed more complex, but it can be given as an instance. The alternative of these filters is known as item-based collaborative filtering. The general technique is to precompute the most similar items for each item. In online shopping sites, if you wish to make a recommendation to a user, you look at his top-rated items and create a weighted list of the items most similar to those. Item-based collaborative filters can give better results in cases with large datasets even if it doesn’t seem so, it is because comparisons between items will not change as often as comparisons between users. This means that you do not have to continuously calculate each item’s most similar items, you can do it on a computer separated from your main application. <br>Item-based filtering seems significantly faster than user-based filtering when getting a list of recommendations from a large dataset. However, the overhead here is maintaining the item similarity table. For instance, in Criticker, since every movie has multiple critics, the dataset is dense. On the other hand, in del.icio.us, it would be unlikely to find two people with the same set of bookmarks, leading to a sparse dataset. Item-based filtering usually outperforms user-based filtering in sparse datasets, and the two perform equally in dense datasets.</p><p><strong>Similarity measures of recommendations</strong></p><p>To measure the similarity between two users or items, we need some math. There are few ways to do this, in this book two methods are shown. One simple way to calculate a similarity score is to use a Euclidian distance score, which takes the items that people have ranked in common and uses them as axes for a chart that is called preference space. You pick two items from the chart, calculate their euclidian distance and if it is smaller than some threshold, then these items or users are similar. The other method, Pearson Correlation Score is more sophisticated. It uses Pearson Correlation coefficient. This coefficient is a measure of how well two sets of data fit on a straight line. This calculation tends to give better results than those of Euclidian distance in situations where the data isn’t well normalized, for example, in cases where a critic of a movie is harsher than others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VFyqXNCmnuEK8UH-pgQZqw.png" /><figcaption>Figure 1: comparing two movie critics on a scatter plot</figcaption></figure><p>The straight line of the Pearson correlation chart is called best-fit line because it passes through the points as close to all the items on the chart as possible. In the case illustrated above, if the two critics had identical ratings for every movie, this line would touch every item in the chart, giving a perfect correlation score which is 1. Other types of similarity calculators are Cosine similarity and Term frequency which I don’t cover in this blog post.</p><p>Because this book is published in 2007, the methods mentioned here can be outdated so it requires more research before starting to implement the recommendation engine. I hope this summary helps you to make a spot-on search while dealing with your projects and gives you a brief background of how recommendation engines basically work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f9f029b0a38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Semantic Desktop]]></title>
            <link>https://medium.com/@secilsen/semantic-desktop-4053dc263b0?source=rss-c9dd3041b9b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4053dc263b0</guid>
            <category><![CDATA[evernote]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[semantic-desktop]]></category>
            <dc:creator><![CDATA[Seçil Şen]]></dc:creator>
            <pubDate>Wed, 19 Oct 2016 12:34:55 GMT</pubDate>
            <atom:updated>2016-10-19T12:34:55.632Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve heard about semantic desktop when I started using Evernote for taking notes, collating information for my projects and organizing them by tagging. My purpose on using Evernote seems so “semantic”, right? Yes, Evernote is based on semantic data collecting; it serves as a note-taking tool, daily journal, task or project management system, recipe keeper and it basically manages all these multi-domain data using semantic tagging. Evernote has pros and cons if one wants to use it as his/her own semantic desktop tool but I am not planning to discuss Evernote’s semanticity in this blog post, I want to dive into the semantic desktop paradigm.</p><p>To be honest, even if I intermittently use Evernote, I had no idea what semantic desktop is. After a quick research, I gained an insight into its point of view and I started thinking what if we all have semantic desktops rather than classical desktops which is based on file systems. Before arguing that, I try to briefly explain what semantic desktop is. According to authorities in the semantic desktop world, semantic desktop aims to enable better organization of the personal information on our computers by applying semantic technologies on the desktop. Just like Linked Data connects distributed data on the web and creates a network of interlinked information, the Semantic Desktop connects personal data across application boundaries on the desktop; it actually creates a network of personal information.</p><p>Considering the definition above, one can infer that semantic desktops’ main purpose is to eliminate filesystems. Yes, it seems so, because one of the main chances that the semantic desktop should bring to us is the invisibility of the file systems. When the size of magnetic disks was measured in KBytes and Mbytes, the traditional filesystems and partitions were useful. However, we now have home devices with GBytes or even with Tbytes and we use them to store huge amounts of data. It is often difficult to find the information stored in a hierarchical structure. If one of you have ever used MacOS’s finder, you certainly have difficulty in finding something using its search system. To make life easier, is there a way to store and find the documents without a hierarchical system? We all know that Google has already proved that point. In Google’s system, we don’t browse hierarchical directories; we just follow links and discover them. Other information repositories such as Flick and Youtube also don’t use the hierarchical system to store their data. I reckon that operating systems without filesystems seem you utopic, but let’s say someone changed the whole working mechanism of operating systems and we all start using computers without file systems. The first question that comes to mind is that what an OS without filesystem looks like. In the first place, directory browsers probably lose their central position in the user interface and their place will be taken by tools such as Google Desktop and Spotlight which I both never use. Nowadays, there are some other desktop tools like iTunes that do a decent job to abstract the user from the filesystem. Such applications use meta-data to provide faceted browsing and searching.</p><p>The strict hierarchical structure of today’s OS is also a burden to store our bookmarks. Everyone knows browsers’ bookmark feature but few of them use it because it seems quicker to look up in the Google rather than browse through bookmarks. There is a collaborative bookmarking tool called Del.icio.us which is highly recommended by advanced users, and it looks like a powerful bookmarking tool which leads the market.</p><p>We can find so many alternatives of this kind of applications, There are also QuickSilver which allows us to launch any application, play music, open documents, see agenda and so on without considering their place on the filesystem. When using QuickSilver, you don’t need a launching icon on your desktop, you just search from Quicksilver’s user interface and fire any application.</p><p>Of course, these post is not enough to convince you that we can live without filesystems because there is so much detail to think about, and I think that we are getting closer to the semantic desktop, but we aren’t there yet. Users expect to see more progress on integrating all these applications. From my point of view, blending the barrier between local and remote data (synchronizing agenda, contact data and local data) is the biggest challenge for semantic desktop application developers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4053dc263b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting into the Google Knowledge Graph]]></title>
            <link>https://medium.com/@secilsen/getting-into-the-google-knowledge-graph-3123cd4ba40d?source=rss-c9dd3041b9b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3123cd4ba40d</guid>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Seçil Şen]]></dc:creator>
            <pubDate>Tue, 11 Oct 2016 15:34:03 GMT</pubDate>
            <atom:updated>2016-10-11T15:34:03.686Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3-qXHyRPULQq7dCKLvvhCA.jpeg" /></figure><p>Searching is changing. After googling something, we no longer see results from documents (web pages); we search over data that comes from the Knowledge Graph. Or without the rhyming, searching is performed over entities instead of text. <br>For the ones who have never heard about Google’s knowledge graph: a knowledge base that collates millions of pieces of data from a variety of sources across the web to enhance its search results. It is defined as the largest warehouse of knowledge in human history. In this project, Google’s goal is to systematize the way of putting facts, people and places together to create search results that are interconnected, more accurate and useful. This formal definition gives us an insight about the knowledge graph but there may be questions that pop in minds. For me, the questions are:</p><p>1- How does google collate data that is meaningful to its search engine(implement it to its knowledge graph)</p><p>2- How can we get into the Knowledge graph?</p><p><strong>How does google collate data that is meaningful to its search engine(implement it to its knowledge graph)?</strong></p><p>Of course, Google can’t do this alone. the company needs us to help make search results valuable and helpful for its users.</p><p>Let’s say you are a blogger that posts about features of programming languages and your current blog post is about “bugs on new Java version”. The success of your blog depends on how well you can guide the search engine to interpret that word correctly. Are you referring to the errors on a computer program or “insects”? The word “bug” could mean both of above. if you have a meta description, title, and keywords in your post, google can then sync your content with the appropriate user intention. After all, google promotes your post to the users that probably perform searching using keywords “java” and “bugs”. From the example above, we can easily get that google uses semantic web to build its own knowledge graph. As more user contributes to the graph, it grows and gives us more accurate results.</p><p><strong>How can we get into the Knowledge graph?</strong></p><p>So far we know how we can be findable in the search results: we must specify the entities of our content. In order to make our content interpretable for Google Knowledge Graph, the first thing to do is to place structured data markup from Schema.org on your web page (or content). Schema.org hosts a collection of structured data markup schemas that helps search engines understand the information contained within HTML documents. This structured data allows search engines to identify entities and define relationship between them which in turn leads to better, richer and more useful search results. In other words, if you are willing to increase the chance of getting into the Knowledge graph, you should mark up your page with the appropriate structured data markup.</p><p>Google also leverages information from authoritative resources such as Wikipedia, Google Maps, <a href="https://www.wikidata.org/wiki/Wikidata:Main_Page">WikiData</a> and so on. It can be worthwhile to create a page on Wikipedia but you can’t slap a couple of sentences together and post them on Wikipedia; you need some citations which show that your content deserves to be in Wikipedia. So if you have a company with awards or references, it may be more appropriate to create a Wikipedia page to make yourself more visible on Google Knowledge Graph.</p><p>Of course, Wikipedia isn’t the only place where the knowledge graph gathers information about the entities. WikiData also exists but you need to be able to back up your claims like Wikipedia. The best way to introduce yourself to Google is to create accounts on social networks and creating an Info Card. <a href="http://marketingland.com/finally-brands-can-edit-their-knowledge-graph-cards-in-google-163698">This link</a> shows how you can create/edit your Info Card (Knowledge graph card).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lV05_qBpfugdfKAFSlbgjA.png" /><figcaption>Example of info card on google.</figcaption></figure><p>Apart from all, Google Knowledge graph seems to be supplanted by <br>the more sophisticated Knowledge Vault which I have no idea for now but I’m planning to elaborate on and create a new blog post about it :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3123cd4ba40d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pinterest and Semantic Web]]></title>
            <link>https://medium.com/@secilsen/pinterest-and-semantic-web-34e10b83a317?source=rss-c9dd3041b9b8------2</link>
            <guid isPermaLink="false">https://medium.com/p/34e10b83a317</guid>
            <category><![CDATA[semanticweb]]></category>
            <category><![CDATA[blogging]]></category>
            <category><![CDATA[pinterest]]></category>
            <category><![CDATA[social-media]]></category>
            <dc:creator><![CDATA[Seçil Şen]]></dc:creator>
            <pubDate>Tue, 04 Oct 2016 20:25:05 GMT</pubDate>
            <atom:updated>2016-10-04T20:27:08.637Z</atom:updated>
            <content:encoded><![CDATA[<p>I met Pinterest when I was searching for healthy recipes that support my diet. After diving into several boards and pins, I found it the neatest way of catalog things that interest you. Pinterest’s use of tags and boards makes it easy to use the site for collecting and curating sets of pins for many different areas of interest. A user can pin a web page or any post on the web under related tags to a board. A board is like a scrapbook; you can collect similar pins in one board. Using boards and pins, Pinterest converts unstructured data to structured data and it builds a recommendation system to its users.</p><p>The impact of Pinterest on the people is its continuous adoption of structured data. This means that if we have a recipe on Pinterest, it not only consists of lots of words and pictures that describe the recipe but also have structured data markup that defines each section (for recipes, these sections can be an ingredients list, a photo, directions etc.) as part of a whole. This unstructured user content that is converted to a structured data eases the way the search engine of Pinterest works. Let’s say you want to search a recipe that is a healthy alternative to french fries. The search engine knows that french fries are actually made from potatoes from its ingredient list and it also knows that at some point, the target recipe is commented as the healthy alternative to french fries and it contains potatoes in its ingredient list. On the other hand, the engine checks comments and reviews and see that people gave this recipe a good review. Search engine eventually recommends the target recipe. By using this way, it can piece together parts of your web page more efficiently and analyze them in a way that will deliver the best answer to the question being asked in the search box.</p><p>The point that meets Pinterest and the semantic web is its Interest graph. This system basically uses associative rule mining, collaborative filtering, and natural language processing. Every user in Pinterest is building their interest graph by pinning the posts of interest. If user pins a large number of healthy recipes that include broccolis, avocados, and cauliflower in their recipe list, Pinterest will deduce an interest in the healthy recipes and recipes with healthy greens and it tailors recommendations and search results that better reflect that interest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IfzMwTik_tZTbPLh2QJHTw.png" /></figure><p>I personally find Pinterest the most successful sharing platform (I think it is not exactly a social media platform because, in Pinterest, people do not care about your personality or your appearance, they care about your pins and boards) that benefits from the semantic web features. It also helps google to build the semantic web faster; if you search your interest on google, it mostly recommends you the Pinterest pins related to your search text.</p><p>For more technical information about Pinterest, see: <a href="https://engineering.pinterest.com/blog/creating-serving-storing-data-discovery">https://engineering.pinterest.com/blog/creating-serving-storing-data-discovery</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34e10b83a317" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>