<?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 Laisha Wadhwa on Medium]]></title>
        <description><![CDATA[Stories by Laisha Wadhwa on Medium]]></description>
        <link>https://medium.com/@laisha.w16_85978?source=rss-478cb4450370------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Y3SvIo2AJu84GbBQz7dfRw.jpeg</url>
            <title>Stories by Laisha Wadhwa on Medium</title>
            <link>https://medium.com/@laisha.w16_85978?source=rss-478cb4450370------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:22:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@laisha.w16_85978/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[Navigating the zk landscape — learnings from Devconnect Istanbul 2023 ]]></title>
            <link>https://medium.com/@laisha.w16_85978/navigating-the-zk-landscape-learnings-from-devconnect-istanbul-2023-e312f20f7056?source=rss-478cb4450370------2</link>
            <guid isPermaLink="false">https://medium.com/p/e312f20f7056</guid>
            <category><![CDATA[devconnect]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Laisha Wadhwa]]></dc:creator>
            <pubDate>Thu, 07 Dec 2023 14:31:29 GMT</pubDate>
            <atom:updated>2023-12-07T14:31:29.366Z</atom:updated>
            <content:encoded><![CDATA[<h3>Navigating the zk landscape — learnings from Devconnect Istanbul 2023 🚀</h3><p>Embarking on a journey through the cutting-edge realm of zero-knowledge proofs and Layer 2 scaling solutions is akin to exploring uncharted territories in the ever-evolving landscape of blockchain. As a privileged scholar attending the Devconnect Istanbul week, I found myself immersed in a whirlwind of insights, dialogues, and innovations that promise to reshape the landscape of decentralized technologies.</p><p>From engaging conversations with thought leaders to deep dives into various zero-knowledge protocols, the week was an illuminating exploration of what’s on the horizon for the zk and L2 ecosystem. This blog is an attempt to guiding you through the labyrinth of advancements, providing a comprehensive overview, and distilling the essence of what I gathered during this transformative experience.</p><p>The first interaction with zk started right from the entry to the devconnect events where <a href="https://zupass.org/">Zupas</a>s (an open-source tool built by developers from the Devconnect and Zuzalu communities) was used to verify event attendance and it was all backed by zk-proofs.</p><p>Now let’s get to the real deal: With numerous zk based solutions available which ecosystem to choose and why can be challenging. As a dev my goal was to attend as many zk events as I could to understand what people are building in this space and what infrastructural or developer focused problems each one of the chains/protocols are solving for.</p><p>When we think of Ethereum and scalabililty — L2 comes to our mind and when we think of faster transactions and privacy coupled with scalability : rollups and ZK come into light. I started with attending the Starknet hackerhouse and listening to the different solutions that were built — from on chain ML proofs to cross chain secure bridges. Whenever we talk about ZK and cryptography — it’s either rust based ecosystem or the snark and circom based ecosystem and honestly, the learning curve can be really steep when learning to write programmable circuits for your business logics.</p><p>ZKPs offer many other features that make them essential components of various scaling and privacy solutions, including ZK aggregations like StarkNet, private ZK aggregations like Aztec, and Layer 1 chains like Mina, Filecoin, Manta and Aleo.</p><p>Let’s explore the few popular ones:</p><h4><strong>StarkNet: Turing Complete zk-Rollups</strong></h4><p>StarkNet, stands out by offering Turing-complete smart contracts within a scalable zk-Rollup framework. Distinguishing itself from zkSync and Polygon zkEVM, StarkNet provides unparalleled flexibility, supporting intricate smart contracts with diverse functionalities. This makes it a versatile choice for a wide array of decentralized applications extending beyond token transfers.</p><h4><strong>zkSync: Swift and Affordable Token Transfers</strong></h4><p>Revolutionizing token transfers, zkSync, a leading zk-Rollup solution, streamlines the process by combining speed, affordability, and robust security. Tailored for applications like decentralized exchanges (DEXs) and payment scenarios, zkSync leverages zkRollup technology to execute token transfers off-chain, producing proofs swiftly submitted to the Ethereum mainnet.</p><h4><strong>Polygon zkEVM: Scalable Ethereum Compatibility</strong></h4><p>Polygon zkEVM introduces a unique synergy of zk-Rollups with Ethereum Virtual Machine (EVM) compatibility. Designed for speedier transaction confirmations and reduced fees compared to the Ethereum mainnet, it provides a scalable platform for running Ethereum-compatible smart contracts. Developers can effortlessly deploy existing Solidity-based contracts on Polygon zkEVM with minimal adjustments.</p><h4><strong>zkEVM vs zkVM</strong></h4><p>Well, honestly today the buzz is all about prefixing “zk” to various terms, where these two letters carry the power of zero-knowledge proofs. It’s a method to ensure not only which computation was executed but also that the computed result is accurate. What happens when you put zk before the good ‘ol EVM?</p><h4>zkEVM</h4><p>zkEVM is software running smart contracts on the EVM bytecode engine, generating receipts for computations. It proves the validity of multiple receipts, consolidating them into a single receipt, known as a “rollup.” This off-chain scaling mechanism allows projects in Solidity to represent numerous transactions with a single blockchain-posted receipt.</p><h4>zkVM</h4><p>VM is more genric than EVM. On the zkVM, you can run just about any software that runs on a computer rather than anything that can run on Ethereum.</p><p>Why am i telling you this? for e.g.: if your Dapp logic is becoming computationally expensive or your on-chain game logic needs the extra compute power, you should be looking at using a zkVM or zkEVM to move the complex application logic off-chain.</p><p>Now there were a lot of different solutions available:</p><p><a href="https://dev.risczero.com/api">RISC Zero</a> was one them: They envision a world where ZK Proofs are accessible to everyone, and developers can prove and verify any computation through RISC Zero’s general purpose ZK Virtual Machine. RISC Zero’s zkVM and the Bonsai network allow you to write scalable chain-agnostic code using general purpose programming languages!</p><p>Writing circuits is not the easiest when you’re translating your business logic into arithmetic operations. While working on my own ZKml based solution I was looking for a protocol that abstracts the complexities of cryptography to build private ZK based applications. I met the Aleo team at zk accelarate and their hackerhouse as well. In my view Aleo provides an all-in-one ZK platform that lets you build private and highly scalable apps. The best thing being the gas-free execution model, providing unlimited application runtime. Aleo comes with their own rust based DSL called <a href="https://leo-lang.org/">Leo</a>, <a href="https://github.com/AleoHQ/snarkOS">snarkOS</a> (a fully decentralized and public ecosystem for transaction verification and state storage) and <a href="https://github.com/AleoHQ/snarkVM">snarkVM</a> (takes computation off-chain and only requires provers to publish proof of computation on-chain, offering great scalability. Honestly I was able to build a custom token withing 20 mins of reading the documentation. What sets Aleo apart as an ecosystem is the focus on self-sovereign identity (SSI), privacy and making zero-knowledge (ZK) cryptography implementations simpler.</p><p>Another intersting application that was highlighted during the zk events was Decentralized Reputation and ZK. There were disucssions around Verifiable compute, on chain reputation (the <a href="https://twitter.com/PetyaDmitriev/status/1729580346012819640">Icebreaker activity</a> at the zkHouse using zkCat dynamic NFTs was a perfect example ofthis)</p><p>While we have made strides in making implementation of zk based proofs easier generating proofs in ZKP solutions is resource-intensive due to complex mathematical operations, slowing down the process. Challenges arise from operations like exponentiations and bilinear pairings, necessitating optimization for full potential. Developing hardware acceleration methods is crucial to overcome these challenges in ZKP constructions.</p><p>Turbocharging ZK performance and integration of hardware acceleration in ZK protocols was a standout theme of Devconnect was the . This approach enhances the performance and efficiency of ZK systems, marking a significant stride towards practical scalability. As hardware advancements continue to evolve, the synergy between hardware acceleration and ZK technology promises a future where privacy and efficiency coexist seamlessly. Protocols like Nil, Zama and Taiko are leading the efforts on building zkLLVM, rollups and custom proofs.</p><h4>The Missing Puzzle Piece</h4><p>Monetizing data with ZK-Privacy amidst the myriad discussions, a compelling idea emerged — one that transcends the conventional notions of privacy. The prospect of users opting into sharing their data with advertisers, platforms, and social networks through ZK-privacy introduces a groundbreaking avenue. Imagine a world where users regain control as rightful owners of their data, empowered to monetize it in exchange for revenue-sharing and an enhanced social feed.</p><h4>A Paradigm Shift: Beyond Privacy for Its Own Sake</h4><p>It’s time to challenge the status quo and recognize that internet privacy holds a more profound opportunity than merely shielding information. By leveraging ZK-privacy to let users monetize their data, we redefine the narrative. This exclusive opportunity not only aligns with the ethos of blockchain but also addresses the crucial aspect of user comfort — both emotionally and financially — while interacting on-chain.</p><p>As we conclude our exploration of the zk and L2 ecosystem, it’s evident that this space is a dynamic amalgamation of innovation and collaboration. The conversations at Devconnect Istanbul have not only enlightened us about the current status quo but have also ignited a spark for what lies ahead. Whether you’re a seasoned developer or a curious enthusiast, the world of zero-knowledge proofs and Layer 2 solutions beckons with promise. So, let’s venture forth, armed with knowledge and curiosity, as we witness the unfolding chapters of zk and L2 shaping the future of decentralized technologies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e312f20f7056" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bonk is going Bonkers]]></title>
            <link>https://medium.com/@laisha.w16_85978/bonk-is-going-bonkers-3e2e1148d84?source=rss-478cb4450370------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e2e1148d84</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[solana-network]]></category>
            <category><![CDATA[memecoins]]></category>
            <category><![CDATA[dogecoin]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Laisha Wadhwa]]></dc:creator>
            <pubDate>Tue, 10 Jan 2023 06:58:01 GMT</pubDate>
            <atom:updated>2023-01-10T06:58:01.122Z</atom:updated>
            <content:encoded><![CDATA[<h4>Traders are piling into meme coin — BONK, prices boosted by triple-digits. Is a trend reversal in Solana price underway? 🤔</h4><p>GM readers,</p><p>Today’s all about the story of the viral solana-meme coin that has appreciated by <strong>more than 2,000%</strong> since its launch</p><p>Here’s what’s in store for you🍛:</p><ul><li>Is Meme Coin Season Back?🤯</li><li>Story behind BONK token’s meteoric price rise.📈</li><li>Is BONK another desperate attempt to bring back Solana’s lost luster?👀</li></ul><h3>Is Meme Coin Season Back?😳</h3><p>One of the more notorious things in the cryptocurrency world are dog coins or meme coins.</p><p>We all remember DOGE🤓</p><p>It started as a joke in 2013, but is now the <strong>12th most valuable cryptocurrency</strong> by market value, according to CoinMarketCap. The meme coin rose up some 6,000% in 2021 and had big fans in Elon Musk and Mark Cuban.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LlajwBddZkYQOTA4.png" /></figure><blockquote><em>ICYMI: </em><strong><em>Meme coins, which are popular cryptocurrencies often inspired by internet jokes.</em></strong><em>🤭</em></blockquote><p>With BONK entering the crypto winterland, <strong>is the meme season really back</strong>?🧐</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/0*TV77CJyS9bMIlpnr.jpeg" /><figcaption>Is DOGE back?</figcaption></figure><p>📌BONK has entered the race at a time when the cryptocurrency industry is experiencing low prices.</p><p>📌This coin is now firmly cemented as the most prosperous meme coin to emerge from the ecosystem, and unlike its forebears, it resides on the Solana blockchain.</p><p>The BONK token has appreciated by <strong>more than 2,000%</strong> since its launch on the penultimate day of 2022.🤑</p><p>With the skyrocketing of BONK’s growth, anyone could believe that meme coin season is back, but that’s not the case.😬</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*A-aiqQie8wU24qmX.jpeg" /></figure><h4>The price of BONK is down -3.91% since last hour, up 8.21% since yesterday.😦</h4><p>The largest meme coin in the market, Dogecoin is 🔻<strong>down</strong> <strong>0.37%</strong> in the last 24 hours. While Shiba Inu which is ⬆️ <strong>up only 0.11%</strong> in the same time period.</p><p>🔥Similar gains across other coins would have occurred if BONK had sparked a resurgence of the meme coin bull market, but for the time being, the prices of these assets are still relatively stable.🔥</p><p><strong>Is this just another desperate attempt to bring back Solana’s lost luster?</strong>👀</p><p>Read on to find out all the sauce 🤓</p><h3>All you need to know about BONK token’s meteoric price rise.📈</h3><p>👉BONK was introduced on December 25 and has just been around for 15 days.</p><blockquote><em>The first Solana Dog Coin for the people, by the people, as the meme coin defines itself as, has a market capitalization of</em><a href="https://coinmarketcap.com/currencies/bonk1/"><em> </em><strong><em>$105.1 million</em></strong></a><em>, making it the biggest meme coin in the Solana ecosystem.</em></blockquote><p>The token has been making waves ever since it got listed on Dec 30 primarily due to excessive shilling on social media. This came from influencers with large followings and once the FOMO kicked in, the coin price skyrocketed.🔥</p><p>Even now, it is still seeing a lot of interest with trading volume crossing <a href="https://coinmarketcap.com/currencies/bonk1/">$34.7 million in the last 24 hours</a>😱</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*n5je5G5aC7yNmLuv.jpeg" /></figure><p><em>While </em><strong><em>50% of BONK tokens</em></strong><em> have already been airdropped to OpenBook traders, artists, collectors, developers and a collection of 40 Solana NFT projects, </em><strong><em>another 20%</em></strong><em> have been allocated to 22 individuals who contributed to launching the meme token.</em></p><h4>With all the hype around the token, can it be the leading enabler of Solana’s return to DeFi supremacy?🤔</h4><p>Well, to start Several Solana projects have now <a href="https://twitter.com/helio_pay/status/1610034737795727360">integrated Bonk tokens</a> for use as payments for NFTs. As a result, Solana, which saw its price tumble 94% in December, is<a href="https://coinmarketcap.com/currencies/solana/"> trading up 2.85% </a>in the past 24 hours.👀</p><blockquote><em>Well, it’s known that Solana had been volatile and struggling for a number of reasons, including the collapse of one of its prominent backers, FTX and has been has been undergoing major updates since severing ties with the </em><strong><em>Sam Bankman-Fried-</em></strong><em>promoted liquidity provider, </em><strong><em>Serum.</em></strong></blockquote><p>With a total token supply of <strong>100 trillion BONK</strong> and having already airdropped over 50% of it to a number of early benefactors, <strong>this latest meme cryptocurrency seems like another desperate attempt to bring back Solana’s lost luster in the DeFi space.</strong>😬😬</p><h3>Could BONK be the knight in shining armour for Solana?😲</h3><p>📌The BONK whitepaper gives very little information about how it intends to accomplish and sustain the growth that it has projected, although boasting that it will be the key enabler of Solana’s return to DeFi supremacy.😳</p><p>👉This means that there is nowhere for potential investors to see what the token is used for, or for what it wants to achieve.😮</p><p>📌Although the meme coin BONK cryptocurrency already has a large market cap, significant growth over the past week, and high yield returns for liquidity providers (as high as 999% APR), <strong>high yields do not always stay high and it’s possible that the meme coin may have peaked or be on the verge of doing so.</strong>🧐</p><p>On the flipside, the chance exists that the coin’s rally is not over yet. The same thing happened with other meme coins like SHIB and DOGE, which grew so rapidly that it was believed they had peaked yet kept rising.</p><p>📌People are also speculating <a href="https://dailycoin.com/solanas-sol-days-are-numbered-says-entrepreneur-david-gokhshtein/">pump and dump schemes</a>, several SOL whales cashed out their holdings which made BONK’s market value slide down by <strong>54% around Jan 5th</strong>. Despite the massive 54% decline in market value, <strong>BONK is still in the green since last week.</strong></p><p>In a nutshell, BONK did show more than 100% day-over-day rise as the coin’s price kept surging soon after the launch, but the <strong>momentum has softened since.</strong>😓</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/173/0*pBhisk5lKqPylON0.jpeg" /></figure><p>And this goes without saying, <strong>meme coins and tokens are famously volatile and their surges can be short-lived.</strong></p><p>A question coming in your mind would be 👇</p><h3>Should you buy BONK?🤑</h3><p><strong><em>Is now still a good time to invest?</em></strong><em> Are you late to the party?</em></p><p>BONK is arguably the brightest sign that the Solana market has seen in the last two months😝</p><p>To know more and get all the right metrics to decide whether or not to buy BONK and what’s next for BONK, subscribe to <a href="https://web3bitsnbytes.substack.com/"><strong>Bits n Bytes</strong></a> — a weekly crypto newsletter serving you the best crypto snacc and check out <a href="https://web3bitsnbytes.substack.com/p/bonk-is-going-bonkers"><strong>th</strong>is edition </a>about BONK’s meteoric rise😃</p><p><strong>If you want more web3 gyan, then, be sure to follow us on Twitter (</strong><a href="https://twitter.com/web3__bnb"><strong><em>@Web3_BNB</em></strong></a><strong>)</strong></p><p>Adios 👋</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*DxbswnRCI3zxWylT.gif" /><figcaption>See ya in the next edition</figcaption></figure><p>Let me know where do you think BONK is going next in the comments👇</p><p>If you liked what you read, follow for more web3 and crypto bytes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e2e1148d84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ethereum vs Polygon — The Ultimate Comparison]]></title>
            <link>https://medium.com/@laisha.w16_85978/ethereum-vs-polygon-the-ultimate-comparison-2fb479fe61cf?source=rss-478cb4450370------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fb479fe61cf</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[transactions]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[polygon]]></category>
            <dc:creator><![CDATA[Laisha Wadhwa]]></dc:creator>
            <pubDate>Fri, 06 Jan 2023 18:21:16 GMT</pubDate>
            <atom:updated>2023-01-07T07:21:36.230Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ethereum vs Polygon — The Ultimate Comparison🧐</h3><p><em>All you need to know about transaction processing on Ethereum and Polygon</em>🤓</p><p>Ethereum, Polygon, Solana — We’ve all heard these names either on that Whatsapp forward, from your crypto bros or on that clickbait video you saw yesterday.😬😬</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ILDY7pXBVC71mb48.jpg" /></figure><p>But do you understand how transactions happen on these chains?🧐</p><h3>What goes behind making the experience seamless for users when you mint that NFT on OpenSea or Send/Receive crypto? 🤔</h3><p>Well, I’ve got you covered from here!🫡🫡</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*miRm2e3Q4whbP1g8.gif" /></figure><p>Here’s the difference between the three most popular blockchain platforms which blockchain app developers and users around the world use. The usage of all three platforms depend on the type of applications being developed👇👇</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wF7-sgDWHfQ91H-4t7jlcA.jpeg" /><figcaption>Ethereum vs Polygon vs Solana</figcaption></figure><p>To understand these consensus mechanisms: checkout this <a href="https://web3bitsnbytes.substack.com/p/web3-glossary-x-factor-of-web3">Consensus Mechanism 101</a> edition from <a href="https://web3bitsnbytes.substack.com/">Bits n bytes</a> — a weekly crypto newsletter I write.📝✍️</p><p>The main goal is to understand how the jump from 15 to 65K was achieved by an L2 solution like Polygon🧐</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/0*Je0Ev_ALhH7MJWz-.jpeg" /><figcaption>Quite literally</figcaption></figure><h3><strong>Let’s start with Ethereum</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*OV05ONju9kwBmbAW.png" /><figcaption>Ethereum — the OG</figcaption></figure><p>First, let’s understand how a <a href="https://web3bitsnbytes.substack.com/p/web3-glossary-t-u-of-web3">transaction </a>is constructed and sent to the Ethereum network? Baby steps, eh?😺</p><p>👉In layman terms, transactions are cryptographically signed instructions from accounts. An account will initiate a transaction to update the state of the Ethereum network.</p><p>👉The simplest transaction is transferring <strong>ETH from one account to another.</strong></p><p>📍 Say you send 1 ETH to your friend <strong>Alice</strong>. When you initiate that transaction, the state of the <a href="https://web3bitsnbytes.substack.com/p/web3glossary-efg-of-web3">Ethereum Virtual Machine</a> changes.</p><p>📍 Just how that nosy relative needs to broadcast about their kid moving abroad to the entire family🤣, transactions need to broadcast the info of state change to the whole network. Any node can broadcast a request for a transaction to be executed on the EVM.</p><p>👉Post this, <strong>a validator executes</strong> the transaction and propagates the resulting state change to the rest of the network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*TP25xCNo_d20HlBX.jpeg" /><figcaption>EVM nodes be like</figcaption></figure><p>But wait, transactions require a fee and must be included in a validated block. Before we understand that, <strong>let’s take a closer look at the transaction structure on the Ethereum chain</strong></p><p>A submitted transaction includes the following information:</p><ul><li><strong>recipient</strong>🙍‍♀️ – the receiving address</li><li><strong>signature</strong>👩‍💻 – the identifier of the sender, generated when the sender&#39;s private key signs the transaction and confirms the sender has authorized this transaction</li><li><strong>nonce</strong> 🤖- a sequencially incrementing counter which indicates the transaction number from the account</li><li><strong>value</strong> 🪙– amount of ETH to transfer from sender to recipient (in <a href="https://web3bitsnbytes.substack.com/p/web3-glossary-v-and-w-of-web3">WEI</a>)</li><li><strong>data</strong> ⌨️– optional field to include arbitrary data</li><li><strong>gasLimit</strong> 🎰– the maximum amount of <a href="https://web3bitsnbytes.substack.com/p/web3glossary-efg-of-web3">gas units</a> that can be consumed by the transaction.</li><li><strong>maxPriorityFeePerGas</strong>💸 - the maximum amount of gas to be included as a tip to the validator</li><li><strong>maxFeePerGas</strong> 💰- the maximum amount of gas willing to be paid for the transaction</li></ul><p>The gasLimit, and maxPriorityFeePerGas determine the maximum transaction fee paid to the <a href="https://web3bitsnbytes.substack.com/p/web3-glossary-v-and-w-of-web3">validator</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CQpHJX2DLrObY3dd.jpeg" /><figcaption>The world after seeing how validators can earn in the Ethereum ecosystem</figcaption></figure><p>But how do we ensure that the transaction could only have come from the sender and was not sent fraudulently?</p><blockquote>An Ethereum client like Geth handles the signing process using <a href="https://ethereum.org/en/developers/docs/apis/json-rpc/">JSON-RPC API</a> calls</blockquote><p>Any transaction taking place on the chain requires gas,</p><h3><strong>How do we know the amount of gas used?👀👇</strong></h3><p>Simple transfer transactions require <strong>21000 units of Gas.</strong></p><blockquote>So for you to send 1 ETH to Alice at a baseFeePerGas of 180 gwei and maxPriorityFeePerGas of 20 gwei, you will need to pay the following fee:</blockquote><blockquote><strong>(180 + 20) * 21000 = 4,200,000 gwei</strong></blockquote><blockquote>OR</blockquote><blockquote><strong>0.0042 ETH</strong></blockquote><p>👉Your account will be debited <strong>-1.0042 ETH</strong> (1 ETH for Alice + 0.0042 ETH in gas fees)</p><p>👉Alice’s account will be credited <strong>+1.0 ETH</strong></p><p>👉The base fee will be burned <strong>-0.00399 ETH</strong></p><p>👉Validator keeps the tip <strong>+0.000210 ETH</strong></p><p>To summarize for ya’ll🤓</p><ul><li>Once you send a transaction, cryptography generates a transaction hash: 0xc9d2d79c6253406a146bf61690d4d5184124142665dbc2dd3b4ad1c73e6d9796 (example)</li><li>The transaction is then broadcasted to the network and included in a pool with lots of other transactions.📣</li><li>A <a href="https://web3bitsnbytes.substack.com/p/web3-glossary-v-and-w-of-web3">validator </a>needs to pick your transaction and include it in a block in order to verify the transaction and consider it <strong>successful</strong>.✔️</li><li>As time passes the block containing your transaction will be upgraded to <strong>justified </strong>then <strong>finalized</strong>. Once a block is <strong>finalized</strong> it could only ever be changed by an attack 🆗</li></ul><p>To understand the <a href="https://web3bitsnbytes.substack.com/p/web3-glossary-t-u-of-web3">TPS </a>for Ethereum, do checkout <a href="https://web3bitsnbytes.substack.com/p/web3-glossary-t-u-of-web3">this post</a> to know how it’s calculated👇👇</p><p>In ETHereum, miners have to race to find the <strong>nonce</strong> to meet the target difficulty.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*mozDXG4yzMP7JTgV.gif" /></figure><p>Every node needs to verify that the miners’ work is valid and keep an accurate copy of the current network state. 😲 It uses Proof of Work (PoW) as its consensus algorithm.</p><blockquote>PoW requires a participant node to prove that the work done and submitted by them, qualifies them to receive the right to add new transactions to the blockchain.</blockquote><p>This greatly limits the transaction process capability and throughput of the Ethereum blockchain network. Currently, it can only process 12–15 transactions per second.😳</p><p>Less transaction processing speed and high gas has been a bottleneck for Ethereum and that’s where <a href="https://web3bitsnbytes.substack.com/p/rise-of-polygon-the-aws-of-web-30">Polygon </a>— a L2 scaling solution comes into picture with multiple scaling solution to bring down the gas fees to pennies and skyrocket the TPS🥳🥳</p><p>Given the multiple scaling options on Polygon, the most popular are <strong>commit chains</strong>, <strong>plasma sidechains, proof-of-stake (PoS) blockchain bridge, zk rollups and optimistic rollups</strong>. 👀</p><p>📌Matic began with plasma sidechains⛓️, which are lighter and more secure sidechains.</p><p>📌A plasma chain is a second blockchain that coexists with the main blockchain, similar to sidechains. <strong>Ethereum</strong> is the <strong>parent</strong> or <strong>main</strong> blockchain in this scenario.</p><p>📌Plasma chains communicate and connect to the main blockchain, enabling safe asset transfers between them. Just like sidechains, plasma chains have a consensus mechanism that creates blocks. However, unlike sidechains, the <strong>root</strong> of each plasma chain block is published to Ethereum. Block <strong>roots</strong> are basically little pieces of information that users can use to prove things about the contents of those blocks.</p><p>👉 <strong>The necessity for Ethereum to independently process each file is eliminated by processing batches of transactions on its own PoS blockchain.</strong></p><p>👉<strong>In order to make Ethereum lighter and faster, Polygon batches transactions off the main chain.</strong>🤜🤛</p><h3>🟣But, what does a transaction look like in Polygon network?🟣</h3><p>➡️Transactions are comprised of metadata held in <a href="https://docs.cosmos.network/main/core/context.html">contexts</a> and <a href="https://docs.cosmos.network/main/building-modules/messages-and-queries.html">messages</a> that trigger state changes within a module, through the module’s Handler.</p><p>➡️When users want to interact with an application and make state changes (e.g. sending coins), they create transactions.</p><p>➡️Each of a transaction’s message must be signed using the private key associated with the account before the transaction is broadcasted to the network.</p><p>➡️A transaction must then be included in a block, validated, and then approved by the network through the consensus process.</p><h3>What does the validation process look like in Polygon? 🤔</h3><p>Is that the secret sauce that boosts the TPS by manifolds?</p><p>📌Polygon provides hybrid Proof-of-Stake and Plasma-enabled sidechains. It features a generic validation layer separated from varying execution environments like full-blown EVM sidechains and other layer 2 approaches such as zero-knowledge rollups.</p><h3>Time to talk about PoS — <strong>Proof of Stake</strong></h3><p>To enable PoS on the Polygon chain, a set of <strong>staking</strong> management contracts are deployed on Ethereum, along with a set of incentivized validators running <strong>Heimdall</strong> and <strong>Bor</strong> nodes. 👀</p><p>Polygon PoS has a three-layer architecture:</p><ol><li><strong>Ethereum layer</strong> — Staking smart contracts on Ethereum</li><li><strong>Heimdall layer</strong> — <strong>a set of proof-of-stake Heimdall nodes</strong> running parallel to Ethereum, monitoring the set of staking contracts deployed on the Ethereum mainnet and committing the Polygon Network checkpoints to the Ethereum mainnet. Heimdall is based on <a href="https://docs.tendermint.com/v0.34/introduction/what-is-tendermint.html">Tendermint</a>.</li><li><strong>Bor layer</strong> — it’s a <strong>set of block-producing Bor nodes</strong> shuffled by Heimdall nodes. Bor is based on <a href="https://geth.ethereum.org/">Go Ethereum</a>.</li></ol><h3>Staking Contracts🤖</h3><p>As discussed above, to enable the PoS mechanism on Polygon, the system employs a set of staking management contracts on the Ethereum mainnet.</p><p>The staking contracts implements the following features:</p><ul><li>Anyone can stake MATIC tokens on the [staking] contracts and join the system as a <a href="https://web3bitsnbytes.substack.com/p/web3-glossary-v-and-w-of-web3">validator</a>.</li><li>Earn staking rewards for validating state transitions on the Polygon Network.</li><li>Save <a href="https://wiki.polygon.technology/docs/maintain/glossary#checkpoint-transaction">checkpoints</a> on the Ethereum mainnet.</li></ul><p>The PoS mechanism also acts as a mitigation to the data unavailability problem for the Polygon sidechains.</p><h3>Heimdall⛓️</h3><p>👉This proof of stake validation layer handles the aggregation of blocks produced by <a href="https://wiki.polygon.technology/docs/maintain/glossary#bor">Bor</a> into a <a href="https://en.wikipedia.org/wiki/Merkle_tree">Merkle tree</a> and publishes the Merkle root periodically to the root chain. The periodic publishing of snapshots of the Bor sidechain is called <a href="https://wiki.polygon.technology/docs/maintain/glossary#checkpoint-transaction">checkpoints</a>.</p><h3>What functionality does this validation layer provide?🤔</h3><ol><li>It validates all the blocks since the last checkpoint.</li><li>Creates a Merkle tree of the block hashes.</li><li>Publishes the Merkle root hash to the Ethereum mainnet.</li></ol><h3><strong>Why are checkpoints important?</strong>🤔</h3><ol><li>They provide finality on the root chain.</li><li>Provide proof of burn in withdrawal of assets.</li></ol><p>Now that we understand the terms,</p><h3>What does the process of validation look like?👀</h3><ul><li>A subset of active validators from the pool are selected to act as <a href="https://wiki.polygon.technology/docs/maintain/glossary#block-producer">block producers</a> for a <a href="https://wiki.polygon.technology/docs/maintain/glossary#span">span</a>, who are responsible for creating blocks and broadcasting the created blocks on the network.</li><li>A checkpoint includes the <a href="https://www.investopedia.com/terms/m/merkle-root-cryptocurrency.asp">Merkle root hash</a> of all blocks created during any given interval.</li><li>All nodes validate the Merkle root hash and attach their signature to it.</li><li>A selected <a href="https://wiki.polygon.technology/docs/maintain/glossary#proposer">proposer</a> from the validator set is responsible for collecting all signatures for a particular checkpoint and committing the checkpoint on the Ethereum mainnet.</li><li>The responsibility of creating blocks and proposing checkpoints is variably dependent on a validator’s stake ratio in the overall pool.😵‍💫</li></ul><h3>Bor🔳</h3><p>👉Bor the block producer layer is responsible for aggregating transactions into blocks.</p><p>Block producers are a subnet of the validators and are periodically shuffled via committee selection on Heimdall in durations termed as a span in Polygon.</p><p>Blocks produced on Bor are validated periodically by Heimdall nodes, and a checkpoint consisting of the Merkle tree hash of a set of blocks on Bor is committed to Ethereum periodically.</p><h3>But is that it?😳</h3><p>Well, there are other scaling solution that help reduce the finality time for a transaction. Some of which are listed below👇</p><p>📍 <a href="https://web3bitsnbytes.substack.com/p/web3-glossary-z-of-web3"><strong>Zk rollups</strong></a> process bundles of transactions off-chain and create validity proofs, verifying that each bundle of data is accurate. These validity proofs are then sent to the main blockchain.</p><p>📍 Each validity proof acts as a proxy for the bundle it represents which reduces the amount of data on the main chain. In effect, this approach reduces the time and gas fees required to validate a block of transactions.</p><p>🔊And the story doesn’t end here, recently, Polygon PoS announced a <a href="https://polygon.technology/blog/innovating-the-main-chain-a-polygon-pos-study-in-parallelization">Parallel EVM</a> upgrade to PoS that will make the Polygon PoS chain up to <strong>twice as fast</strong>.🥳</p><p>👉 The goal of the parallelizing engine is the ability to process multiple transactions at the same time.</p><p>👉 A 1.6x increase in gas throughput, with a clear path to a 2x speed-up was noted with the adoption of parallelization.🤩</p><p>To get more insights on how transactions are processed on a non-EVM chain subscribe to <a href="https://web3bitsnbytes.substack.com/"><strong>Bits n Bytes</strong></a> — a weekly crypto newsletter serving you the best crypto snacc and check out <a href="https://web3bitsnbytes.substack.com/p/2022-wrap-the-ultimate-comparison"><strong>last weeks edition</strong></a>😃</p><p><strong>If you want more web3 gyan, then, be sure to follow us on Twitter (</strong><a href="https://twitter.com/web3__bnb"><strong><em>@Web3_BNB</em></strong></a><strong>)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*rKOUEJj_sR8vAabD.jpeg" /><figcaption>🙃🙃</figcaption></figure><p>Adios👋</p><h3>How’d you like the take on comparing transaction processing on the widely adopted L1 and L2?</h3><p>Let me know in the comments!</p><p>And if you liked what you read, follow me for more such crypto bytes and snacks😁😁</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fb479fe61cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Polygon X Devfolio Fellowship 2022- A Recap]]></title>
            <link>https://medium.com/@laisha.w16_85978/polygon-x-devfolio-fellowship-2022-a-recapitulation-50313cfb6230?source=rss-478cb4450370------2</link>
            <guid isPermaLink="false">https://medium.com/p/50313cfb6230</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[fellowship]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Laisha Wadhwa]]></dc:creator>
            <pubDate>Tue, 13 Sep 2022 14:48:20 GMT</pubDate>
            <atom:updated>2022-09-18T17:22:03.729Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s been over a week since the Polygon fellowship concluded and what an experience it was. A lot has happened since then and this blog is all about my experience and learnings!</p><p>It all started on in June, 2022 when I got the acceptance for the fellowship. Didn’t expect that I’d make it given that there were over <strong>10k+</strong> applications and only the chosen <strong>50</strong> would make it!</p><p>But this happened! I made it to the Buidler track 🤩</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9pv-fMTodyC6Uvdx" /><figcaption>PolyFam- fellows, mentors and the Polygon team</figcaption></figure><blockquote>I was really excited to start building on my idea while learning from fellows and a great pool of mentors. To kick off, some amazing sessions around DAOs on Polygon, IPFS/Filecoin and a couple of technical sessions around interacting with blockchain data were organized and then we finally started the fellowship. An interactive introduction session of the fellows was followed by ideating with mentors to build products that would make an impact in web3.</blockquote><p>Week on week there were multiple catch ups with mentors and building was on. I Initially thought of building a data monetization and ownership platform but web3 security lured me into building <a href="http://radarfi.softr.app/"><strong>RadarFi </strong></a>— a security layer solution for web3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*qF76_Lgf-EMeJNtO6IDgDw.png" /><figcaption>RadarFi — Real time security layer for web3 systems</figcaption></figure><p>3 weeks into the fellowship, and then came the “<strong>Polygon Hacker House</strong>” (drums rolls please)</p><p>Where do I start?<strong> 9 days of pure learning and buidling</strong>, finding a community of amazing builders, networking &amp; getting a chance to pitch to VCs — Hacker house was indeed an embodiment of collaborative learning</p><blockquote>The IRL hacker house was pretty lit. From almost every web3 founder and buildoors to Sandeep Naliwal himself addressing the fellows, the list goes on, on how valuable and fun the hacker house was.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ay-89-7paPvJ_3yS" /><figcaption>Kickoff session with Sandeep Nailwal, Co-Founder — Polygon Technology</figcaption></figure><p>During the course of the Hacker house, I met all the amazing fellows of Polygon, building some dope web3 products. Staying in an amazing place for over 9 days, Polygon felt like Family.</p><p>From the informative sessions and the late night <strong>Poly lounge sessions</strong> to the late night building, the hacker house just kept getting better. The Poly lounge sessions by Polygon team (Akash and Saksham) were the best. Every night the team brought in the best founders, product builders, designers and amazing fellas from the web3 community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8IEEGcJLzjK_0uTz" /><figcaption>Poly lounge shenanigans</figcaption></figure><p>It was fun and insightful to learn from their experiences and also get feedback on the product we were building. One such session was organized where we could get feedback on anything and everything starting from finding the right product market fit, designing the website, building the right UX to actually marketing the product and building a brand around it. All this packed with some immensely helpful sessions during the day made the experience so wholesome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t7tAqyHK-wzP8gyX" /><figcaption>Another brainstorming poly session</figcaption></figure><p>After an amazing IRL kickoff of the Hacker House on Day 1 &amp; a day full of interactions with mentors and fellows (and some amazing surprises) on Day 2, Day 3, 4 and 5 were packed with some very insightful sessions. The sessions not only covered the technical aspects of web3 but also the design, product and market aspects.</p><p>Had a lot to learn and takeaway from the sessions by A<a href="https://twitter.com/adityarola">ditya Rola</a> from CapX<a href="https://twitter.com/Mudit__Gupta">, Mudit Gupta</a> from Polygon, M<a href="https://twitter.com/madhavanmalolan">adhavan malolan</a> from Questbook and Pranav Maheshwari from Graph Protocol</p><p>There’s one thing that Pranav said that’ll stick by me is</p><h3>Work for impact not money</h3><p>The energy and the enthusiasm that the hacker house was brimming with fueled every builder to take their ideas to the next level and put India on the web3 map!</p><p>Some moments from the hackerhouse:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3u3YTzTQGWisS4NP" /><figcaption>The web3 Polygon fam</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/0*9wefC_-BlA2wjFS6" /><figcaption>Youngest and cutest fellow : Polyguin</figcaption></figure><p>Over the days, I pivoted my idea multiple times based on the feedback from mentors and speakers and got to know a lot more about the web3 security space than what I already knew. The ecosystem that was inculcated at the HH actually helped me frame my idea and implement it more pragmatically.</p><p>Days full of learning, nights coupled with cold brew and building + some really fun interactions — that’s how I’d sum up the hackerhouse.</p><p>After some serious building for a week, finally came the Demo Day</p><p>Demo day was all about asking good questions, receiving constructive feedback, and getting the adrenaline rush of actually pitching to VCs. It was surreal to pitch the idea with all the market research, product market fit, demo and the future plans. Got a lot of feedback from VCs, ideas on marketing the product, finding the right users for the product — the experience was phenomenal.</p><p>Just when I thought that It couldn’t get any better, there was a downpour of swags and giveaways to top it all off, from the Polygon and Devfolio team.</p><p>Amazing things happen when people come together for greater good. Kudos to the <a href="https://twitter.com/0xPolygon">Polygon</a> and <a href="https://devfolio.co/">Devfolio </a>team for bringing together builders, designers, mentors and web3 OGs all under one roof to help turn our ideas into actual products at Polygon Hacker House 2022!</p><p>The Hacker House concluded with a graduation ceremony. Honestly brought back a lot of memories and was a perfect end to a jam packed week. 🎓🥇</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YKdpaDzd4Gu7nahu" /><figcaption>Women in web3</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*OaMcHBMMYUtsba9M" /><figcaption>Fellowship Graduation Day🎓</figcaption></figure><p>But wait, there was more, to celebrate, Devfolio organized a Polygon web3 mixer. A perfect way to interact with the web3 community and have some fun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2DggjuR_LsJmAEFl" /><figcaption>Web3 fam in the house</figcaption></figure><p>The 3 weeks that followed the Hacker house were full of testing and building the solution even further. The fellowship helped me connect with folks from the industry to test my solution on real world data and validate my MVP. My solution RadarFi preaches for DeFi Security solutions you can trust. It’s a real-time security monitoring layer that can detect Transactions fraud, Reentrancy attacks and Crypto crime.</p><blockquote>Do check it out here and join the waitlist for early access: <a href="https://radarfi.softr.app/">https://radarfi.softr.app/</a></blockquote><p>The last 3 weeks were all about iterations of testing, scrapping and building things differently. Finally it all came to an end with another Virtual Demo Day where we presented what we built to web3 OGs and got constructive feedback to take our projects further.</p><p>Honestly, the last 2 months were nothing short of an adventure. What a splendid learning journey it has been. It wasn’t about building just a project but more about building a product that impacts and helps make this space more safe.</p><p>I take along with me some amazing web3 frens and connections, lifelong advice from the amazing folks of web3 and the spirit to never stop building.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qD0FysjzWXoTM44a" /><figcaption>Housefull of buildoors!</figcaption></figure><p>That’s all folks!<br>Adios!</p><p>Never stop buidling 💪</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50313cfb6230" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An AI Solution for the Indebted Future: Predicting Student Repayment Capability]]></title>
            <link>https://medium.com/omdena/an-ai-solution-for-the-indebted-future-predicting-student-repayment-capability-18e3cdc3c7e0?source=rss-478cb4450370------2</link>
            <guid isPermaLink="false">https://medium.com/p/18e3cdc3c7e0</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[student-debt]]></category>
            <category><![CDATA[debt]]></category>
            <dc:creator><![CDATA[Laisha Wadhwa]]></dc:creator>
            <pubDate>Mon, 17 Aug 2020 12:02:31 GMT</pubDate>
            <atom:updated>2020-08-17T12:20:01.180Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A deep dive into the current crisis of student debt, unfolding the patterns and reasons from the rich data present and understanding why around 43 million people in the U.S. are in debt for their education. The results are based on the study undertaken while working on the shaping EDU project with Omdena.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U81HXal85fPPYl-7eYZ1tA.jpeg" /><figcaption>Credit: The $1.6 trillion student debt crisis in a nutshell by <a href="https://www.wsj.com/articles/the-long-road-to-the-student-debt-crisis-11559923730">WSJ</a></figcaption></figure><p>Each day, there are news stories about the college tuition crisis. But what is the crisis we are seeking to solve? Is it the staggering amount of student debt? The rapidly rising cost of higher education? The interest being collected on student loans? The high default rate on student loans? Or all of the above?<br>At present student loan debt exceeds accumulated car loans and credit card debt by nearly $1.6 trillion. The student debt has hence become a $1.6 trillion crisis. <br>I worked with Omdena as an ML Engineer to find solutions to this problem using AI and ML.</p><h3><strong>What is Omdena all about?</strong></h3><p><a href="https://omdena.com/">Omdena </a>is a collaborative platform to build innovative, ethical, and efficient AI solutions to real-world problems. It’s a community where collaboration is the key. With interdisciplinary and culturally-diverse teams, Omdena has made end-to-end AI development much more accessible.</p><h3><strong>Experience working with Omdena</strong></h3><p>This was my first time collaborating with over 50 AI practitioners from around the world for solving a persistent problem in the U.S.: Growing levels of student debt. I worked as an ML Engineer with Omdena on the Student Debt Crisis in the US in collaboration with Shaping EDU(Arizona State University)</p><p>The Omdena collaborator community is very well planned and gave me a lot of room for innovation and the opportunity to work with AI practitioners, economists, and domain experts on a plethora of problems pertaining to students.</p><p>The 8-week project kicked off with an onboarding call and understanding the problem, the current scenario, and what has been done until now about the student debt crisis. The amazing community started proposing tasks specific to solving a sub-problem for this crisis.</p><p>I proposed a task “Student segmentation and repaying capability” which had the following objectives:</p><ol><li>Using machine learning backed by EDA to predict the repayment capability of the students.</li><li>Build a network that will allow the students to estimate the risk incurred while borrowing and manage the loan amount accordingly.</li><li>Understand if the student’s future earnings are maximized by attending the best school they can get into, despite the cost incurred.</li></ol><p>This is primarily achieved by segmentation of students based on multimodal factors like university attended, selected program, demographic and type of loan borrower (private, federal, etc)</p><p>The task initially started with a lot of literature review that gave useful insights into multiple drivers for the current state of students in the US and how advances in Machine Learning (ML) and Artificial Intelligence (AI) create new possibilities across markets.It enables new avenues to disrupt one of the most costly and impactful markets: that of student debt.</p><p>The findings were functional while segmenting the students and narrowing down the features to use for defining these segments.</p><h3>Data preparation and feature engineering</h3><p>After the initial literature review, we dived into the data preparation which involved collecting the right sources of data, EDA, normalization, and feature transformation. Multiple sources of data were used; College Scorecard Data (<a href="https://collegescorecard.ed.gov/">https://collegescorecard.ed.gov/</a>), 2019 US student loan debt by location and age, and Trends in Graduate Student financing data by NCES (<a href="https://nces.ed.gov/pubsearch/pubsinfo.asp?pubid=2019485">https://nces.ed.gov/pubsearch/pubsinfo.asp?pubid=2019485</a>). <br>Let’s look a little closer:</p><ol><li>Features with a large number of missing values were dropped.</li><li>The data values were normalized given there were many different features.</li></ol><h3><strong>Getting hands dirty and exploring the data further</strong></h3><p>The pre-processed dataset was huge so the next step was to select the relevant features from the insights gathered from the literature review. After having a round of Exploratory Data analysis and model simulations the following features were selected for further creating the segments using K-means clustering. IN order to handle missing values MICE imputation technique was used for 3 features (INST_ENSIZE being one of them)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*-VXpwL_fOHhWk1SKChEKCA.png" /><figcaption>Feature importance using Lightgbm regressor</figcaption></figure><ol><li>CD3: Three-year cohort default rate</li><li>Control3</li><li>Median earnings of students working and not enrolled 8 years after entry</li><li>The average age of entry</li><li>Control2</li><li>Median household income</li><li>Percent of all undergraduate students receiving a federal student loan</li><li>Highdeg4: Highest degree awarded (has 5 levels so level 2,4 and 5 were important)</li><li>Highdeg2</li><li>State44</li><li>State28</li><li>State30</li><li>State8</li><li>State22</li><li>The total share of enrollment of undergraduate degree-seeking students who are women</li><li>State11</li><li>Percent completed within 4 years at the original institution</li><li>INST_ENSIZE2: Institution Enrollment Size (Newly derived featured fro UGDS:[Enrollment of undergraduate certificate/degree-seeking students])</li><li>Highdeg5</li><li>State43</li><li>The median debt for students who have completed</li><li>State27</li></ol><p>The above features are listed in the order of their importance which was obtained using Lightgbm regressor on the complete dataset.</p><p>And the following factors were considered while evaluating the financial aspect of attending a college:</p><ol><li>Cost.</li><li>Amount of debt to be taken.</li><li>Future earnings.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NlHRjHs6SqFNpBJ8SiVwrA.png" /><figcaption><strong>% of students who complete their course or withdraw from it vs the borrowed loan amount.</strong></figcaption></figure><h3><strong>Target Variable</strong></h3><p>The target variable is obviously repayment rate = fraction of students properly repaying their loans, while lies in the range of 0–1. COMPL_RPY_3YR_RT is taken as the target variable which is defined in the data set as “Three-year repayment rate for completers”.</p><h3><strong>Student Segmentation</strong></h3><p>A total of 12 segments were made out of the data. The segments are clearly demarcated from other segments. These segments show that there’s a diverse set of students taking loans each year and hence have varied repayment capabilities based on what college they went to, which course they took up, their demographic data, financial profile, and age profile.<br>K-means was used to generate the clusters and the kneed library was used to find the optimal “k” value for the segmentation process. The explained variance of the clusters was 95% (after PCA)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*ynF65SjYGYKWBcWpsATkgw.png" /><figcaption>12 clusters obtained: represented in 2 dimensions using PCA</figcaption></figure><h3><strong>Next comes the modeling- Time for some insights</strong></h3><p>The student segmentation was followed by modeling the repayment capacity of the students to save them from lifelong debt.</p><p>The idea was to model the distinctive student segments using Gradient boosting regression. Linear regression came in handy to study the relationship between the median earnings and the average cost of the institution. The next thing was to work with different models like LightGBM, XGboost, and an ensemble of various other models to predict the repayment capability of a loan borrower. Finally, a stacked ensemble of XGBoost and Lightgbm performed the best when compared to all the other examples. The dataset was split into mutually exclusive training, validation, and test sets.RMSE has been used as an evaluation metric.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8O7A16fonuX0j8VKh4gDUA.png" /><figcaption>Relationship between the median earnings and the average cost of the institution.</figcaption></figure><p>The model predicts a number between 0–1. Let’s say the predicted value is 0.85, it implies that 85% it’s likely that that student will be able to repay the borrowed loan amount.</p><h3><strong>Quantitative Results</strong></h3><p>RMSE was used to evaluate the model. The RMSE value achieved on a sample of 30k students was 0.865 which proved that the model was able to predict the repayment capabilities pretty accurately given the data state and amount of pre-processing done to train a model.</p><h3>Final thoughts</h3><ol><li>The whole analysis throws light on the current state of repayment of loans and provides an AI-based approach to evaluate the risk incurred while borrowing a certain amount of money.</li><li>As expected, borrowers with higher annual income and higher FICO scores are more likely to repay them completely.</li><li>Also, borrowers with lower interest rates and smaller installments are more likely to pay the loan fully.</li></ol><h3>Key Insights</h3><ol><li>Key takeaways from existing studies and reports:<br> <em>a</em>. <em>Typically, repayment of government student loans begins six months after college graduation and can last up to 25 years.</em><br><em>b</em>. <em>Most borrowers pay their loans in ten years.<br>c. Students fail to make a payment on their student loan in 270 days, they are considered to be in default.<br></em>d. <em>The average national two-year cohort default rate in the FSLP was 7 percent in 2008.</em></li><li><strong>Understanding the data:</strong><br><em>a. The clustering of data points based on institution level and debt repayment rate data was crucial in understanding the data distribution and how some categories stood out from the rest.<br>b. EDA in terms of analyzing repayment rates depicted patterns relating to how University and admission rates affected the median debt of students completing education.<br>c. Most of the schools associated with high debt are visual arts and design institutions.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*hKqBPMOSMiaMUacvcJYnOA.png" /><figcaption>No of years loan borrowed along with the type of loan provider vs % borrowing amount for various sectors of loan providers</figcaption></figure><ol><li><strong>Sources of bias:</strong><br><em>a. A major bias introduced in this study by the collectors of the data is that the data is limited to students that are Title IV recipients. A Title IV award includes government loans and grants (4), and these are need-based awards. Thus, it is important to keep in mind that the conclusions we attempt to make using this data set are not general to all students, but rather only those that qualified for, or perhaps more importantly had access to financial aid.<br>b. The second bias in this study is that it only pertains to schools that received financial aid. Over 80% of schools receive financial aid, so this bias is not as severe as the one mentioned earlier. However, this data set is limited to students that received financial aid at a subset of available schools.</em></li><li><strong>Important observations from the study:<br></strong><em>a. The median and mean debt of those completing their education are over double than those that withdraw. However, more interestingly, we find that the populations for both groups appear to have a multimodal distribution.<br>b. Mean debt for those that complete their schooling is similar for those that attend private for-profit and public schools, but significantly higher for private nonprofit schools and the same is true for the debt taken on for those that withdraw before completing their education.<br>c. There is a linear relationship between the debt taken on by the students that complete their education for institutions that have an average cost &lt; ~25,000, however, there is not a linear relationship for the higher-priced institutions.</em></li><li><strong>Take on the hypothesis:<br></strong><em>Based on the analysis the hypothesis that a student’s future earnings are maximized by attending the best school they can get into, despite the cost was also proved to be true through numbers and graphs.</em></li></ol><p>The experience working on the ShapingEDU challenge with Omdena was one of a kind experience. I personally enjoyed using the AI ML breakthroughs to better understand and recommend solutions for the $1.6 trillion crisis. It was insightful exploring a solution to predict credit risk incurred while taking loans and how likely they are to pay back.</p><p>Thank you Omdena community, and Rudradeb Mitra for the opportunity to work with a community of doers and dreamers and not only build an AI solution with a real-world impact but also go through an entire data science project life-cycle.</p><h4><strong>If you want to join Omdena´s real-world projects, apply </strong><a href="https://omdena.com/"><strong>here</strong></a><strong>.</strong></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18e3cdc3c7e0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/omdena/an-ai-solution-for-the-indebted-future-predicting-student-repayment-capability-18e3cdc3c7e0">An AI Solution for the Indebted Future: Predicting Student Repayment Capability</a> was originally published in <a href="https://medium.com/omdena">Omdena</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Music Genre Classification — A Multi-Modal Fusion Approach]]></title>
            <link>https://medium.com/swlh/understanding-music-genre-classification-a-multi-modal-fusion-approach-6989caa87803?source=rss-478cb4450370------2</link>
            <guid isPermaLink="false">https://medium.com/p/6989caa87803</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Laisha Wadhwa]]></dc:creator>
            <pubDate>Tue, 10 Dec 2019 18:03:45 GMT</pubDate>
            <atom:updated>2020-07-08T06:48:56.811Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding Music Genre Classification — A Multi-Modal Fusion Approach</h3><h4>Explore a multimodal deeplearning approach for classifying your favourite songs into different genres.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*MFLCmVmTeDVu8irOnA-vsw.jpeg" /><figcaption>Image source: https://github.com/mdeff/fma</figcaption></figure><h3>These music apps’ recommendations are so on point! How does this playlist know me so well?</h3><p>Have you been here? Have had the same grappling thought? This article is just what you need to understand what goes behind understanding the music, its genre.</p><blockquote>Music expresses that which cannot be put into words and that which cannot remain silent<br> -<strong>Victor Hugo</strong></blockquote><p>We all have used some music streaming app like Spotify, Gaana, Wynk or Saavn. How do you think it creates playlists for you? How does it recommend the best songs for your liking?</p><p>The secret sauce behind these awesome apps is firstly strong recommender systems and second most importantly the <strong>music genre classification systems</strong>.</p><blockquote>Music genre classification forms the basis steps for any music recommendation system.</blockquote><p>In a more comprehensive manner, Music Genre classification aims at predicting music genre using the audio signal. Automating the task of detecting musical tags allows to create interesting content for the user like, music discovery and playlist creations, and for the content providers like music labeling and ordering. Determining music genres is the first step in that direction. Most music genre classification systems utilize either the musical features like MFCC’s, Spectral contrast etc or the text (i.e. lyrics) for classification.</p><blockquote>With the advent of Deep neural networks, CNN and CRNN networks have found applications not only in music generation but also efficient music genre classification.</blockquote><p>This article walks you through four interesting approaches towards music genre classification. The approaches utilize both the text and musical acoustic features for predicting the genre of music.</p><p>This post is divided into seven sections. Each section talks about the various approaches followed by Results and Conclusion</p><ol><li>Multiframe training strategy and novel data augmentation.</li><li>BERT classifier on songs lyrics for Genre classification.</li><li>XGBoost : Machine learning approach for handcrafted features.</li><li>Dense Co — Attention network for Multi modality (text and song features) fusion.</li><li>Ensemble methods</li></ol><h3>1. Multi- frame training strategy : CRNN</h3><p>The network adopted from Choi et. al is fine tuned on the handcrafted dataset of 300 songs across 10 genres (collected from <a href="https://www.kaggle.com/gyani95/380000-lyrics-from-metrolyrics">Kaggle </a>dataset). First, a 10s of the song is removed from the beginning and the end. These parts of the songs aren’t significantly representative. Therefore, their inclusion to the classiﬁcation procedure would lead to weaker results. Next the input audio file is divided into frames of 29.12s. They are not overlapped and the last frame is removed if its duration is lower than 29.12s.</p><p>After fetching all the frames, the evaluation criterion is set at the song level. Accuracy metric is used to measure the performance of the CRNN network. For every frame of length 29.12 seconds a log-amplitude mel spectrogram is extracted using 96 mel-bins and a hop-size of 256 samples, resulting in an input shape of 96 × 1366. The base network used here is a CRNN. Architecture diagram is shown in Figure 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*ow_re9IGKiJWa6pXJhkK4A.png" /><figcaption>Figure 1: Network architecture CRNN with KNN as the predictor.</figcaption></figure><p>To do this, two methods are used, an averaging of the predicted tags for each frame of the song, where the mean of all the tags score of all the frames of the song is computed and the tag with the highest score is selected. Therefore, if a song contains a small period that can be classiﬁed as a different genre, it will not affect the ﬁnal song classiﬁcation. Another approach that results in better accuracy is KNN algorithm where the tag would be assigned based on the nearest neighbor in the k- neighbourhood. K here is taken to be 9. Categorical cross Entropy has been taken as the loss function with ADAM as the optimizer. The network was tested on the GTZAN dataset.</p><p>The below code snippet shows how the mel-spectrogram is computed using the Librosa library</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e835310714947d5ba28fa695295cb6d5/href">https://medium.com/media/e835310714947d5ba28fa695295cb6d5/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/24122e4929511851b64fa86d87a5ea35/href">https://medium.com/media/24122e4929511851b64fa86d87a5ea35/href</a></iframe><h3>2. BERT classifier on songs lyrics for Genre classification.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3KY7nF6JatWRSB-RZxADcw.jpeg" /><figcaption>Source Google images</figcaption></figure><p>State of the art multi-class classifier BERT, by Google is used. Kaggle dataset with 5000 data samples is used to generate the class label for any given music sample. BERT embeddings were generated for each of the lyrics row and then a classifier (BERT) was used to predict the genre. <br>The network attains an accuracy of 0.865 across the 10 classes. The architecture of BERT adopted shown below in Figure 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*sqaOuLOaQ4-rUZSDDn46Ww.png" /><figcaption>Figure 2: Bert <a href="https://ai.googleblog.com/2018/11/open-sourcing-bert-state-of-art-pre.html">Architecture</a></figcaption></figure><h3>3. XGBoost : Machine learning approach for handcrafted features.</h3><p>In this approach, both time domain and frequency domain features are extracted from the given input audio sample. Following are the handcrafted features:</p><ol><li><strong>Time domain</strong>: Central moments, Zero Crossing Rate, Tempo (BPM).</li><li><strong>Frequency Domain</strong>: MFCC, Chroma Features, Spectral Centroid, Spectral BW, Spectral Contrast.</li></ol><p>The features have been adopted from <a href="http://www.life-dynamap.eu/document/a-review-of-physical-and-perceptual-feature-extraction-techniques-for-speech-music-and-environmental-sounds/">this </a>paper. Librosa library in python was used for feature extraction. For every spectral features in time and frequency domain, , the mean and standard deviation of the values taken across frames is used as the representative ﬁnal feature that is fed to the model.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/abd63e0e6ca1c7869007f90626f3a87b/href">https://medium.com/media/abd63e0e6ca1c7869007f90626f3a87b/href</a></iframe><p>Boosting is an ensemble technique that is obtained by combining a number of weak learners (Decision trees say). The reason for choosing the XGBoost classifier is the fact that as training progresses, the classiﬁer becomes more powerful as it focuses on the instances where the previous learners made errors. The ﬁnal prediction is a weighted linear combination of the output from the individual learners. XGB refers to eXtreme Gradient Boosting, which is an implementation of boosting that supports training the model in a fast and parallelized manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*rVVf1sm6KKHKm-_dpXfc1w.png" /><figcaption>Figure 3: How XGB learns best tree architecture from different tree orientations</figcaption></figure><h3>4. Multi model fusion network</h3><p>Till date no approach has combined the features from both text and song to predict the genre. <a href="https://arxiv.org/abs/1804.00775">Dense co- attention network</a> uses KQV attention and multi modal fusion to combine the acoustic features extracted by the CNN network and the text embeddings from lyrics together to make predictions. Given the representations of the two modalities, a fusion operation is performed at the final layers to fuse the features of the two modalities which is then fed to fully connected layers serving as the prediction layers for the model. The dataset used for training uses the 5000 data samples collected from Kaggle <a href="https://www.kaggle.com/gyani95/380000-lyrics-from-metrolyrics/">dataset</a> with corresponding songs downloaded from YouTube. <br> <br>The motivation behind choosing multi modal fusion is that simple fusion techniques suffers from extracting low semantic correlation between different modalities and also that fusion techniques had a significant impact on the overall accuracy of the model. The network architecture in Figure 4 describes the working of the model. The input to the network id the mel- spectrogram and the lyrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*n9U53NskTjEInkIZ9nMV3A.png" /><figcaption>Figure 4: Multi modal Fusion network</figcaption></figure><h3>5. Ensemble Models</h3><p>To perform a comparative study of multi modal fusion network with other two networks i.e. Multiframe + KNN and XGBoost, an ensemble of BERT model trained on lyrics is done with each of the network using the weighted averaging, where more weight is given to spatial feature learning network. α = 0.75 , β = 0.25 where α is the weight for spatial learner network and β is the weight for the BERT network.</p><p>Figure 5 shows the network architecture for XGBoost ensemble with BERT network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*QP1be460oiUAzOfHYXJgmQ.png" /><figcaption>Figure 5: Ensemble of XGBoost and Bert Classifier</figcaption></figure><h3>Results:</h3><p>The multi modal fusion approach performs the best in terms of the accuracy metric from the existing approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*QBSIWavySOfj5c3SgGqDZQ.png" /><figcaption>Figure 6: Quantitative results for all models</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*I4SbGiTEt0HPoA4A05tFaw.png" /><figcaption>Figure 7: Results on song Senorita by Camila Cabello</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*NfVP0JyBqAdMxUmr1B2oew.png" /><figcaption>Figure 8: Shows the comparison of proposed approaches with <a href="https://arxiv.org/pdf/1804.01149.pdf">state of the art</a></figcaption></figure><h3>Conclusion</h3><p>In this post, the performance of various classifier is studied on the GTZAN and Audio set (from YouTube). A comparative study is also done on performance of deep learning and machine learning based methods is also provided.</p><p>Two state of the art approaches are proposed. First, an ensemble of XGBoost model trained on handcrafted time and frequency domain features with BERT network trained on lyrics of 5000 songs. Second, the multi modal fusion network which uses KQV attention and multiple modality fusion for classification of genres. The dense co attention model is found to be the best performing network among all the other networks.</p><p>The data collected for multi-frame approach provide a new dimension towards training more robust networks by generating more training data with a smaller number of audio files. Thus, the deep learning models outperform the feature engineering-based models. In the future, a larger dataset can be used and the noise from the data obtained from online resources can be removed before frame processing. The genre prediction network can be used in conjunction with recommender systems to create user centred playlists.</p><p>So now you know why you would be recommended more metal songs if you listen to <strong><em>Numb by Encore</em></strong>!!</p><p>References:</p><p>[1] <em>Proceedings o</em>] Keunwoo Choi, George Fazekas, and Mark Sandler, “Automatic tagging using deep convolutional neural networks,” arXiv preprint arXiv:1606.00298, 2016.</p><p>[2] Nguyen, Duy-Kien, and Takayuki Okatani. “Improved fusion of visual and language representations by dense symmetric co-attention for visual question answering<em>f the IEEE Conference on Computer Vision and Pattern Recognition</em>. 2018</p><p>[3] M. Fell and C. Sporleder. Lyrics-based analysis and classification of music. In COLING, 2014.</p><p>[4] Kyunghyun Cho, Bart Van Merri¨enboer, Dzmitry Bahdanau, and Yoshua Bengio, “On the properties of neural machine translation: Encoder-decoder approaches,” <em>arXiv preprint arXiv:1409.1259, 2014</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6989caa87803" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/understanding-music-genre-classification-a-multi-modal-fusion-approach-6989caa87803">Understanding Music Genre Classification — A Multi-Modal Fusion Approach</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Detecting Fake Political News Online]]></title>
            <link>https://medium.com/data-science/detecting-fake-political-news-online-a571745f73dd?source=rss-478cb4450370------2</link>
            <guid isPermaLink="false">https://medium.com/p/a571745f73dd</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[fake-news]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Laisha Wadhwa]]></dc:creator>
            <pubDate>Sat, 16 Nov 2019 14:30:15 GMT</pubDate>
            <atom:updated>2020-07-08T15:14:01.042Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn how to use NLP and passive aggressive algorithm to spot fake news online.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ruW6-1ltdtsgFSFQNHvS_w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@lieucap?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Lieu Cap</a> on <a href="https://unsplash.com/s/photos/newspaper?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The booming development of online social networks in the recent years has spiked the volume of fake news for various commercial and political purposes across many online platforms.</p><blockquote>We all have stumbled upon fake news of politicians dying, some leader giving out statement about temples and mosques and what not.</blockquote><p>The misleading news has tremendously affected the readers and has brought a very negative effect on the offline society already.</p><p>Thus, an important goal in improving the trustworthiness of information on online social networks is to identify the fake news timely and correctly.</p><p>In this post I’ll be guiding you through building a <strong>Fake news detection </strong>classifier using Passive Agressive Algorithm.</p><p>The data-set used for the classifier can be downloaded <a href="https://drive.google.com/file/d/1er9NJTLUA3qnRuyhfzuN0XUsoIC4a-_q/view">here</a>.</p><p>The data-set contains three columns namely:</p><ol><li>Title: Title of the news article</li><li>Text: Content of the news article</li><li>Label: Two labels- FAKE and REAL.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*ciXGygMBG15X337YsNFpuw.png" /><figcaption>A subset of the data-set</figcaption></figure><p>In a nutshell, using sklearn, a TfidfVectorizer is built on the data-set. Then, a Passive Aggressive Classifier is initialized and the model is fit. In the end, the accuracy score and the confusion matrix quantitatively explain how well the model fares.</p><h4>Too many technical terms? Well let’s figure them all out step by step.</h4><p>Let’s get aware of the terms like TfidfVectorizer and Passive Aggressive Classifier.</p><p>The TfidfVectorizer converts a collection of raw documents into a matrix of TF-IDF features.</p><p>Let’s dig a little deeper..</p><h3>What constitutes TfidfVectorizer?</h3><ol><li><strong>TF (Term Frequency): The number of times a word appears in a document is its Term Frequency</strong>. A higher value means a term appears more often than others, and so, the document is a good match when the term is part of the search terms.</li><li><strong>IDF (Inverse Document Frequency):</strong> Words that occur many times in a document, but also occur many times in many other docs, may be irrelevant. <strong>IDF is a measure of how significant a term is in the entire corpus.</strong></li></ol><h3>Passive Aggressive Classifier</h3><p>Passive Aggressive algorithms are online learning algorithms. Such an algorithm remains passive for a correct classification outcome, and turns aggressive in the event of a miscalculation, updating and adjusting. Unlike most other algorithms, it does not converge. Its purpose is to make updates that correct the loss, causing very little change in the norm of the weight vector.</p><p>Let’s get started.</p><p>First import all the necessary libraries.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/433a7f72e3bb5c2b03f3d717a4e22dd1/href">https://medium.com/media/433a7f72e3bb5c2b03f3d717a4e22dd1/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*BBdBauZcbUYDmbNjPhxkjw.png" /><figcaption>Loading the data-set and analyzing the distribution of predicting label</figcaption></figure><p>Now that the data-set is loaded, next we’ll split it into test and train sets.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fe80e02d7afb2e8141baaa080de81538/href">https://medium.com/media/fe80e02d7afb2e8141baaa080de81538/href</a></iframe><p>The mathematical models understand just numbers. So, we’ll use TFIDF vectorizer for converting the train and test sets into an interpretable form for the model.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb32d2f4ff9ce3680580403d0ea8a2a4/href">https://medium.com/media/bb32d2f4ff9ce3680580403d0ea8a2a4/href</a></iframe><p>Now we have everything in place. We’ll now be building the Passive Aggressive classifier and using accuracy_score metric from sklearn for evaluating on the data-set.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c4b456d845d7e4622158589464b13d61/href">https://medium.com/media/c4b456d845d7e4622158589464b13d61/href</a></iframe><p>An accuracy of 92.58% is achieved on the test set Next we’ll evaluate the results using confusion matrix and compute the F1 -score.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/63c4a00d0a8b0f59adb44c8cf7c8a745/href">https://medium.com/media/63c4a00d0a8b0f59adb44c8cf7c8a745/href</a></iframe><p>Here the F1 score is : <strong>0.9283.</strong></p><p>Here is a compilation of various metrics which help us evaluate the performance of the classifier quantitatively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I41rwuhcqQOYQEOXA7vcyg.png" /><figcaption>Various metrics used to evaluate the performance of PAssive agressive classifier</figcaption></figure><p>The complete code with Jupyter notebook can be found in my <a href="https://github.com/laishawadhwa/Fake-News-Detector">GitHub repository</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a571745f73dd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/detecting-fake-political-news-online-a571745f73dd">Detecting Fake Political News Online</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>