<?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 Meron Abate on Medium]]></title>
        <description><![CDATA[Stories by Meron Abate on Medium]]></description>
        <link>https://medium.com/@meriab1234?source=rss-690b8f4eff78------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eyvvksZNFFmGei0RJYun6g.jpeg</url>
            <title>Stories by Meron Abate on Medium</title>
            <link>https://medium.com/@meriab1234?source=rss-690b8f4eff78------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:57:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@meriab1234/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[Lean Project Management]]></title>
            <link>https://medium.com/@meriab1234/lean-project-management-f5497c6e177e?source=rss-690b8f4eff78------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5497c6e177e</guid>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Meron Abate]]></dc:creator>
            <pubDate>Sat, 08 Apr 2023 20:27:15 GMT</pubDate>
            <atom:updated>2023-04-09T17:19:57.948Z</atom:updated>
            <content:encoded><![CDATA[<p>What is a lean model, and how can it help your business?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l4GcHIxFQUaLC3jtHfcNJg.png" /></figure><p>Lean project management is an application of the lean product development process that mainly focuses on building products with less waste. It improves upon the rational product development process by eliminating excess from your project management processes down to the essentials.</p><h4><strong>What does Lean mean exactly?</strong></h4><blockquote>lean means to provide what is needed when it is needed with the minimum amount of material, equipment, labor, and space. Reducing wastage and trimming the excess is important in the project management process and lean project manaegment focus on doing just that.</blockquote><p>Sounds Great! Right? <br>Lean identifies three kinds of waste that adopters should be mindful of.</p><h4><strong>The Three M’s of Lean</strong></h4><p><strong>Muda: </strong>Activities that consume resources without providing value.</p><p><strong>Muri</strong>: Overuse of equipment and employees</p><p><strong>Mura</strong>: Overburden and burnout from tools or people being overused.</p><p>The goal of the Lean project model is, to cut out these types of wastage as much as possible.</p><h3>History</h3><p>The concept of lean originated in manufacturing its principles were first developed in the 1950s by the car manufacturer, Toyota which recognized that with a few simple innovations, they could provide efficiency and continuity in their manufacturing process. The word ‘Lean’ was coined by MIT International Motor Vehicle Program.</p><h4>The five principles of lean project management</h4><h4><strong>1. Specify &amp; deliver value to the customer</strong></h4><p>The customer should always be front in mind when managing a project. Your team should know what your consumers what and how they can get it.</p><p>You need to ask:</p><blockquote>What do your customers want and how can you provide it?</blockquote><h4><strong>2. Map the value stream</strong></h4><blockquote>Visualize the project from start to finish</blockquote><p>Stream of value map is a way of visualizing the entire project process from start to finish. Then the visualization can be analyzed for waste like unnecessary activities or addition that don’t add value to customers.</p><h4><strong>3. Create a flow</strong></h4><blockquote>For a better flow improve your process</blockquote><p>After having removed the waste from your value stream it’s important to ensure that the remaining project process runs smoothly. Improving and reconfiguring your project process with an improvement plan can ensure that the project’s future is a success.</p><h4><strong>4. Establish pull</strong></h4><blockquote>Product made for the customer</blockquote><p>lean project management aims to move the project forward or create it, when requested by the customer. This leads to less inventory wastage and smooth flow between process stages.</p><h4><strong>5. Pursue perfection</strong></h4><blockquote>Continuous improvement towards a perfect process</blockquote><p>The ultimate goal is to analyze what is working and what is not for the project and adjust accordingly.</p><h4><strong>Advantages of lean project management</strong></h4><ul><li>Eliminates waste</li><li>Reduced costs</li><li>Worker satisfaction</li><li>Improved efficiency</li><li>Higher customer satisfaction</li></ul><h4><strong>Disadvantages of lean project management</strong></h4><ul><li>Lack of time</li><li>Cutting things too fine</li><li>A lack of strategy</li><li>Potential for low-quality results</li></ul><p><a href="https://leanfactories.com/lean-project-management-tools/">Here</a> are more insights into lean project management and tools for it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5497c6e177e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Looker?]]></title>
            <link>https://medium.com/@meriab1234/what-is-looker-74cf8090c434?source=rss-690b8f4eff78------2</link>
            <guid isPermaLink="false">https://medium.com/p/74cf8090c434</guid>
            <dc:creator><![CDATA[Meron Abate]]></dc:creator>
            <pubDate>Tue, 11 Oct 2022 17:13:56 GMT</pubDate>
            <atom:updated>2023-03-18T19:02:10.359Z</atom:updated>
            <content:encoded><![CDATA[<p>Cloud-based BI platform</p><p>In this post, I will be introducing what Looker is and show you how I learned to use it by getting quick access to the platform with minimum hassle. For those that are not familiar with BI(Business intelligence), it uses past and current data to inform current decisions for the current success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*BxdKu07aIwkPDAzv.png" /></figure><p><strong>Looker</strong> is a cloud-based BI(Business Intelligence) platform designed to explore, share, and analyze data. It helps to capture, visualize, and analyze data from different sources in making data-driven decisions. It is the platform on which both data analysts and business teams can rely for exploring and building strategies for the improvement of businesses or an enterprise.</p><blockquote><strong>Looks</strong> are the shared visualization that can be created in explore selection by business users. These looks can be shared and reused in multiple other dashboards.</blockquote><blockquote><strong>Dashboard</strong> allows you to place multiple tables or graphs or looks on the page so you can get a quick view of related contents.</blockquote><blockquote><strong>Dimension fields </strong>correspond to columns in your database table or are computed values based on other dimensions.</blockquote><blockquote><strong>Measure fields</strong> are used to aggregate values for multiple rows. For example COUNT, SUM, SUM, … etc.</blockquote><h3>What is Data Modeling?</h3><blockquote>The data model describes the entire enterprise from a data point of view. It is a representation of the data objects in Cloud Data Warehouses(CDW), the associations between the objects, and the rules in place. The data model provides instruction for understanding relational and non-relational data flowing through the environment. So data modeling is the heart and one needs to get through that to get data. It helps us shape the data we already have towards making better decisions.</blockquote><p>Looker is based on a data modeling language known as <strong>LookML. </strong>It is used for abstracting SQL business logic &amp; describing dimensions, aggregates, calculations, and data relationships in a SQL database. LookML project is a collection of Models, Views, and dashboards that are typically version-controlled together via a Git repository. It separates query structure or how tables are joined from query contents making them independent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pE4ILOiWrPHT3kx4.png" /></figure><p>Creating a New LookML project is something that will stick with us and co-workers can build business logic and collaborate on it. It is going to be version controlled and serve as a single source of truth for end-users.</p><h3>Features of Looker</h3><ul><li>Reusability</li><li>Iterate Cycles fast</li><li>Easy to make change</li><li>Light Architecture</li><li>Modularity</li><li>Inter Connectedness</li><li>single source of truth</li><li>generates SQL queries</li><li>Shared learning</li><li>Advanced Learning</li></ul><h4>Looker goes beyond BI:</h4><p><strong>Modern BI and analytics</strong>: Everyone in the enterprise gets easy access to trustworthy data. Helps them make better data-driven decisions</p><p><strong>Integrated Insights</strong>: Embedded data is infused into existing workflows and tools. That brings data directly to the user.</p><p><strong>Data-Driven workflows</strong>: save time and money by automating business processes. Put data to work in every part of your business.</p><p><strong>Custom Applications</strong>: Build fully bespoke data experiences, making them more effective and efficient. Use looker as the API for all your data.</p><p>Check out the links below to learn more.</p><blockquote>A simple way to get on Looker to start exploring and making insightful visualization using the database already provided there check this g<a href="https://www.cloudskillsboost.google/">oogle cloud skills boost site</a>. It has 1-hour lab session that gives you login access to looker and step by step guide. Make sure to hope on the <em>Exploring Data with looker quest.</em></blockquote><p>Also to sign up and learn from looker sign up here: <a href="https://connect.looker.com/">https://connect.looker.com</a></p><h3>References</h3><ul><li><a href="https://hkrtrainings.com/looker-tutorial">Looker Tutorial - A Complete Guide on Introduction to Looker</a></li><li><a href="https://cloud.google.com/looker/docs/steps-to-learning-lookml">Steps to learning LookML | Looker | Google Cloud</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Ffbgva493gb8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dfbgva493gb8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Ffbgva493gb8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c48d6ddce0eb8484f0f990f3b6505cd/href">https://medium.com/media/4c48d6ddce0eb8484f0f990f3b6505cd/href</a></iframe><p><a href="https://www.cloudskillsboost.google/">Google Cloud Skills Boost lab</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74cf8090c434" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building ELT pipeline using DBT, Airflow, and PostgreSQL]]></title>
            <link>https://medium.com/@meriab1234/building-elt-pipeline-using-dbt-airflow-and-postgresql-2f06281c7716?source=rss-690b8f4eff78------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f06281c7716</guid>
            <dc:creator><![CDATA[Meron Abate]]></dc:creator>
            <pubDate>Mon, 25 Jul 2022 23:02:10 GMT</pubDate>
            <atom:updated>2022-08-01T07:48:23.396Z</atom:updated>
            <content:encoded><![CDATA[<p>Using Traffic Flow data from <a href="https://open-traffic.epfl.ch/index.php/downloads/#1599047632450-ebe509c8-1330">pNEUMA | open traffic</a></p><h3>Business Need</h3><p>In this project, in order to help a city traffic department, collect traffic data using swarm UAVs (drones) from a number of locations in the city and use the data collected for improving traffic flow in the city and for a number of other undisclosed projects we will be building a scalable data warehouse to host the vehicle trajectory data extracted by analyzing footage taken by swarm drones and static roadside cameras. The data warehouse should take into account future needs, and organize data such that a number of downstream projects query the data efficiently. We will be using Extract Load Transform (ELT) framework using DBT.</p><h4>What is a Data warehouse?</h4><blockquote>It is a database that has all your company’s historical data and it is used to run analytical queries.</blockquote><h4>What is ELT?</h4><blockquote>ELT stands for Extraction Loading and Transformation. It is a data integration process for transferring raw data from a source server to a data system (such as a data warehouse or data lake) on a target server and then preparing the information for downstream uses. It&#39;s an alternative to the ETL(Extraction, Transformation, and loading), that leverages the data warehouse to do basic transformation. Unlike ETL, there is no need for moving data in a temporary staging area. Transformation is applied after the data has been moved.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e33d2qsI15lKO5a--O8Ocg.png" /><figcaption>ELT Pipeline</figcaption></figure><h3>Data</h3><p>The data in <a href="https://open-traffic.epfl.ch/index.php/downloads/#1599047632450-ebe509c8-1330">Downloads — pNEUMA | open-traffic (epfl.ch)</a> has a pNEUMA data: pNEUMA is an open large-scale dataset of naturalistic trajectories of half a million vehicles that have been collected by a one-of-a-kind experiment by a swarm of drones in the congested downtown area of Athens, Greece. Each file for a single (area, date, time) is ~87MB data.</p><p><em>Initially, the data looks like this</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*u25_cgy5Nny39Zx5YgtlDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lSkhI86mYroJwBKAsfNx_Q.png" /></figure><h3>Tech Stack Used</h3><ul><li><strong>Docker</strong>: is an open-source platform for building, deploying, and managing containerized applications</li><li><strong>Airflow</strong>: is a tool used for scheduling workflow. It manages workflows(tasks) by DAG(directed acyclic graph) which describes how to run the workflow.</li><li><strong>DBT(Data built tool)</strong>: is a data transformation tool that enables data analysts and engineers to transform, test, and document data in the cloud data warehouse.</li><li><strong>PostgreSQL</strong>: is a free and open-source relational database management system emphasizing extensibility and SQL compliance.</li><li><strong>Redash: </strong>is an open-source application that is used to connect and query your data sources, build dashboards to visualize data, and share them with your company.</li></ul><h3><strong>Method Used</strong></h3><p><strong>Step one: </strong>First Airflow will consume the data from a CSV file and load it to a Postgres database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f8BwxVNxpbxTmzOBDxjIcw.png" /></figure><p><strong>Step two: </strong>dbt will take the data stored from the database for transformation scheduled by Airflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dlx10EpJCPOmHsoWbrlS4Q.png" /></figure><p><strong>Step three:</strong> after successful transformation of the data it is then loaded back into the Postgres database</p><p><strong>Step Four</strong><em>: </em>in order to be queried and used up by Redash for dashboarding and visualization purposes.</p><h4>Reference</h4><p><a href="https://www.analyticsvidhya.com/blog/2021/06/how-to-build-a-data-warehouse-using-postgresql-in-python/">Data Warehouse Using PostgreSQL in Python for Data Scientists</a></p><p><a href="https://www.youtube.com/playlist?list=PLy4OcwImJzBLJzLYxpxaPUmCWp8j1esvT">https://www.youtube.com/playlist?list=PLy4OcwImJzBLJzLYxpxaPUmCWp8j1esvT</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f06281c7716" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dapp with Refund by location smart contracts]]></title>
            <link>https://medium.com/@meriab1234/dapp-with-refund-by-location-smart-contracts-5d25ce2b4bbb?source=rss-690b8f4eff78------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d25ce2b4bbb</guid>
            <dc:creator><![CDATA[Meron Abate]]></dc:creator>
            <pubDate>Sat, 16 Jul 2022 18:46:03 GMT</pubDate>
            <atom:updated>2022-07-16T20:32:27.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*8C_o-HXh9JfZKzdYzBPF-A.jpeg" /></figure><h3>Business Need</h3><p>This project aims at building an Ethereum-based dApp that has both the smart contract tested and deployed in a testnet and a front end that will allow monitoring of the status.</p><p>The refund by location smart contract is aimed to be used when one party, for instance, an employer, agrees to pay another party, let&#39;s say an employee, for being present in a certain geographic area for a certain duration. The employee’s phone sends its GPS location to a smart contract at a certain interval. Based on the pre-agreed contract codified in an Ethereum smart contract, a cryptocurrency payment is executed when all the agreed conditions are met.</p><p>If at any point, the GPS sensor indicates that an employee is outside the range of the agreed GPS area, the contract state will be updated to indicate that it is out of compliance.</p><p>The frontend of a DApp is built very similarly to a traditional web application (using a mix of HTML, CSS &amp; JavaScript), but instead of interacting with a database via an API, you’re interacting directly with the blockchain via a smart contract (a program written to execute a set of instructions). In order to be fully decentralized, DApps are also often hosted on peer-to-peer (P2P) networks instead of centralized hosting servers.</p><p><strong>Traditional web application:</strong> Client → API → Database<br><strong>Decentralized application:</strong> Client → Smart Contract → Blockchain</p><h3>Setting Up Environment</h3><p>First, we will need to create a React project using create-react-app and create our project. For this node.js need to be installed on our machine. For the purpose of communication with the blockchain, javascript libraries are needed. Two of the most widely-used Javascript libraries for this are <a href="https://web3js.readthedocs.io/">Web3.js</a> and <a href="https://docs.ethers.io/v5/">Ethers.js</a>.</p><p>The blockchain is made up of many nodes, each of which stores a copy of the data on the blockchain. To read or write any of this data, my application needed to be able to communicate with one of these nodes. These libraries provide developers with access to various modules (with methods and properties) for interacting with a local or remote Ethereum node. For example:</p><p>ethers.Wallet is used to connect to an Ethereum wallet.<br>ethers.Contractis used to interact with a smart contract on the Ethereum blockchain.</p><p>Also for the implementation of this project crypto wallet, that acts as a gateway to the Dapp is needed. In traditional web applications, users are prompted to sign in using an email address and a password. However, DApps need to be given permission to access a user’s wallet in order to enable certain functionality. I installed <a href="https://metamask.io/">Metamask</a> which is one of the most popular wallet solutions and is accessible via a <a href="https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn">Chrome extension</a> or a mobile app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*CasXzElOobYHhM1VwaWS6w.png" /><figcaption>MetaMask</figcaption></figure><h3>Creating Smart Contracts</h3><p>Contracts in Solidity are similar to classes in object-oriented languages. They contain persistent data in state variables and functions that can modify these variables. Calling a function on a different contract (instance) will perform an EVM function call and thus switch the context such that state variables in the calling contract are inaccessible. A contract and its functions need to be called for anything to happen. And Solidity is basically an object-oriented programming language for implementing smart contracts.</p><p>Connecting to a smart contract requires you to have:</p><ul><li>The contract address</li><li>The contract ABI</li><li>A provider and/or a signer</li></ul><p>The contract address is the address of the contract on the blockchain. The ABI (Application Binary Interface) is a file that contains a breakdown of each function in the contract along with its input parameters (if any), expected output, and data types, in JSON format.</p><p>Providers and signers are essential parts of a DApp. A smart contract can consist of both read and write functions. To read data from a smart contract, you require a provider. To write data (i.e. perform transactions that will change the state of the data on the blockchain), you require a signer. To do both, you require a signer that has a provider.</p><p>For this project, I have used the Dapp framework for building Dapp known as Hardhat.</p><blockquote>Hardhat is a framework for building smart contracts that offers a development environment for professionals. This development environment lets users compile, run tests, check smart contracts for mistakes or debugging, and deploy decentralized applications.</blockquote><p>To install HardHat be sure to have Node.js on the machine and use the command below to install it.</p><pre>$ npm install -D hardhat</pre><p>If installed properly, execute Hardhat with this command:</p><pre>$ npx hardhat </pre><pre>888    888                      888 888               888<br>888    888                      888 888               888<br>888    888                      888 888               888<br>8888888888  8888b.  888d888 .d88888 88888b.   8888b.  888888<br>888    888     &quot;88b 888P&quot;  d88&quot; 888 888 &quot;88b     &quot;88b 888<br>888    888 .d888888 888    888  888 888  888 .d888888 888<br>888    888 888  888 888    Y88b 888 888  888 888  888 Y88b.<br>888    888 &quot;Y888888 888     &quot;Y88888 888  888 &quot;Y888888  &quot;Y888</pre><pre>Welcome to Hardhat v2.0.8</pre><pre>? What do you want to do? …<br>❯ Create a sample project<br>  Create an empty hardhat.config.js<br>  Quit</pre><p>After initializing the hardhat its time to create the smart contract using solidity. Start by creating a file(.sol) and write the code like below:</p><p><em>Refund.sol</em></p><pre>// SPDX-License-Identifier: GPL-3.0</pre><pre>pragma solidity ^0.8.0;</pre><pre>import &quot;hardhat/console.sol&quot;;</pre><pre>contract RefundByLocation {</pre><pre>//    enum StateType { Created, Completed, OutOfCompliance }</pre><pre>struct Coordinate {</pre><pre>uint256 lat;</pre><pre>uint256 long;</pre><pre>}</pre><pre>//    StateType public State;</pre><pre>address public Owner;</pre><pre>uint256 public Radius;</pre><pre>Coordinate public OfficeLocation;</pre><pre>int private LastLocationUpdateTimestamp;</pre><pre>struct EmployeeLocationInfo {</pre><pre>mapping (uint256 =&gt; Coordinate) LocationAtTimeStamp;</pre><pre>}</pre><pre>mapping (address =&gt; EmployeeLocationInfo) EmployeeLocationInfos;</pre><pre>// function() public payable {}</pre><pre>constructor(address owner,uint256 officeLocationLat, uint256 officeLocationLong ,uint256 radius) {</pre><pre>Owner = owner;</pre><pre>OfficeLocation = Coordinate({lat: officeLocationLat, long: officeLocationLong });</pre><pre>Radius = radius;</pre><pre>}</pre><pre>function getEmployeeLocationInfor(address employeeAdd, uint256 timeStamp) public view {</pre><pre>EmployeeLocationInfo storage employeeLocation = EmployeeLocationInfos[employeeAdd];</pre><pre>console.log(&quot;over here lat&quot;, employeeLocation.LocationAtTimeStamp[timeStamp].lat);</pre><pre>console.log(&quot;over here long&quot;, employeeLocation.LocationAtTimeStamp[timeStamp].long);</pre><pre>// return employeeLocation[timeStamp];</pre><pre>}</pre><pre>// check if the location of the employee is in range</pre><pre>function isUserLocationInRange(Coordinate memory employeeLocation) private {}</pre><pre>// report the location of the employee</pre><pre>function reportLocation(uint256 employeeLocationCoordinateLat, uint256 employeeLocationCoordinateLong , uint256 timeStamp) public {</pre><pre>EmployeeLocationInfo storage employeeLocationInfo = EmployeeLocationInfos[msg.sender];</pre><pre>employeeLocationInfo.LocationAtTimeStamp[timeStamp] = Coordinate({lat: employeeLocationCoordinateLat, long: employeeLocationCoordinateLong });</pre><pre>// EmployeeLocationInfos[msg.sender] = employeeLocationInfo;</pre><pre>}</pre><pre>}</pre><p>After that compile it using this comm:</p><pre>npx hardhat compile</pre><p>And then set up local blockchain using node:</p><pre>npx hardhat node</pre><p>Which will return this and give you accounts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YRI65iSnO0alpeu2DKMGQg.png" /></figure><h4>References</h4><ul><li><a href="https://blog.logrocket.com/top-5-decentralized-app-development-frameworks/">Top 5 decentralized app development frameworks - LogRocket Blog</a></li><li><a href="https://hardhat.org/hardhat-runner/docs/getting-started">Getting started with Hardhat | Ethereum development environment for professionals by Nomic Foundation</a></li></ul><p><a href="https://medium.com/ethereum-developers/the-ultimate-end-to-end-tutorial-to-create-and-deploy-a-fully-descentralized-dapp-in-ethereum-18f0cf6d7e0e">https://medium.com/ethereum-developers/the-ultimate-end-to-end-tutorial-to-create-and-deploy-a-fully-descentralized-dapp-in-ethereum-18f0cf6d7e0e</a></p><p><a href="http://blockchain/readme.md">http://blockchain/readme.md</a> at master · Azure-Samples/blockchain (github.com)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d25ce2b4bbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speech-to-text data collection and processing pipeline with Kafka, Airflow, and Spark]]></title>
            <link>https://medium.com/@meriab1234/speech-to-text-data-collection-and-processing-pipeline-with-kafka-airflow-and-spark-102c1277bb4e?source=rss-690b8f4eff78------2</link>
            <guid isPermaLink="false">https://medium.com/p/102c1277bb4e</guid>
            <dc:creator><![CDATA[Meron Abate]]></dc:creator>
            <pubDate>Sat, 09 Jul 2022 20:51:32 GMT</pubDate>
            <atom:updated>2022-07-20T07:33:50.581Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>The objective</strong></h4><p>The project aims in designing and building a robust, large-scale, fault-tolerant, and available Kafka cluster that can be used to allow recording millions of Amharic and Swahili speakers reading digital texts in-app and on web platforms. By the end, we should be able to produce a tool that can be deployed to process posting and receiving text and audio files from and into a data lake, apply transformation in a distributed manner and load it into a warehouse in a suitable format to train a speech-to-text model.</p><h4><strong>The approach used: Event-Driven Approach</strong></h4><p>For the project is to create our pipeline which is where we send data from our source to a target as data happens in real-time as streams of events(data). This approach of creating and using a pipeline will help us get more accurate and more up to data in the target system. Also, we only have to wait until data is propagated through the pipeline and get to react to data as it changes. Additionally, this enables you to get more economical use of computing and storage resources.</p><p>In regards to Kafka streaming data, the pipeline is a means of ingesting the data from some source system into Kafka as the data is created. And then streaming that data from Kafka to one or more target systems. Because Kafka is a distributed system it is quite scalable and resilient and serves as a distributed log(data storage system) here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CJwcJIZGANr41wK7" /><figcaption>Pipeline</figcaption></figure><h4><strong>The technologies and tools used to build the data capture pipeline</strong></h4><ol><li><strong>Kafka: is a distributed</strong> streaming(continuous flow of data or instructions) platform. It’s used as a transportation mechanism to move data real fast in scale. It addresses the complexity issue and increased load when having many source systems and target systems exchanging data. Kafka has high-performance meaning latency of less than 10 ms and high throughput as well.</li></ol><ul><li><em>It provides abstractions to deal with streams of events in a reliable, fault-tolerant manner.</em></li><li><em>Kafka gives real-time insights to users</em></li><li><em>Storage capability.</em></li><li><em>Uses log data structure architecture(appends — not deleted or updated)</em></li><li><em>Apache Kafka allows you to decouple your data stream &amp; systems</em></li><li><em>Source system- contains data in Kafka</em></li><li><em>Target system — sources data from Kafka</em></li></ul><p>Kafka provides two APIs</p><ul><li><em>Producer API- used to publish events to topics</em></li><li><em>Consumer API — used to subscribe to topics and process their messages on the fly.</em></li></ul><p><strong>2. Apache Airflow</strong>: is an open-source scheduler to manage your regular jobs. It is an excellent tool to organize, execute, and monitor your workflows so that they work seamlessly.</p><blockquote><strong>DAGs (Directed Acyclic Graphs)</strong> represent a workflow in Airflow. Each node in a DAG represents a task that needs to be run. The user mentions the frequency at which a particular DAG needs to be run. The user can also specify the trigger rule for each task in a DAG. e.g., You may want to trigger an alert task right after one of the previous tasks fails.</blockquote><blockquote><strong>So, why use Airflow?</strong></blockquote><p>Since it is used as a scheduler of the data pipeline:</p><ul><li><em>For monitoring</em></li><li><em>In case we want to see the status of a task from UI.</em></li><li><em>It sends an email in case a DAG fails.</em></li><li><em>We can also view the logs for a task from Airflow UI</em></li><li><em>Lineage</em></li><li><em>allows us to track the origins of data, what happens to it, and where it moves over time, such as Hive table or S3/HDFS partition.</em></li><li><em>To define the input and output data sources for each task. A graph is created in Apache Atlas, depicting the relationship between various data sources.</em></li></ul><p><strong>3. Spark</strong>: is a general-purpose distributed data processing engine. Apache Spark is a lightning-fast cluster computing designed for fast computation. We will incorporate Spark into our application to rapidly query, analyze, and transform data at scale. <a href="https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html">Spark Structured Streaming</a> makes it easy to build streaming applications and pipelines with the same and familiar Spark APIs.</p><p>The main feature of Spark is: In-memory cluster computing increases the processing speed of an application.</p><p>Spark use case:</p><ol><li><em>Stream processing- The streams of data can be processed in real-time</em></li><li><em>Interactive query process that is speed efficient</em></li><li><em>Data Integration- used to reduce the cost and time required for this ETL process</em></li></ol><p>Spark also provides a Python API. To run Spark interactively in a Python interpreter, use bin/pyspark:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/0*h5Md4eOEik_mUzW8" /></figure><p><strong>4. S3 Bucket</strong>: Amazon Simple Storage Service (Amazon S3) is a scalable, high-speed, web-based cloud storage service. The service is designed for online backup and archiving of data and applications on Amazon Web Services (AWS). A bucket is a container for objects stored in Amazon S3. You can store any number of objects in a bucket and can have up to 100 buckets in your account.</p><h4>Data</h4><p>can use the recently released Amharic news text classification dataset with baseline performance dataset: <a href="https://github.com/IsraelAbebe/An-Amharic-News-Text-classification-Dataset">IsraelAbebe/An-Amharic-News-Text-classification-Dataset: An Amharic News Text classification Dataset (github.com)</a></p><p>You can read a brief description of the data <a href="https://arxiv.org/pdf/2103.05639.pdf">here</a>.</p><p>Data Loading:</p><p>Initially the dataset contains 6 columns and 51,483 rows as described below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Suao3xSZUtzUXpyM" /><figcaption>Initial datsset</figcaption></figure><p>Dataset with the main article: The <strong>article </strong>column is used for the project and the picture belew shows a sample content of the articles collected with different headlines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/0*MeyXtVLsRoV5W66q" /></figure><p><strong>Sample text within a single headline before transformation</strong></p><p><em>As we get in to the detail of the texts in the article column we get a bulk of sentences with in a single cell. And we can’t use these texts for a user to record its audio. The picture below shows the bulky of textes stored with in a single headline.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FIQe-bhGiz3Q_6KG" /></figure><p><em>So, because we don’t assume that a user will have a large buffer to store a record of larger text and bandwidth to send them to the storage, we’ve split those texts and saved them separately so that a user can record and send a single sentence or text.</em></p><p><strong>Sample text after splitting with specific character</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nHpZn9FSrtQjKtgP" /></figure><p><em>After we split all of the texts on the article column we assign an ID and store them in our bucket as .csv. So once a signal is coming for a record texts can be sent to the user interface with their ID and will be moved to another DB to avoid multiple recordings of a single text. The picture belows shows our transformed text corpus list.</em></p><p><strong>Our final data frame after transformation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/0*vW9EIB-EV1OMN4On" /></figure><h4>What were able to implement</h4><p>Frontend: a react application that provides the following functionalities</p><p><em>The interface for users to interact with :</em></p><ul><li><em>to load amharic texts from kafka cluster through a flask backend</em></li><li><em>record audio, play it, and remove it or upload it.</em></li><li><em>to upload audio files to the flask backend.</em></li></ul><p><strong>Backend</strong></p><ul><li><em>Flask server that receives requests and data from react frontend and communicates with a kafka cluster</em></li><li><em>A kafka cluster and topic that store metadata for downstream as well as upstream requests.</em></li><li><em>Airflow DAGs to orchestrate both downstream and upstream communication between S3 bucket and kafka cluster</em></li><li>A spark script that performs preprocessing and validation on audio files</li></ul><h4>Lessons learned</h4><p>We were able to recognize the value of the tools in data engineering when working with large data sets for speech-to-text and exploring. The fact that there are many corpuses for both Amharic and Swahili languages, emphasizes that understanding these data engineering skills is valuable in building robust pipelines for our models.</p><p>We were able to experience working with Kafka, Airflow, Spark, and S3 bucket in building out the pipeline and finally deploying tools that will allow recording millions of Amharic and Swahili speakers reading digital texts in-app and web platforms.</p><p>Finally, we were able to learn how teamwork is important and not easy in accomplishing tasks. Divide and conquer is a good way to be working on a project and sharing the burden has helped us in getting more things done.</p><p>Future plans</p><ul><li>Using spark extensively to speed up backend processes.</li><li>Extending the kafka cluster with multiple brokers and partitions</li><li>Adding multiple ways of submitting audio data (example: Telegram bot)</li><li>Additional language support</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=102c1277bb4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AgriTech -USGS LIDAR]]></title>
            <link>https://medium.com/@meriab1234/agritech-usgs-lidar-1be630e8a9a2?source=rss-690b8f4eff78------2</link>
            <guid isPermaLink="false">https://medium.com/p/1be630e8a9a2</guid>
            <dc:creator><![CDATA[Meron Abate]]></dc:creator>
            <pubDate>Sat, 25 Jun 2022 21:21:42 GMT</pubDate>
            <atom:updated>2022-06-25T21:21:42.249Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.usgs.gov/core-science-systems/ngp/3dep"><strong>USGS 3DEP</strong></a> <a href="https://registry.opendata.aws/usgs-lidar/">public dataset on Amazon</a>.</p><p>Overview</p><p><strong>Light Detection and Ranging (</strong><a href="https://www.usgs.gov/news/earthword-lidar"><strong>lidar</strong></a><strong>) </strong>is a technology used to create</p><p>high-resolution models of ground elevation with a vertical accuracy of 10 centimeters (4 inches). Lidar equipment, which includes a laser scanner, a Global Positioning System (GPS), and an Inertial Navigation System (INS), is typically mounted on a small aircraft. The laser scanner transmits brief pulses of light to the ground surface. Those pulses are reflected or scattered back and their travel time is used to calculate the distance between the laser scanner and the ground. Not all lidar data are created equally. Different lidar data may have different attributes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*w15iGExOdllpBHwi" /></figure><p>Lidar data is initially collected as a “point cloud” of individual points reflected from everything on the surface, including structures and vegetation. To produce a “bare earth” Digital Elevation Model (DEM), structures and vegetation are stripped away.</p><p><strong>How are The Points Colored — Why is everything grey when the data are loaded?</strong></p><p>Notice that upon initial view, the data are colored in a black-white color scheme. These colors represent the data’s intensity values. Remember that the intensity value, for each LiDAR point, represents the amount of light energy reflected off of an object and returned to the sensor. In this case, darker colors represent LESS light energy returned. Lighter colors represent MORE light returned.</p><h4>USGS 3DEP LiDAR dataset</h4><p>The <a href="https://www.usgs.gov/core-science-systems/ngp/3dep">USGS 3D Elevation Program (3DEP)</a> in the form of <a href="https://en.wikipedia.org/wiki/Lidar">LiDAR</a> (Light Detection and Ranging) data. The program’s goal is to complete the acquisition of nationwide LiDAR to provide the first-ever national baseline of consistent high-resolution topographic elevation data, collected in a timeframe of less than a decade. LiDAR is a remote sensing method that emits hundreds of thousands of near-infrared light pulses each second to measure distances to the Earth. These light pulses generate precise, 3D information about the shape of the Earth and its surface characteristics.</p><p>The USGS 3DEP LiDAR is presented in two formats. The first is a public repository in <a href="https://entwine.io/entwine-point-tile.html">Entwine Point Tiles (EPT)</a> format, which is a lossless, full resolution, streamable octree structure. This format is suitable for online visualization. The following image shows an example of LiDAR visualization in Las Vegas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*LqA1CCvU0y1X4AuM" /></figure><p>A point cloud is a collection of data points defined by a given coordinates system. In a 3D coordinates system, for example, a point cloud may determine the shape of some real or created physical system.</p><p><strong>Business Need</strong></p><p>AgriTech is currently interested in how water flows through maize from the farm field. To help them improve their research on new agricultural products begins testing on farms.</p><blockquote>As part of the data engineering team at AfriTech, I am tasked to produce an easy-to-use, reliable, and well-designed python module that domain experts and data scientists can use to fetch, visualize and transform publicly available satellite and LIDAR data. In particular, the code should interface with<a href="https://www.usgs.gov/core-science-systems/ngp/3dep"> <strong>USGS 3DEP</strong></a> and fetch data using their API.</blockquote><p><strong>Implementation</strong></p><p>To fetch and load data first install all necessary libraries:</p><blockquote>PDAL | conda install -c conda-forge pdal -y</blockquote><blockquote>GEOPANDAS | conda install -c conda-forge geopandas</blockquote><blockquote>Creat environment | conda create -n iowa -y</blockquote><p>Write a pipeline that defines the processing of data within PDAL. They describe how point cloud data are read, processed, and written. PDAL internally constructs a pipeline to perform data translation operations using <a href="http://pdal.io/apps/translate.html#translate-command">translate</a>,</p><pre>{<br>    &quot;pipeline&quot;: [<br>        {<br>&quot;bounds&quot;: &quot;([-10425171.940, -10423171.940], [5164494.710, 5166494.710])&quot;,<br>&quot;filename&quot;: &quot;https://s3-us-west-2.amazonaws.com/usgs-lidar-public/IA_FullState/ept.json&quot;,<br>&quot;type&quot;: &quot;readers.ept&quot;,<br>&quot;tag&quot;: &quot;readdata&quot;<br>        },<br>        {<br>            &quot;limits&quot;: &quot;Classification![7:7]&quot;,<br>            &quot;type&quot;: &quot;filters.range&quot;,<br>            &quot;tag&quot;: &quot;nonoise&quot;<br>        },<br>        {<br>            &quot;assignment&quot;: &quot;Classification[:]=0&quot;,<br>            &quot;tag&quot;: &quot;wipeclasses&quot;,<br>            &quot;type&quot;: &quot;filters.assign&quot;<br>        },<br>        {<br>            &quot;out_srs&quot;: &quot;EPSG:26915&quot;,<br>            &quot;tag&quot;: &quot;reprojectUTM&quot;,<br>            &quot;type&quot;: &quot;filters.reprojection&quot;<br>        },<br>        {<br>            &quot;tag&quot;: &quot;groundify&quot;,<br>            &quot;type&quot;: &quot;filters.smrf&quot;<br>        },<br>        {<br>            &quot;limits&quot;: &quot;Classification[2:2]&quot;,<br>            &quot;type&quot;: &quot;filters.range&quot;,<br>            &quot;tag&quot;: &quot;classify&quot;<br>        },<br>        {<br>            &quot;filename&quot;: &quot;iowa.laz&quot;,<br>            &quot;inputs&quot;: [ &quot;classify&quot; ],<br>            &quot;tag&quot;: &quot;writerslas&quot;,<br>            &quot;type&quot;: &quot;writers.las&quot;<br>        },<br>        {<br>            &quot;filename&quot;: &quot;iowa.tif&quot;,<br>            &quot;gdalopts&quot;: &quot;tiled=yes,     compress=deflate&quot;,<br>            &quot;inputs&quot;: [ &quot;writerslas&quot; ],<br>            &quot;nodata&quot;: -9999,<br>            &quot;output_type&quot;: &quot;idw&quot;,<br>            &quot;resolution&quot;: 1,<br>            &quot;type&quot;: &quot;writers.gdal&quot;,<br>            &quot;window_size&quot;: 6<br>        }<br>    ]<br>}</pre><p>Create a Jupiter file and start by importing the necessary libraries :</p><blockquote>import pdal</blockquote><blockquote>import pandas as pd</blockquote><blockquote>import json</blockquote><blockquote>import geopandas as gpd</blockquote><blockquote>import pandas as pd</blockquote><blockquote>from shapely.geometry import Polygon, Point, mapping</blockquote><blockquote>import numpy as np</blockquote><blockquote>from pyproj import Proj, transform</blockquote><blockquote>import folium</blockquote><blockquote>import laspy as lp</blockquote><blockquote>import richdem as rd</blockquote><blockquote>import rasterio</blockquote><blockquote>import matplotlib.pyplot as plt</blockquote><blockquote>from mpl_toolkits import mplot3d</blockquote><blockquote>import sys</blockquote><blockquote>import warnings</blockquote><blockquote>import matplotlib.pyplot as plt</blockquote><blockquote>warnings.filterwarnings(“ignore”)</blockquote><p>Create a function to read our JSON file and other functions :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sFGkQwsGWe4qpE9MjS4SYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dzDQKX00VCRtKftDujHA_Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K_-NUFd-1DvzO-rVrt8mPQ.png" /></figure><p>References</p><p><a href="http://pdal.io/tutorial/iowa-entwine.html">Reading data from EPT - pdal.io</a></p><p><a href="https://aws.amazon.com/blogs/machine-learning/extracting-buildings-and-roads-from-aws-open-data-using-amazon-sagemaker/">Extracting buildings and roads from AWS Open Data using Amazon SageMaker | AWS Machine Learning Blog</a></p><p><a href="https://www.earthdatascience.org/courses/use-data-open-source-python/intro-vector-data-python/spatial-data-vector-shapefiles/intro-to-coordinate-reference-systems-python/">https://www.earthdatascience.org/courses/use-data-open-source-python/intro-vector-data-python/spatial-data-vector-shapefiles/intro-to-coordinate-reference-systems-python/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1be630e8a9a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[End-to-End Web3 dApps]]></title>
            <link>https://medium.com/@meriab1234/end-to-end-web3-dapps-1dac74455d45?source=rss-690b8f4eff78------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dac74455d45</guid>
            <dc:creator><![CDATA[Meron Abate]]></dc:creator>
            <pubDate>Sat, 18 Jun 2022 21:24:26 GMT</pubDate>
            <atom:updated>2022-06-19T17:40:18.362Z</atom:updated>
            <content:encoded><![CDATA[<h3>Certificate generation, distribution, and value transfer with Algorand NFTs and smart contracts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H7A_R9AXj1zvsbf5oIq7mA.jpeg" /></figure><h4>Business objective</h4><p>In this project, the client is 10 Academy; the client would like to solve the challenge of ensuring that certificates are available to all trainees in a secure way, and (if possible) that certificate holders can benefit from smart contract actions now and in the future. At present, certificates are distributed as simple PDF files, without the ability to verify their authenticity nor can 10 Academy undertake smart actions with the trainees/their contracts. We will be building end-to-end Web3 dapps on the Algorand Blockchain that will help 10 Academy generate and distribute Non-Fungible Tokens (NFTs) as certificates that will represent the successful completion of a weekly challenge to trainees, and allow trainees with NFTs to interact with a smart contract to perform pre-defined actions.</p><h4>Algorand blockchain</h4><p>Algorand is an open-source, decentralized blockchain network that leverages a two-tiered structure and a unique variation of the Proof-of-Stake (PoS) consensus mechanism to increase transaction speeds and achieve finality.</p><p>Algorand’s native currency is Algo, which acts as a utility token used to pay transaction fees and to serve as minimum balance deposits if you want to store data on the blockchain. Fees are calculated based on the size of the transaction and a user can choose to augment a fee to help prioritize acceptance into a block when network traffic is high and blocks are consistently full. There is no concept of gas fees on Algorand.<br>The minimum fee for a transaction is only 1,000 microAlgos or .001 Algos.</p><blockquote>As of June 17, 2022 <strong>price</strong> of <strong>Algorand</strong> is $0.33565 per (ALGO / USD). <strong>Algorand</strong> is 89.77% below the all-time high of $3.28.</blockquote><blockquote>Algorand has become the official blockchain of FIFA</blockquote><h4>The technology used</h4><p>For the front-end implementation react has been chosen in this project and python language has been used extensively.</p><h4>Implementation</h4><p>I have created accounts on algorand using the sandbox. I have tried building, funding transactions and exploring the transaction on Algo explorer</p><h4>Lesson Learned</h4><p>The lesson I learned in this project is how web3 works and can be used in real-world applications for the better. Some of the points I was able to grasp are:</p><ul><li>What makes the web3 different than the web2</li><li>What makes the web3 better than web2</li><li>What is this big ledger in the blockchain everyone has a copy of</li><li>What is blockchain and what is this block exactly work</li><li>What is NFT, FT ..etc</li><li>what is Algorand and how does it work</li><li>what are smart contracts</li><li>what other blockchain technologies are out there</li><li>What makes Algorand better than other blockchain technologies</li></ul><h4>Future plan</h4><p>I intend to fully finish this project by creating the NFT certificates and having a complete front-end and back-end implementation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dac74455d45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Speech Recognition For African Language]]></title>
            <link>https://medium.com/@meriab1234/speech-recognition-for-african-language-8d2b70e50337?source=rss-690b8f4eff78------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d2b70e50337</guid>
            <dc:creator><![CDATA[Meron Abate]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 20:28:46 GMT</pubDate>
            <atom:updated>2022-06-09T20:28:46.558Z</atom:updated>
            <content:encoded><![CDATA[<p>Amharic Language | Speech-to-text</p><h4>Abstract</h4><p>This project aims to transform Amharic spoken audios into a text format. The report will be including all the steps taken to achieve that and generate a model for that sole purpose. We’ll also, construct sample transcriptions on a training set of audio files after the model is created.</p><h4>Business Objective</h4><p>The World Food Program ought to use an intelligent form to collect nutritional information on food bought and sold at markets in two different countries in Africa — Ethiopia and Kenya.</p><p>The design of this intelligent form requires selected people to install an app on their mobile phones, and whenever they buy food, they use their voice to activate the app to register the list of items they just bought in their own language. The intelligent systems in the app are expected to live to transcribe the speech-to-text and organize the information in an easy-to-process way in a database.</p><p>Amharic is a morphologically rich language with limited resources. The purpose of this project is to construct an Amharic STT (Speech To Text) converter. Because of the intelligent form’s design, certain people must use the web app, and anytime they buy food, they must use their voice to activate the app, which then registers the list of items they just purchased in their own language.</p><p>A deep learning model capable of converting Amharic speech into text in Amharic. The model we develop should be accurate and resistant to noise. During the fourth week of a 10 Academy Machine Learning course, we produced this project.</p><blockquote>What is speech recognition?</blockquote><blockquote>Speech recognition is an interdisciplinary subfield of computer science and computational linguistics that develops methodologies and technologies that enable the recognition and translation of spoken language into text by computers. It is also known as automatic speech recognition (ASR), computer speech recognition, or speech to text (STT). It incorporates knowledge and research in the computer science, linguistics, and computer engineering fields.</blockquote><blockquote>CTC is an algorithm used to train deep neural networks in speech recognition, handwriting recognition, and other sequence problems. CTC is used when we don’t know how the input aligns with the output (how the characters in the transcript align to the audio).</blockquote><h4>Motivation</h4><p>Automatic speech recognition systems are useful in a wide range of scenarios. In reality, ASRs (Automatic Speech Recognition) can be used for any work involving computer interaction.</p><p>The following are some of the most common applications of speech recognition technology:</p><ul><li>Dictation systems include medical transcriptionists,</li><li>Legal and business dictation,</li><li>Conventional word processing.</li></ul><p>Recording audio voice is easier than typing on a keyboard. This will be the primary incentive for this project. Non-technical WFP (World Food Program) employees make up the majority of those working on this project. As a result, recording cooking products and products utilizing the audio/voice of the individual is the simplest and most straightforward method.</p><h4>Data and Preprocessing</h4><h4>Data</h4><ul><li>Amharic: <a href="https://github.com/getalp/ALFFA_PUBLIC">Speech Recognition ASR format (~20hr training and ~2hrs test)</a></li><li>Swahili: <a href="https://github.com/getalp/ALFFA_PUBLIC">Speech Recognition ASR format (~10hr training and ~1.8hrs test)</a></li></ul><p>Before starting to use our data for our model we had to clean and preprocess the provided audio files. This step helps us to get clean data that can be used and can easily be processed by the model resulting in more accurate prediction.</p><p>Some of the steps were taken for this :</p><ul><li>Preparing metadata</li><li>Spectrogram generation</li><li>Standardizing the sample rate</li><li>Audio resizing</li><li>Converting mono to stereo</li><li>Data augmentation</li></ul><h3>Preparing metadata</h3><p>Metadata is information that is used to link an audio file to its transcribed counterpart. A Metadata file named ‘trsTrain.txt’ with a white space separating audio id and transcription is extracted in our dataset. Here’s how it looks after the Metadata has been generated and converted to a CSV file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mTChpzVyLrxVjXhvJHnCUw.png" /><figcaption>figure1.1 Preprocessed Data</figcaption></figure><h4>Spectrogram Generation</h4><p>After having the metadata and the audios the next thing we did was to generate a spectrogram. It is the visual representation of audio where the x-axis is time, the y-axis is the frequency and the darkness of the image describes the intensity of the audio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*_1SCnQa3Pjdr48xpJI_jww.png" /><figcaption>figure 1.2 spectrogram</figcaption></figure><h4>Sample Rate Standardization</h4><p>When we see our sounds in the train folder most of them were having different sampling rates. For our model to be fair and free from bias we used this step to make our sampling rate constant for all the audios. We made the sampling rate 44 kHz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*XT8ddmqUuI5EBXt6Gbq_dQ.png" /><figcaption>figure1.3 Sound wave</figcaption></figure><h4><strong>Audio Resizing</strong></h4><p>During this stage we find out that most of the audios were more than 5 seconds and having also more than half silent sound in them. So we truncated each audio to be less than 5 seconds.</p><p>When we see our sounds in the train folder most of them were having different sampling rates. For our model to be fair and free from bias we used this step to make our sampling rate constant for all the audios. We made the sampling rate 44 KHz.</p><p><strong>Audio Resizing</strong></p><p>During this stage, we find out that most of the audios were more than 5 seconds and having also more than half silent sound in them. So we truncated each audio to be less than 5 seconds.</p><h4>Converting mono to stereo</h4><p>Monaural or monophonic sound reproduction is intended to be heard as if it were a single channel of sound perceived as coming from one position. Stereophonic sound or, more commonly, stereo, is a method of sound reproduction that creates an illusion of multi-directional audible perspective.</p><p>So we changed all the audios in to common stereo audio format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3b8yutnjzw-E5dmS8evKyw.png" /></figure><h4>Data Augmentation</h4><p>The last step we did on our preprocessing was to augment our audios. This step will help us to have a model that is robust and resistant to noises. Among different data augmentation techniques we use time shift for our data augmentation phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*T4wALjPvg4whg92wexB2uw.png" /></figure><h4>Review of previous work</h4><p>Despite the fact that ASR (Automatic Speech Recognition) research for technologically favored languages has been ongoing for more than 50 years, Amharic speech recognition research has only recently begun. Speech recognition for Ethiopic languages has been the subject of a number of studies.</p><p>Some of the works are:</p><p>- Zegaye S. (2003) HMM based large vocabulary, Speaker Independent, Continuous Amharic Speech Recognizer, M.Sc. Thesis, Addis Ababa University, Addis Ababa</p><p>- Bereket K. (2008): developing a speech synthesizer for Amharic language using Hidden Markov Model, M.Sc. Thesis, Addis Ababa University, Addis Ababa</p><p>- Solomon B. (2001): Isolated Amharic Consonant-Vowel (CV) syllable Recognition: an experiment using the Hidden Markov Model, M.Sc. Thesis, Addis Ababa University, Addis Ababa</p><h4>Deep learning architecture</h4><p>In the deep learning era, neural networks have shown significant improvement in the speech recognition task. Various methods have been applied such as convolutional neural networks (CNNs), recurrent neural networks (RNNs), while recently Transformer networks have achieved great performance.</p><p><strong>Recurrent Neural Networks</strong></p><p>RNNs perform computations on the time sequence since their current hidden state is dependent on all the previous hidden states. More specifically, they are designed to model time-series signals as well as capture long-term and short-term dependencies between different time-steps of the input.<br>Concerning speech recognition applications,</p><p>A CNN ( Convolution neural network) architecture is formed by stack of distinct layers that transform the input volume through a differentiable function. It consists of an input layer, hidden layers and an output layer. In any feed-forward neural network, any middle layers are called hidden because their inputs and outputs are masked by the activation function and final convolution. In a convolutional neural network, the hidden layers include layers that perform convolutions. Typically this includes a layer that performs a dot product of the convolution kernel with the layer’s input matrix. This product is usually the Frobenius inner product, and its activation function is commonly ReLU. As the convolution kernel slides along the input matrix for the layer, the convolution operation generates a feature map, which in turn contributes to the input of the next layer. This is followed by other layers such as pooling layers, fully connected layers, and normalization layers</p><p>Convolutional methods can be grouped into 1-dimensional and 2-dimensional networks, respectively.<br>2D-CNNs construct 2D feature maps from the acoustic signal. Similar to images, they organize acoustic features i.e., MFCC features, in a 2-dimensional feature map, where one axis represents the frequency domain and the other represents the time domain. In contrast, 1D-CNNs accept acoustic features directly as input.</p><p><strong>Hyperparametrics :</strong></p><p>Are various settings that are used to control the learning process. CNNs use more hyperparameters than standard multilayer preceptions. Some of these are Kernal size, padding , stride…etc</p><h4>Model Result</h4><p>Some of the results from training our model are</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CmjgeULpj64nfAkJHXa8jA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1b34nHo7ZDNAzo2YsqJ5AA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8D0jfaJDipPzDKCguSNqwQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7lBXacEhZaoY7LByAKMMIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WNrfRKfwSCiuANIoKT_Osw.png" /><figcaption>Training On AWS</figcaption></figure><h4>Bias, Fairness</h4><p>Because the data used to train the ASR model in this study is highly political, validation is essential. While this does not fully invalidate our model, it may not be appropriate to use it in other domains without adequate testing and validation because it may have solely learned political terms and may be biased when recommending terms.</p><h4>Future Work</h4><p>To highlight the upcoming study in the speech-related sector, the following recommendations are made and presented based on the experience and numerous obstacles raised in this experiment. Because this research only looks at native and non-native Amharic speakers, it ignores linguistic variations among non-native Amharic speakers. As a result, greater research into dialectical differences among non-native speakers of the language is required.</p><p>Given the constraints, the results are encouraging and demonstrate that a general speech recognition technique capable of translating Amharic SPEECH-TO-TEXT might be built.</p><h4>Reference</h4><p>● <a href="https://machinelearningmastery.com/how-to-choose-loss-functions-when-training-deep-learning-neural-networks/">111 Responses to How to Choose Loss Functions When Training Deep Learning Neural Networks</a></p><p>● <a href="https://algorithmia.com/blog/introduction-to-loss-functions">Introduction to Loss Functions</a></p><p>● <a href="https://www.kdnuggets.com/2021/06/ethics-fairness-ai.html">Ethics, Fairness, and Bias in AI</a></p><p>● <a href="https://www.datarobot.com/trusted-ai-101/ethics/bias-and-fairness/">Bias and Fairness as Dimensions of Trusted AI</a></p><p>● <a href="https://towardsdatascience.com/audio-deep-learning-made-simple-automatic-speech-recognition-asr-how-it-works-716cfce4c706">Audio Deep Learning Made Simple: Automatic Speech Recognition (ASR), How it Works</a></p><p>● <a href="https://paperswithcode.com/task/speech-recognition">Speech Recognition</a></p><p>● <a href="https://github.com/tilayealemu/MelaNet/blob/master/vizualize.ipynb">Tilayealemu melaNet visualization using acoustic model</a></p><p>● <a href="https://www.researchgate.net/publication/329316345_Speech_Recognition_using_Recurrent_Neural_Networks">(PDF) Speech Recognition using Recurrent Neural Networks</a></p><p>● <a href="https://direct.mit.edu/neco/article/12/10/2451/6415/Learning-to-Forget-Continual-Prediction-with-LSTM">Learning to Forget: Continual Prediction with LSTM | Neural Computation | MIT Press</a></p><p>● <a href="https://towardsdatascience.com/audio-deep-learning-made-simple-sound-classification-step-by-step-cebc936bbe5">Audio Deep Learning Made Simple: Sound Classification, step-by-step</a></p><p>● <a href="https://towardsdatascience.com/audio-deep-learning-made-simple-automatic-speech-recognition-asr-how-it-works-716cfce4c706">https://towardsdatascience.com/audio-deep-learning-made-simple-automa tic-speech-recognition-asr-how-it-works-716cfce4c706</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d2b70e50337" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pharmaceutical Sales Prediction With ML(Machine Learning)]]></title>
            <link>https://medium.com/@meriab1234/pharmaceutical-sales-prediction-with-ml-machine-learning-96009f59dcd1?source=rss-690b8f4eff78------2</link>
            <guid isPermaLink="false">https://medium.com/p/96009f59dcd1</guid>
            <dc:creator><![CDATA[Meron Abate]]></dc:creator>
            <pubDate>Sat, 28 May 2022 09:25:14 GMT</pubDate>
            <atom:updated>2022-05-28T09:47:52.694Z</atom:updated>
            <content:encoded><![CDATA[<p>Prediction of Rossmann Pharmaceuticals’ sales across various stores</p><h4>Business Objective</h4><p>Rossman Pharmaceuticals needs prediction for its financial team regarding the sales in all their stores across cities six weeks ahead of time. Managers in individual stores rely on their years of experience as well as their personal judgment to forecast sales.</p><p>The data team identified factors such as promotions, competition, school and state holidays, seasonality, and locality as necessary for predicting the sales across the various stores. We have tried to build and deliver an end-to-end product that delivers this prediction to analysts in the finance team.</p><blockquote>What is machine learning and how is it useful?</blockquote><blockquote>ML is a field of inquiry devoted to understanding and building methods focusing on exploratory data analysis through unsupervised learning.</blockquote><blockquote>Machine learning is important because it gives enterprises a view of trends in customer behavior and business operational patterns, as well as supports the development of new products. Many of today’s leading companies, such as Facebook, Google and Uber, make machine learning a central part of their operations.</blockquote><blockquote>As ML algorithms gain experience, they keep improving in accuracy and efficiency. This lets them make better decisions.</blockquote><blockquote>Time-series forecasting using machine learning</blockquote><blockquote>Time Series Analysis is the way of studying the characteristics of the response variable with respect to time, as the independent variable. To estimate the target variable in the name of predicting or forecasting, use the time variable as the point of reference. They are widely used for non-stationary data such as economics, weather, stock price, and retail sales.</blockquote><blockquote>TSA is the backbone for prediction and forecasting analysis, specific to the time-based problem statements. Its significance include:</blockquote><ul><li>Analyzing the historical dataset and its patterns</li><li>Understanding and matching the current situation with patterns derived from the previous stage.</li><li>Understanding the factor or factors influencing certain variable(s) in different periods.</li></ul><p>These are basically the steps that will be taken in this project to forecast the sales.</p><h4>Data</h4><p>Most of the fields in our given dataset file are self-explanatory. The following are descriptions for those that aren’t.</p><p><strong>Id</strong> — an Id that represents a (Store, Date) duple within the test set</p><p><strong>Store</strong> — a unique Id for each store</p><p><strong>Sales</strong> — the turnover for any given day (this is what you are predicting)</p><p><strong>Customers</strong> — the number of customers on a given day</p><p><strong>Open</strong> — an indicator for whether the store was open: 0 = closed, 1 = open</p><p><strong>StateHoliday</strong> — indicates a state holiday. Normally all stores, with few exceptions, are closed on state holidays. Note that all schools are closed on public holidays and weekends. a = public holiday, b = Easter holiday, c = Christmas, 0 = None</p><p><strong>SchoolHoliday</strong> — indicates if the (Store, Date) was affected by the closure of public schools</p><p><strong>StoreType</strong> — differentiates between 4 different store models: a, b, c, d</p><p><strong>Assortment</strong> — describes an assortment level: a = basic, b = extra, c = extended. Read more about assortment <a href="https://en.wikipedia.org/wiki/Retail_assortment_strategies">here</a></p><p><strong>CompetitionDistance</strong> — distance in meters to the nearest competitor store</p><p><strong>CompetitionOpenSince[Month/Year]</strong> — gives the approximate year and month of the time the nearest competitor was opened</p><p><strong>Promo</strong> — indicates whether a store is running a promo on that day</p><p><strong>Promo2</strong> — Promo2 is a continuing and consecutive promotion for some stores: 0 = store is not participating, 1 = store is participating</p><p><strong>Promo2Since[Year/Week] </strong>— describes the year and calendar week when the store started participating in Promo2</p><p><strong>PromoInterval</strong> — describes the consecutive intervals Promo2 is started, naming the months the promotion is started anew. E.g. “Feb,May,Aug,Nov” means each round starts in February, May, August, November of any given year for that store</p><p>There were four dataset files initially provided, namely :</p><blockquote><strong>sample_submision dataset</strong>, which had : [‘Id’, ‘Sales’] columns and and (41088, 2) shape</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*JqdyROaWlCB1jAt9XTNSsw.png" /></figure><blockquote><strong>store dataset,</strong> which had : [‘Store’, ‘StoreType’, ‘Assortment’, ‘CompetitionDistance’, ‘CompetitionOpenSinceMonth’, ‘CompetitionOpenSinceYear’, ‘Promo2’, ‘Promo2SinceWeek’, ‘Promo2SinceYear’, ‘PromoInterval’] columns, and (1115, 10) shape</blockquote><blockquote><strong>train dataset,</strong> which had: [‘Store’, ‘DayOfWeek’, ‘Date’, ‘Sales’, ‘Customers’, ‘Open’, ‘Promo’, ‘StateHoliday’, ‘SchoolHoliday’] columns and, and (1017209, 9) shape</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SoxqzR8cBH9R4Znn539Q_A.png" /></figure><blockquote><strong>test dataset</strong>, which had: [‘Id’, ‘Store’, ‘DayOfWeek’, ‘Date’, ‘Open’, ‘Promo’, ‘StateHoliday’, ‘SchoolHoliday’] columns, and (41088, 8) shape</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BjbdzNqDFQgGZsap4xvzWA.png" /></figure><p>As a first step, we needed to explore customer purchasing behaviors (EDA) which is an important step in every meaningful machine learning project. Our goal is to check how some measures such as promos and opening of new stores affect purchasing behavior.</p><p>To achieve this goal, you need to first clean the data. The data cleaning process will involve building pipelines to detect and handle outlier and missing data. This is particularly important because you don’t want to skew our analysis. After the cleaning process is merging the datasets to create two datasets train_store.csv and train_store.csv.</p><p>It is important to initialize the dvc and track all the data we have in the project and connect to my google drive and push them consistently so we don&#39;t have any large data files in the GitHub repository created in the beginning.</p><p>Visualizing various features and interactions is necessary for clearly communicating our findings. It is a powerful tool in the data science toolbox. Below are some of the findings via the necessary plots:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LYMMEZtYUgTcB9BYe90iJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9UoMBDsMa9Jx5wOr7xp8GQ.png" /></figure><p><strong>Comparing state holidays and no holidays</strong></p><ul><li>the purchase during no holidays is more</li><li>comparing the purchase behavior between state holidays: public holidays have more purchases, while Christmas has the least</li><li>sales on easter day went down and back up again after the holiday</li></ul><p><strong>Correlation between Sales and Customers</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*ys6AOLXKj_H4p9XSbJZoiQ.png" /><figcaption>A high correlation between sales and customers</figcaption></figure><p><strong>Distribution of train and test datasets: </strong>Both the test dataset and the training dataset have quite close distributions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*r9jECbR87QO_Prp2OUL4zA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5W_yd4MjJBX58QhzOfpw9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X-8oCTYpdZy0SskF8eSEPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X-8oCTYpdZy0SskF8eSEPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yBQKGicRyrr6HYMeChXncw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blkZ3sRGYz8T6amOmG1GBg.png" /></figure><p>What the train dataset looks like after adding some additional features:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*IkKgnbWlaCL5bfCdtbNBkw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*YqPvP3gk5BDrNvlKZsin2w.png" /><figcaption>From the above, we can see that sales, customers, open, promo, and weekday have high correlation and therefore high impact on sales.</figcaption></figure><p>Now that we have cleaned and prepared the given datasets its time to train our model using a Random forest Regressor and a pipeline as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9DLrVHQ6cUWL8FUZduSJkw.png" /></figure><p><strong>The feature importance</strong></p><p>the maximum importance value is the customer: 0.8278156422470351</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*WbN5bgZI6y_OEsn7dqbGZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*NGXnNmi6ogqCdJr4W-vHxg.png" /><figcaption>The loss function was calculated like this</figcaption></figure><h4><strong>Conclusion</strong></h4><ul><li>The quantity of clients is significantly associated with sales.</li><li>More stores are opened during school holidays, compared to state holidays</li><li>Promotions result in an increase in both sales and customers for all stores</li><li>Stores that are open during the school holidays generate more sales than on other days</li></ul><h4>References</h4><p><a href="https://www.sciencedirect.com/science/article/pii/S2667096822000027">Time-series forecasting of seasonal items sales using machine learning — A comparative analysis — ScienceDirect</a></p><p><a href="https://www.kaggle.com/c/rossmann-store-sales/notebooks">Rossmann Store Sales</a></p><p>A<a href="https://automl.github.io/auto-sklearn/master/">uto-sklearn — AutoSklearn 0.12.7 documentation (automl.github.io)</a></p><p><a href="https://machinelearningmastery.com/time-series-forecasting-long-short-term-memory-network-python/">Time series forecasting with LSTM</a></p><p><a href="https://machinelearningmastery.com/how-to-develop-deep-learning-models-for-univariate-time-series-forecasting/">Univariate Time series forecasting with Deep Learning</a></p><p><a href="https://automl.github.io/auto-sklearn/master/">https://automl.github.io/auto-sklearn/master/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96009f59dcd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Applying Machine Learning for A/B Hypothesis testing: SmartAd performance]]></title>
            <link>https://medium.com/@meriab1234/applying-machine-learning-for-a-b-hypothesis-testing-smartad-performance-19b4a87cbbb8?source=rss-690b8f4eff78------2</link>
            <guid isPermaLink="false">https://medium.com/p/19b4a87cbbb8</guid>
            <dc:creator><![CDATA[Meron Abate]]></dc:creator>
            <pubDate>Sat, 21 May 2022 14:57:40 GMT</pubDate>
            <atom:updated>2022-05-21T14:57:40.427Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Business objective</h4><p>SmartAd is a mobile first advertiser agency that designs intuitive touch-enabled Ad that runs online for clients to increase brand awareness. SmartAd provides brands with an automated advertising experience via machine learning and creative excellence. Additionally, it provides a service known as, Brand Impact Optimizer(BIO) a lightweight questionnaire, that is served with every campaign to determine the impact of the creative Ads, the ad they design, on various upper funnel metrics, including memorability and brand sentiment.</p><h4>The objective of the Testing</h4><p>To design and implement a hypothesis testing algorithm for the BIO service and determine whether the recent campaign resulted in a significant lift in brand awareness.</p><p>What is A/B Testing?</p><p>A/B Testing is a method used to compare two versions of something to figure out which performs better. It uses a traditional statistical inference approach grounded in a hypothesis test. It involves two experiment groups:</p><blockquote>Group (A): exposed to no change (exposed group): users showed dummy ad Group(B): exposed to change(controlled group): shown with the creative ad designed by smartAd.</blockquote><h4>Data Used</h4><p>The data used is from the BIO questionnaires given to users running from 3–10 July 2020 and collected by smart. The BI data the project had the following questions for the users:</p><blockquote>Q: Do you know the brand Lux</blockquote><blockquote><em>R: Yes or No</em></blockquote><p>Initially, the given data was 8077 rows and nine columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zjLgpWFIHTdXKO4ZL7WRdA.png" /><figcaption>Dataset used</figcaption></figure><p><strong>Data Set features</strong></p><ul><li><strong>auction_id: </strong>the unique id of the online user who has been presented the BIO. In standard terminologies, this is called an impression id. The user may see the BIO questionnaire but choose not to respond. In that case, both the <strong>yes</strong> and <strong>no</strong> columns are zero.</li><li><strong>experiment</strong>: which group the user belongs to — control or exposed.</li><li><strong>date</strong>: the date in YYYY-MM-DD format</li><li><strong>hour</strong>: the hour of the day in HH format.</li><li><strong>device_make</strong>: the name of the type of device the user has e.g. Samsung</li><li><strong>platform_os: </strong>the id of the OS the user has.</li><li><strong>browser</strong>: the name of the browser the user uses to see the BIO questionnaire.</li><li><strong>yes</strong>: 1 if the user chooses the “Yes” radio button for the BIO questionnaire.</li><li><strong>no</strong>: 1 if the user chooses the “No” radio button for the BIO questionnaire.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r7Xd-qj9V3KRq3ubXO1TRw.png" /><figcaption>Information in the dataset(missing values, data types…)</figcaption></figure><p>Missing values: 6834 (users that did not respond at all)</p><p>Usable rows: 1243</p><p>These missing values were dropped in our data cleaning process and the clean data was saved to a new .csv file.</p><p>EDA</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*3rCBQ16M7npjurmSHcykxg.png" /><figcaption>The exposed group has a slightly more count of yes compared with the control group</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*8iorRt3rvO2wOq3T3TPajg.png" /><figcaption>Exposed vs Contol group</figcaption></figure><h4>Methods</h4><ol><li><strong>Classical A/B testing</strong></li></ol><p>Classical statistical hypothesis testing involves <strong>the test of a null hypothesis against an alternative hypothesis</strong></p><blockquote>Null hypothesis: There is no significant lift in the brand awareness due to smartAd</blockquote><blockquote>Alternative hypothesis: There is a significant lift in brand awareness due to the smartAd</blockquote><p>P-values are used to measure the significance of the experiment features and P-value is based on the assumption that the null hypothesis is true.</p><p>In our case, a 2% brand awareness increase would be practically significant MDE(minimum detectable effect) = 0.02 and have a 95% confidence level, need to accept the experiment.</p><blockquote>Baseline conversion — the percentage which defines the current conversion rate of the page you want to test.</blockquote><blockquote>Minimum Detectable Effect (MDE) — the minimum expected conversion lift.</blockquote><p>The problem with the classical A/B test is that it takes a long time to show results and is not worth the while. Cost in terms of data collection and waiting for the experiment to end is another factor to be considered as the downside to classical A/B testing.</p><p><strong>2. Sequential A/B testing</strong></p><p>Sequential sampling works in a very non-traditional way; instead of a fixed sample size, you choose one item (or a few) at a time and then test your hypothesis. You can either:</p><p>● Reject the null hypothesis (H0) in favor of the alternate hypothesis (H1) and stop,</p><p>● Keep the null hypothesis and stop,</p><p>● unable to reach either conclusion with current observation and continue sampling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*5RNl7fjB8wdu6mfwdcJbxg.png" /></figure><p><strong>Advantages of sequential A/B testing</strong></p><p>Sequential A/B testing gives users a chance to finish the experiment earlier without increasing the possibility of false results. It enables to check multiple checks on every step ensuring that the error level doesn’t exceed 5%. Whereas classical test checks result only at the very end</p><p>Unlike classical fixed sample-size tests, where significance is only checked after all samples have been collected, this test will continuously check for significance at every new sample and stop the test as soon as a significant result is detected, while still guaranteeing the same type-1 and type-2 errors as the fixed-sample size test</p><p><strong>3 . A/B testing formulation in the Machine Learning context</strong></p><p>Unlike statistical inference, Machine Learning algorithms enable us to model complex systems that include all of the ongoing events, user features, and more. There are a number of algorithms each with strengths and weaknesses.</p><p>Machine learning algorithms enable us to model complex systems that include all of the ongoing events, user variables, features, and many more. There are many algorithm methods for handling A/B tests but each has its strengths and weaknesses.</p><blockquote>An attractive benefit to Machine Learning is that we can combine multiple approaches to gain insights.</blockquote><p>For this approach, we have created versions of our clean data by splitting it by browser and platform_os. In doing so we created separated data sets as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*020bUd4xaoaWLdHiNxym6w.png" /><figcaption>Dataset split by browser</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FqCC-p76qZg2s0-E4U6-WQ.png" /><figcaption>Dataset split by platform</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5t-uAYFzGtwsJK1LfGcYHg.png" /><figcaption>finally created versions of each the dataset like this</figcaption></figure><h4>Next is training</h4><p>For each version of the data, we split the data into 70% training, 20% validation, and 10% test set.</p><p><strong>Machine learning Models Used</strong></p><ol><li><strong>Logistic regression: </strong>We created a linear regression model using the LogisticRegression() function. Then we trained the linear regression model using all versions of our data. The parameters selected for the model were determined using 5-fold cross validation to prevent over-fitting. Then we evaluated our model using test data.</li></ol><p>Test Accuracy of Logistic Regression Model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*E0AVHuh5c8nMQvtUEpifdg.png" /><figcaption>Recommendation: From the above k_fold validation we can see that the maximum accuracy we can get by using 5 fold and logistic regression is 0.75 from all the datasets. From this, we can infer that either the data is not enough or the model is not suitable since the accuracy is less than 80%</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*axQpJb66GlhyBajoXVTp6Q.png" /></figure><p><strong>2. RandomForestClassifier</strong>: We took similar steps as the Logical regression. Using the ReandomforstClassifier model we trained our data. %- fold cross validation was used here as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*bwLqN60WSlulh-CZmXkYrA.png" /><figcaption>Recommendation: According to the results we got above using the 5-fold validation random forest classifier the maximum accuracy we got is 0.75 from all the datasets. Following this we are can deduce that either the data used is not enough or the model is not suitable as the accuracy is less than 80%</figcaption></figure><p><strong>3. Xgboost</strong>: Took all the necessary steps and used Xgboost here. It is an efficient implementation of gradient boosting that can be used for <strong>regression</strong> predictive modeling</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*6zOfAFWA4UqlkNzoxwcpFQ.png" /></figure><h4><strong>The advantage of using MLFlow and DVC in ML experimentation</strong></h4><p>MLflow is an open-source tool originally launched by databricks, it helps manage multiple stages of the ML lifecycle. It lets you train, reuse, and deploy models with any library and package them into reproducible steps that other data scientists can use as a “black box,” without even having to know which library you are using.</p><p>whereas the DVC(data version control) is an open-source control system like Git for handling and tracking our data separately. It saves the storage space required to manage a whole dataset, without it we would have trouble with our models and inconsistency issues.</p><h4>References</h4><p><a href="https://splitmetrics.com/blog/sequential-a-b-testing/amp/">Classic and Sequential A/B Testing Comparison: Parameters and Workflow</a></p><ul><li><a href="http://blog.analytics-toolkit.com/2017/statistical-significance-ab-testing-complete-guide/">Statistical Significance in A/B Testing — a Complete Guide</a></li><li><a href="https://www.kaggle.com/tammyrotem/ab-tests-with-python/notebook">A/B test with Python</a></li><li><a href="https://hbr.org/2017/06/a-refresher-on-ab-testing">A Refresher on A/B Testing</a></li><li><a href="https://medium.com/analytics-vidhya/a-b-testing-clearly-explained-56488430156">A/B Testing: Analysis of Credit Card Marketing Campaign | by Kailash Hari | Analytics Vidhya</a></li><li><a href="https://www.business-science.io/business/2019/03/11/ab-testing-machine-learning.html">A/B Testing with Machine Learning — A Step-by-Step Tutorial</a></li><li><a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6279615/">Standard errors and confidence intervals for variable importance in random forest regression, classification, and survival — PMC (nih.gov)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19b4a87cbbb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>