<?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 Kanva AI Talk 🧠 on Medium]]></title>
        <description><![CDATA[Stories by Kanva AI Talk 🧠 on Medium]]></description>
        <link>https://medium.com/@kanvaly?source=rss-542ae31642d6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NAXA9hKFYuQJbpUR3oNtQg.jpeg</url>
            <title>Stories by Kanva AI Talk 🧠 on Medium</title>
            <link>https://medium.com/@kanvaly?source=rss-542ae31642d6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:00:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kanvaly/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[Normalized Compression Distance]]></title>
            <link>https://medium.com/@kanvaly/normalized-compression-distance-d8698bc650b4?source=rss-542ae31642d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8698bc650b4</guid>
            <category><![CDATA[biology]]></category>
            <category><![CDATA[compression]]></category>
            <category><![CDATA[computational-biology]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Kanva AI Talk ]]></dc:creator>
            <pubDate>Tue, 20 Jul 2021 20:35:51 GMT</pubDate>
            <atom:updated>2021-07-20T20:35:51.000Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*81QHTvHup5epmdbtYJ_Xtg.png" /></figure><p>Today we are going to talk about compression and biology. I will present you with a new framework to see machine learning which is that learning is compression. We will explore together how we can solve a real-world problem by only zipping content. Yes! you heard me, we will zip data like what we do when we send an email. This will allow us to classify proteins.</p><h3>🧠 Learning is compression</h3><blockquote><strong>Comprehension is compression</strong>. (Gregory Chaitin, 2004)</blockquote><p>I don’t know if you ever heard these statements. Let’s explain what they mean by considering clustering. In this task, we consider a dataset X of N points xj. Each xj is supposed to belong to a class labeled as yj (<em>e.g.</em> blue/red/dark). The problem is to learn which label yj was taken from the set of labels Y corresponds to xj.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LOTC5a508YUgi6NJhrnlvw.png" /></figure><p>Our clustering model would deduce the label of all points from those of its K cluster center {pk}, in the hope that f(xi)=yi</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNHq3mfZgOwww-tNA7fm9w.png" /></figure><p>The decision function f just returns the label of the closest center. For instance, if the point is closer to center 3 (labeled “blue”) than to any other center, the decision function will return “blue”.</p><p>Now we just have to remember the centers and their label to retrieve all labels, <strong>hence the compression</strong> 😎.</p><h3>🤯 Use zip to measure distance</h3><p>I want to introduce you to a new distance metric call <strong>Normalized Compression Distance (NCD)</strong>. NCD is a way of measuring the similarity between two objects, be it two documents, two letters, two emails, two music scores, two languages, two programs, two pictures, two systems, two genomes, to name a few. It measures how hard it is to compress seq1 alone than compressing it concatenated with seq2. We will measure how close two protein sequences are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LBWZQM0x-fu_dLZXxAYqlA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-YsYlJhAkTWNZk-ri2heg.png" /></figure><h3>🧬 Application to protein classification</h3><p>Proteins can be made from 20 different kinds of amino acids, and the structure and function of each protein are determined by the kinds of amino acids used to make it and how they are arranged. Understanding this relationship between amino acid sequence and protein function is a long-standing problem in molecular biology with far-reaching scientific implications. On application of ML in biology is to classify the protein’s amino acid sequence to one of the protein family accession. In other words, the task is: given the amino acid sequence of the protein domain, predict which class it belongs to.</p><p>This is how an aligned protein sequence looks like: ....HWLQMRDSMNTYNNMVNRCFATCI...........RS.F....QEKKVNAEE</p><p>We use this compression distance to look at how proteins within a family same are far from each other (intra family variation):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*QHckx1p3WTIDRetMh4e19g.png" /></figure><p>And how far they are from sequences coming from another family (extra family variation) :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*b-xHMPpVcIBlHjpYpWxTOg.png" /></figure><p>As we see sequences from the same family are very class while those from other families are far. We obtain this cool result using only zip. Now we can train a kNN with this distance and classify proteins sequences.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8698bc650b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>