<?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 Josias Ounsinli Djossou on Medium]]></title>
        <description><![CDATA[Stories by Josias Ounsinli Djossou on Medium]]></description>
        <link>https://medium.com/@josias.ouns.djossou?source=rss-5b834f466186------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*inpjEXPa-xj8--Td</url>
            <title>Stories by Josias Ounsinli Djossou on Medium</title>
            <link>https://medium.com/@josias.ouns.djossou?source=rss-5b834f466186------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:30:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@josias.ouns.djossou/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[End-to-End Web3 dApps: certificate generation distribution, and value transfer with Algorand NFTs…]]></title>
            <link>https://medium.com/@josias.ouns.djossou/end-to-end-web3-dapps-certificate-generation-distribution-and-value-transfer-with-algorand-nfts-b46ebe1adb76?source=rss-5b834f466186------2</link>
            <guid isPermaLink="false">https://medium.com/p/b46ebe1adb76</guid>
            <dc:creator><![CDATA[Josias Ounsinli Djossou]]></dc:creator>
            <pubDate>Sat, 01 Oct 2022 19:51:18 GMT</pubDate>
            <atom:updated>2022-10-01T19:51:18.839Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>End-to-End Web3 dApps: certificate generation distribution, and value transfer with Algorand NFTs smart contracts</strong></h3><p>By Josias Ounsinli</p><h3>Business Objective</h3><p>An organization (10 Academy), aware of the user controlled internet technology (Web3), would like to use it to deliver certificates to its trainees. The challenge is to ensure 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. To solve this challenge, the Algorand Blockchain will be used to generate and distribute Non-Fungible Tokens (NFTs) as certificates to 10 Academy trainees. To do that, we will build an end-to-end Web3 dapps on the Algorand Blockchain that will help 10 Academy generate trainees’s 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 predefined actions. Before going to the dapp for certificate generation, it’s important to have a look at Web3 technology and its related concepts.</p><h3>Web3 technology</h3><p>Web3 is a recent technology developed to improve, solve and overcome the limitations of its predecessor (Web2). Despite the improvement provided by web2 through the development of cookies and centralized services, it was not able to solve these two problems:</p><ul><li><strong>Hold “state” independent of trusted operators:</strong> only the service providers have control over their state provided and the user does not have any control over which provider is giving them state or have access to their state.</li><li><strong>Transfer state: </strong>there is no way for the user to transfer his state.</li></ul><p>Thus, Web3 known as a user controlled internet comes into play with its amazing advance providing these solutions:</p><ul><li>The creation of native economic value by any participant; and</li><li>The transfer of this native value to any participant.</li></ul><p>WIth Web3 a user can hold his state and transfer it: <strong>this can be seen as the main difference between Web2 and Web3</strong>.</p><p>Web3 technology has been developed starting from <strong>blockchains (concepts explained later on in this document)</strong> that provide a way to hold state. The web3 stack currently looks like in the below figure. It is made up of modular components that allow state to be shared among all participants while preventing vendor lock-in to layers below. Because of this, if an application wants to change the state layer, it does not need to rewrite its entire stack (i.e. blockchain). This is effective because it fosters healthy competition and allows each layer to preserve the value it creates without having to worry about what will happen if the rules of the game change later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iv-gh7PYHSIEMI0G6VNfWQ.png" /></figure><p>Let’s have a look at two important layers of the above stack: the state layer and the user control layer.</p><ul><li><strong>The State Layer:</strong> The state layer preserves the state of all that happens below it. It is almost exclusively provided by blockchain infrastructure and allows for any participant to take part as long as they obey the rules of the preferred network. This layer can either be a public or private/permissioned layer.</li><li><strong>The User Control Layer:</strong> the main functionality of this layer is to manage a user’s private keys and be able to sign transactions on the State Layer. A transaction at the State Layer changes the state of a user’s account and hence is at the core of how users interact with Web 3 applications. This lies in the use of wallets.</li></ul><p><strong>Web3 applications architecture</strong></p><p>Let’s compare the architecture of Web2 and Web3 applications (following figure):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*ObKEcSlalMcOXK4i5zTQ0w.png" /></figure><p>A simplistic version of today’s Web 2.0 architecture includes a client software, usually a browser or a self-contained application, and a suite of servers providing content and logic, which are all controlled by the same entity. Web 3.0 architecture leverages what’s enabled by a universal State Layer. It does this by allowing two things:</p><ol><li>Allowing applications to place some or all of their content and logic on to a public blockchain. Contrary to standard Web 2.0, this content and logic can become public and accessible by anyone.</li><li>Allowing users to exert direct control over this content and logic. Unlike Web 2.0, users don’t necessarily need accounts or privileged API keys to interact with what’s on the blockchain.</li></ol><p>The main key used by Web3 to enable this is the <strong>wallet. </strong>Modern wallets, such as Coinbase Wallet, interact with the main client front-end to provide a seamless user experience, in addition to serving as the User Control Layer for the Web 3 stack. They accomplish this by allowing applications to send requests to the wallet itself via standard libraries, the most popular of which is web3.js. A payment request, for example, could be a web3.js call that asks the user to confirm that the wallet can send a specified amount of funds to the application’s address. When a user accepts, two things occur: 1) The wallet responds to the application front-end, allowing it to display a “Payment Submitted” screen; 2) the wallet makes an RPC call to the blockchain server, submitting the approved transaction to the blockchain.</p><p><strong>What is Blockchain and how does it work?</strong></p><p>A blockchain is a shared database on a network of computers. Once a record has been added to the chain, it is very difficult to change it. To ensure that all copies of the database are identical, the network performs constant checks. Blockchains have been used to support cyber currencies like bitcoin, but many other possible uses are emerging. <a href="http://graphics.reuters.com/TECHNOLOGY-BLOCKCHAIN/010070P11GN/index.html">This link</a> provides full details on how blockchains work.</p><h3>Application in the current project</h3><p>This project will build a <a href="https://developer.algorand.org/docs/get-started/dapps/">decentralized application</a> based on the technology described above. It will integrate the use of the wallet that will help to sign in a secure way a transaction. The certificates will be generated as assets. The assets will be non-fungible to make them unique: there will be NFTs. Let’s have a look at what an asset is in Algorand Blockchain.</p><p><strong>Account and Assets in Algorand Block</strong></p><p>The Algorand protocol enables the creation of on-chain assets that share the Algo’s security, compatibility, speed, and ease of use. Algorand Standard Assets (ASA) is the official name for assets on Algorand.</p><p>Algorand Standard Assets can be used to represent stablecoins, loyalty points, system credits, and in-game points, to name a few. One can also represent single, unique assets such as a house deed, collectible items, unique parts of a supply chain, and so on. There is also the option to place transfer restrictions on an asset, which can help with securities, compliance, and certification use cases.</p><p>A starting point of this work is to learn how Algorand blockchain works. Then, using purestake api for testing purposes, a transaction has been made on the blockchain (see the following picture of the transaction information).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cg45wunXljbCroGGsc2_rw.png" /></figure><h3>The dApp: final product</h3><p>The final application will have two components or interfaces. One used by the organization (10 Academy) ‘Admin’ and the other one available for the trainees. Once they complete the training, they will send a request for the certificate which will be approved on the admin page and sent to them as an asset.</p><p><strong>Note: A good implementation of the dapp can be found via </strong><a href="https://github.com/jedisam/certificate-distribution-smart-contract"><strong>this repository</strong></a><strong>.</strong></p><h3>Challenge and difficulties</h3><p>The big challenge during this project is not having any experience in web application development. However, the good news is that all the basic concepts are well understood. Moreover, the theoretical implementation of the dapp has been understood. The problem was about the implementation. Being new with the tools, the successful setting up of the environment was a bit challenging. The exploration also took time but I was able to initialize a default frontend app as an example of dapps using algorand. When looking for how to start building my own, I found a great implementation on a github repository, a result provided by google engine. Even if I was not able to implement it myself, I’m glad to share an implementation I found. It is still challenging to understand the structure, the steps and the codes. That’s why I was not able to customize what I found.</p><h3>Important references</h3><p><a href="https://developer.algorand.org/docs/get-started/dapps/">https://developer.algorand.org/docs/get-started/dapps/</a></p><p><a href="https://www.coinbase.com/blog/understanding-web-3-a-user-controlled-internet">https://www.coinbase.com/blog/understanding-web-3-a-user-controlled-internet</a></p><p><a href="http://graphics.reuters.com/TECHNOLOGY-BLOCKCHAIN/010070P11GN/index.html">http://graphics.reuters.com/TECHNOLOGY-BLOCKCHAIN/010070P11GN/index.html</a></p><p><strong>Github repo to the dapp</strong></p><p><a href="https://github.com/jedisam/certificate-distribution-smart-contract">https://github.com/jedisam/certificate-distribution-smart-contract</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b46ebe1adb76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A/B TESTING — Hypothesis testing & Machine Learning
Authors Degaga Wolde and Josias Ounsinli…]]></title>
            <link>https://medium.com/@josias.ouns.djossou/a-b-testing-hypothesis-testing-machine-learning-authors-degaga-wolde-and-josias-ounsinli-d4362549925c?source=rss-5b834f466186------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4362549925c</guid>
            <dc:creator><![CDATA[Josias Ounsinli Djossou]]></dc:creator>
            <pubDate>Sat, 03 Sep 2022 17:14:20 GMT</pubDate>
            <atom:updated>2022-09-03T17:54:46.565Z</atom:updated>
            <content:encoded><![CDATA[<h3>A/B TESTING — Hypothesis testing &amp; Machine Learning</h3><p>Authors Degaga Wolde &amp; <a href="https://medium.com/u/5b834f466186?source=post_page-----1b352a6ff180--------------------------------">Josias Ounsinli Djossou</a></p><p><strong>Table of content</strong></p><p>Basics of A/B testing and its use cases</p><p>Limitations and challenges of classical A/B testing</p><p>Sequential A/B testing pros and cons</p><p>A/B testing formulation in the Machine Learning context</p><p>Data review and ML A/B testing result</p><p>The advantage of using MLFlow and DVC in ML experimentation</p><h3>Basics of A/B testing and its use cases</h3><p>A/B testing is a technique for user experience research. It is often referred to as bucket testing or split-run testing. An experiment with two versions, A and B, is used in A/B tests. It also applies statistical hypothesis testing, often known as “two-sample hypothesis testing” in statistics. A/B testing compares two iterations of the same variable, usually by gauging a subject’s reaction to variant A vs variant B and deciding which variant is more successful.</p><p>Essentially, A/B testing gets rid of all the guesswork and lets seasoned optimizers make decisions supported by evidence. In A/B testing, “control” or the original testing variable is referred to as “A.” The term “variant” or a new iteration of the original testing variable is used in B.</p><p><strong>How does A/B testing work?</strong></p><p>Making a decision about what to test is the first step in an A/B test. Then, you must decide how to assess its performance. In this instance, assume that your statistic is the number of site visitors who click the button. You execute the test by displaying two sets of users — assigned at random when they visit the website — the various versions, with the sole distinction being the button’s size, and then analyzing which version had the most impact on your success statistic. Which button size generated more clicks in this instance? In practice, what is the framework of A/B testing?</p><p><strong>A/B testing process</strong></p><p>The following is an A/B testing framework you can use to start running tests:</p><ul><li>Collect data</li><li>Identify goals</li><li>Generate hypothesis</li><li>Run experiment</li><li>Analyze results</li></ul><p><strong>When ought A/B testing be used?</strong></p><p>Testing incremental changes, such as UX adjustments, new features, ranking, and page load times, is where A/B testing excels. Here, you may compare the outcomes before and after the modifications to determine whether or not the adjustments are having the desired effect.</p><h3>Limitations and challenges of classical A/B testing</h3><p>Traditional A/B testing is effective but not very effective. Before you can obtain any substantial results from your tests, you will need to invest a significant amount of time and money into their execution. When testing significant changes, such as new products, new branding, or entirely new user experiences, A/B testing doesn’t function effectively. In certain situations, there might be impacts that promote stronger than usual engagement or emotional reactions that might influence users’ behavior. By using this, you can experiment with other combinations, such as header picture A with headline B and CTA C, as an alternative to testing A versus B. You can also include C, D, E, F, and G in the equation.</p><p>Additionally, ML may automatically serve up different versions of your site to different groups of people by taking into account variables like demographics, customer status, and prior behavior rather than treating every visitor equally as in split A/B testing. With the help of machine learning (ML), you can customize and optimize your web properties so that they only show one version that has the best probability of converting each unique visitor out of hundreds of possible variations.</p><h3>Sequential A/B testing pros and cons</h3><p>Sequential testing, as its name suggests, entails carrying out successive interim analyses up to the point at which the results are significant or a predetermined number of intermediate analyses have been completed. The sequential analysis looks attractive, particularly given that it might lead to a trial requiring significantly fewer participants than a randomized trial where the sample size is determined beforehand.</p><p>Some advantages of sequential A/B testing over classical A/B testing:</p><ul><li>optimize necessary observation (sample size)</li><li>reduce the likelihood of error</li><li>gives a chance to finish experiments earlier without increasing the possibility of false results</li></ul><p><strong><em>N.B: 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.</em></strong></p><p><strong>Are there any drawbacks?</strong></p><ul><li>From a frequentist standpoint, we must acknowledge that we are performing many comparisons if we are worried about maintaining type I errors.</li><li>Three data analysis provides three non-independent opportunities to make a type I error.</li><li>Comparing sequential testing to waiting until all the data is in, power is reduced for particular sample size and significance level.</li></ul><h3>A/B testing formulation in the Machine Learning context</h3><p>Machine learning is a data analysis technique that automates the creation of analytical models. It is a subfield of artificial intelligence that is based on the idea that systems can learn from data, identify patterns, and make decisions with little or no human intervention. Machine Learning algorithms, as opposed to statistical inference, allow us to model complex systems that include all ongoing events, user features, and more. There are several algorithms, each with advantages and disadvantages.</p><p>Traditional statistical-inference approaches to A/B Testing have a major flaw in that they only compare two variables — an experiment/control and an outcome. The issue is that customer behavior is far more complicated than this. Customers take various paths, spend varying amounts of time on the site, come from various backgrounds (age, gender, interests), and so on. Machine Learning excels at extracting insights from complex systems.</p><h3>Data review and ML A/B testing result</h3><p><strong>Data</strong></p><p>The BIO data for this project is a “Yes” and “No” response of online users to the following question</p><p><strong><em>Q: Do you know the brand Lux?</em></strong></p><p>O Yes</p><p>O No</p><p>This is a test run and the main objective is to validate the hypothesis algorithm you built. SmartAd ran this campaign from 3–10 July 2020. The users that were presented with the questionnaire above were chosen according to the following rule:</p><p><strong><em>Control</em></strong>: users who have been shown a dummy ad</p><p><strong><em>Exposed:</em></strong> users who have been shown a creative (ad) that was designed by SmartAd for the client.</p><p>The data collected for this challenge has the following columns</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><h3>Exploratory Data Analysis First!</h3><pre>df = data_loader.load_data(&#39;../data/AdSmartABdata.csv&#39;)<br>df</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*iT8FaK54DZCrpI3MexhRbg.png" /></figure><pre>df.info()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*yf35Yvi_hsxjN6JUaTfljw.png" /></figure><pre><em>ploting_utils</em>.plot_count(df, ‘experiment’)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*8g4R6IEJaK99u9yZOcCn0Q.png" /></figure><pre><strong><em>ploting_utils.multi_plot_count(df, ‘experiment’, ‘yes’)</em></strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*fdR3QC5Qz39SJNGhZ4Q9Hw.png" /></figure><pre>ploting_utils.multi_plot_count(top_browsers, ‘browser’, ‘yes’)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*aF3-VjXB1YUI4huhKMrOtg.png" /></figure><pre>ploting_utils.multi_plot_count(top_devices, ‘device_make’, ‘yes’)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*93zTWtNdvXGzk5nLeUfRYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*aWUVjxs-UhfFrtM5ZY3CJQ.png" /></figure><p><strong>Classical and Sequential A/B Testing to Identify if the ad is improving the brand awareness</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*xwmcupgDukZBgThPC3yslg.png" /></figure><p>Classical A/B testing</p><pre>zscore, pvalue = hypothesis_test.two_proprotions_test(<br>    ddf.yes.iloc[0], ddf.total.iloc[0],  ddf.yes.iloc[1], ddf.total.iloc[1])<br>print(&#39;zscore = {:.3f}, pvalue = {:.3f}&#39;.format(zscore, pvalue))Assuming 95% confidence level, the new advertising is more successful.<br>p_value = 0.035</pre><p>Sequential A/B testing</p><pre>E-C = 44 <br>E+C = 572 <br>N = 8077 <br>2*sqrt(N) = 179.74426277353055## Conclusion <br>- According to Even Miller Sequential A/B test:<br>    - If (T-C) reaches (2*sqrt{N}), stop the test. Declare the treatment to be the winner.<br>    - If (T+C) reaches (N), stop the test. Declare no winner.<br>It is impossible to reach a conclusion, we need additional data.- Useing also the Sequential probability ratio testing (SPRT) we observe the test Unable to conclude. Needs more sample.- Based on the classical test, the p-value is lessan than 0.05, we reject the null hypothesis and accepth the alternative.<br>- The newly designed ad has increased the brand awareness</pre><h3>Problem formulation for machine learning and the target variable</h3><p>The target variable, here, is the response to the question: <strong>Do you know the brand Lux? </strong>Only users who have responded will be considered. The possible values are 0 or 1 associated with yes or no. <strong>Problem formulation:</strong> <strong>What are the relevant features that determine the conversion in brand awareness?</strong></p><p><strong>Results of the study</strong></p><pre><strong>from</strong> xgboost <strong>import</strong> plot_importance<br><em># fit model no training data</em><br>model <strong>=</strong> XGBClassifier()<br>model<strong>.</strong>fit(X1, y1)<br><em># plot feature importance</em><br>plot_importance(model)<br>pyplot<strong>.</strong>show()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*L-6DowJn25V3ypUgvWan2Q.png" /></figure><h3>The advantage of using MLFlow and DVC in ML experimentation</h3><p>MLflow is an open-source platform for managing the machine learning lifecycle, which includes experimentation, reproducibility, deployment, and a central model registry.</p><p>DVC and MLflow are two open-source projects that are widely used in their respective fields. DVC excels at data versioning, and MLflow is a collection of tools that are primarily used for experiment tracking and artifact logging.</p><p>It also provides automatic logging capabilities for the majority of popular high-level machine learning frameworks, such as Scikit-learn, Tensorflow, Keras, XGBoost, FastAI, PyTorch, and others.</p><p><strong>Setting up DVC, MLFLOW, and CML</strong></p><p>DVC is installed by following this <a href="https://dvc.org/doc/install">guideline</a>. Then it can be set up to facilitate the data versioning process.</p><pre>git init</pre><pre>dvc init</pre><pre>git commit -m &quot;initial commit&quot;</pre><pre>dvc remote add -d myremote gdrive://&lt;google drive folder id&gt;</pre><pre>git commit -m &quot;sets dvc remote&quot;</pre><pre>dvc add path_to_data</pre><pre>git add path_to_data.dvc</pre><pre>git commit -m &quot;data:track&quot;</pre><pre>git tag -a &#39;v1&#39; -m &quot;raw data&quot;</pre><pre>dvc push</pre><p>In our case, we generated five data versions based on browser, platform_os columns.</p><pre>import pandas as pd<br>import os<br>import preprocess</pre><pre>def split(df, column):<br>    split_dict = {}<br>    for i in list(df[column].value_counts().index):<br>        split_dict[i] = df[df[column] == i]<br>    <br>    &quot;&quot;&quot;Only keep piece of data with more than 30 rows.&quot;&quot;&quot;<br>    split_dict = split_dict<br>    todel = []<br>    for i in split_dict.keys():<br>        if len(split_dict[i]) &lt;= 30:<br>            todel.append(i)<br>    for i in todel:<br>        del split_dict[i]</pre><pre>    return split_dict</pre><pre><br>if __name__ == &quot;__main__&quot;:</pre><pre>    df = pd.read_csv(&quot;./dSmartABdata.csv&quot;)</pre><pre>    df = preprocess.nonResponse(df)</pre><pre>    dict_browsers = split(df, &#39;browser&#39;)<br>    <br>    dict_platforms = split(df, &#39;platform_os&#39;)</pre><pre>    for col in dict_platforms.keys():<br>dict_platforms[col].to_csv(os.path.join(&quot;./data/&quot;,&#39;data_&#39;+str(col)+&quot;.csv&quot;), index=False)<br>    <br>    for col in dict_browsers.keys():     dict_browsers[col].to_csv(os.path.join(&quot;./data/&quot;,&quot;data_&quot;+col.replace(&#39;/&#39;, &#39;&#39; )+&quot;.csv&quot;), index=False)</pre><p><a href="https://www.mlflow.org/docs/latest/tutorials-and-examples/index.html">mlflow</a> is installed using <em>‘pip install mlflow’</em>. It tracks model parameters, performance, and any information related to your model. It generates reports in table form, and it is possible to get detailed information by clicking on a specific row.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*xw7Xu87DUR7-C7n2N3rFxg.png" /></figure><p>CML is used for continuous machine learning. It can be set up by following the guidelines provided <a href="https://github.com/iterative/cml">here</a>.</p><pre>name: model-training<br>on: [push]<br>jobs:<br>  run:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - uses: actions/checkout@v2<br>      - uses: iterative/setup-cml@v1<br>      - name: Train model<br>        run: |<br>         pip install Cython<br>         pip install -r requirements.txt<br>         python scripts/modeling.py<br>      - name: write to CML report<br>        env:<br>          REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}<br>        run: |<br>          echo &quot;## Model Metrics&quot; &gt;&gt; report.md<br>          cat models/metrics.txt &gt;&gt; report.md<br>          echo &quot;## Sample Data&quot; &gt;&gt; report.md<br>          echo &quot;## Data Visualization&quot; &gt;&gt; report.md<br>          cml publish images/fi.png --md &gt;&gt; report.md<br>          <br>          cml send-comment report.md</pre><p>This will write a report to the git PR. The report includes model performance, the plot of the feature importance, and confusion metrics.</p><h3>References</h3><p><a href="https://github.com/10-Academy-B6-W2-Team-10/a-b-hypothesis-for-ad-campaign-peformance-measurement.git">https://github.com/10-Academy-B6-W2-Team-10/a-b-hypothesis-for-ad-campaign-peformance-measurement.git</a></p><p><a href="https://euelfantaye.medium.com/a-b-testing-with-machine-learning-277da2750123">https://euelfantaye.medium.com/a-b-testing-with-machine-learning-277da2750123</a></p><p><a href="https://hbr.org/2017/06/a-refresher-on-ab-testing">https://hbr.org/2017/06/a-refresher-on-ab-testing</a></p><p><a href="https://www.optimizely.com/optimization-glossary/ab-testing/#:~:text=A%2FB%20testing%20is%20essentially,for%20a%20given%20conversion%20goal">https://www.optimizely.com/optimization-glossary/ab-testing/#:~:text=A%2FB%20testing%20is%20essentially,for%20a%20given%20conversion%20goal</a>.</p><p><a href="https://colab.research.google.com/drive/1bQqjmxFo-lUBqSdAWP1eUnaJnxndnM1q?usp=sharing&amp;authuser=1#scrollTo=46ALLDHYx_Yl">https://colab.research.google.com/drive/1bQqjmxFo-lUBqSdAWP1eUnaJnxndnM1q?usp=sharing&amp;authuser=1#scrollTo=46ALLDHYx_Yl</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4362549925c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>