<?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 Assitan Koné on Medium]]></title>
        <description><![CDATA[Stories by Assitan Koné on Medium]]></description>
        <link>https://medium.com/@assitan?source=rss-2599233f8695------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*B3CutyzNsCHNISTNG0-jpA.jpeg</url>
            <title>Stories by Assitan Koné on Medium</title>
            <link>https://medium.com/@assitan?source=rss-2599233f8695------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:21:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@assitan/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[AI, Machine Learning, and NLP: What Are the Differences?]]></title>
            <link>https://medium.com/@assitan/ai-machine-learning-and-nlp-what-are-the-differences-66c5c9d260cf?source=rss-2599233f8695------2</link>
            <guid isPermaLink="false">https://medium.com/p/66c5c9d260cf</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Assitan Koné]]></dc:creator>
            <pubDate>Thu, 01 Jun 2023 17:55:49 GMT</pubDate>
            <atom:updated>2023-06-09T21:00:10.507Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WYS2EdPWff8ncb_z.png" /></figure><p>Do you know the differences between AI, Machine Learning, and NLP? While the terms are often used interchangeably, each field has its own unique focus and applications.</p><h4>Artificial intelligence: combines everything</h4><p>Artificial intelligence (AI) involves the development of intelligent machines that can perform tasks that typically require human intelligence. The goal is to enable machines to learn, reason, and solve problems in a way that mimics human cognitive processes.</p><p>There are two types of AI — Narrow AI (also known as Weak AI or Applied AI) and General AI (also known as Strong AI or Human-level AI). Narrow AI refers to AI systems designed to perform specific tasks or solve problems within a limited domain. These systems excel in specific areas, are built using machine learning techniques like supervised or unsupervised learning, and are trained on specific datasets relevant to the task. Examples of Narrow AI include image or speech recognition, natural language processing, recommendation systems, fraud detection, and autonomous driving.</p><p>On the other hand, General AI aims to exhibit human-level intelligence across a wide range of cognitive abilities. This means that General AI involves developing machines that can understand and apply knowledge, reason, plan, learn, communicate, and adapt to new situations in a manner comparable to human intelligence. General AI systems would possess a comprehensive understanding of the world and be capable of engaging in meaningful conversations, exhibiting common-sense reasoning, and effectively handling a wide range of complex tasks. Examples of General AI can be seen in science fiction movies like I-Robot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JAzTsnKs08yoDP50.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5xNBPSOVrFYD_FI4.png" /></figure><h4>Machine Learning: a subset of AI to make predictions</h4><p>Machine Learning is a subset of AI that involves algorithms and statistical models that enable machines to learn from data rather than being explicitly programmed. This allows machines to improve their performance over time.</p><p>It uses statistical techniques to enable machines to automatically improve their performance on a specific task without being explicitly programmed.</p><p>Machine Learning systems are trained on large datasets, enabling them to identify patterns, make predictions, and perform tasks without being explicitly programmed.</p><p>The core concept revolves around training models on data to acquire knowledge and make accurate predictions or decisions.</p><p>Machine learning algorithms can be broadly classified into three types: supervised learning, unsupervised learning, and reinforcement learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qlIR7ycIBxWJ4LrV.png" /></figure><h4>Natural Language Processing: a subset of AI to understand, interpret, and generate human language</h4><p>NLP is another subset of AI focusing specifically on the interaction between humans and computers using natural language. NLP allows machines to understand, interpret, and generate human language, essential for building chatbots and other applications requiring natural language processing. This has applications in fields such as customer service and healthcare.</p><p>NLP techniques include speech recognition, text-to-speech conversion, sentiment analysis, language translation, and question-answering systems. NLP utilizes computational linguistics, machine learning, and AI to process and analyze large amounts of textual and linguistic data, allowing machines to comprehend and generate human language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kIxGO-7CRrCw5uS6.png" /></figure><h4>Conclusion</h4><p>Understanding the differences between these fields is important for understanding the capabilities and limitations of modern AI technology. By understanding how AI, ML, and NLP work, we can better appreciate the possibilities and limitations of these powerful tools.</p><p>In conclusion, AI, ML, and NLP are all important fields in modern technology, each with its own distinct focus and applications. As these fields evolve, it is important to keep up with the latest developments and understand how they can be applied to solve complex problems and improve our lives.</p><p><em>Originally published at </em><a href="https://codistwa.com/blog/ai-machine-learning-and-nlp-what-are-the-differences"><em>https://codistwa.com</em></a><em>.</em></p><p>Subscribe to our <a href="https://codistwa.com/subscribe/">weekly newsletter</a> for tutorials, illustrations, and tips in your email box.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66c5c9d260cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data processing and feature engineering explained with the Titanic dataset]]></title>
            <link>https://medium.com/@assitan/data-processing-and-feature-engineering-explained-with-the-titanic-dataset-5fb7669538d6?source=rss-2599233f8695------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fb7669538d6</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Assitan Koné]]></dc:creator>
            <pubDate>Thu, 01 Jun 2023 17:53:44 GMT</pubDate>
            <atom:updated>2023-06-09T21:01:17.242Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gvfpy5ewxJof4Xxx.png" /></figure><h3>Exploratory data analysis</h3><p>When working with datasets, data scientists and data analysts use Exploratory Data Analysis (EDA) to gain insights and understand the data. EDA involves analyzing and summarizing the data to identify patterns, anomalies, and hypotheses through visualization and examination.</p><p>The main objectives of EDA are to:</p><ul><li>Understand the data: it helps you become familiar with the dataset by examining its structure, variables, and relationships, including identifying the types of variables and overall distribution.</li><li>Identify patterns and relationships: it allows you to explore the relationships between variables by examining correlations, associations, and trends using visualizations like scatter plots, histograms, and heat maps.</li><li>Detect anomalies and outliers: it helps identify any unusual or extreme observations in the dataset that could affect analysis or modeling.</li><li>Formulate hypotheses and insights: it generates hypotheses and observations about the data that guide further analysis or predictive modeling.</li><li>Assess data quality and suitability: it evaluates data quality, including identifying missing values, errors, and inconsistencies, and determines whether the dataset is appropriate for the intended analysis or if additional data is necessary.</li></ul><p>EDA techniques include summary statistics, data visualization, correlation analysis, data transformation, and statistical modeling. Commonly used tools for EDA include Python libraries like Pandas, NumPy, Matplotlib, Jupyter Notebooks, and RStudio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TfC8Q6iSYrsst3iz.png" /></figure><h4>Univariate analysis</h4><p>Two main techniques are used when analyzing data: univariate analysis and bivariate analysis. The univariate analysis examines a single variable in isolation, exploring its distribution, central tendency, dispersion, and other characteristics. On the other hand, bivariate analysis focuses on examining the relationship between two variables simultaneously, exploring the association, correlation, or dependency between them.</p><p>For numerical continuous variables, we can use a histogram or scatter plot. For categorical data, we commonly prefer bar plots or pie charts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Krf-uBr85sZipOm7.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jWibjvHcGpKyb9Z8.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NpXCgL2mHSFFYZ11.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F5X7n8RqI-J4FvkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BmKJ94cse4IoIJDC.png" /></figure><h4>Bivariate analysis</h4><p>The primary goals of the bivariate analysis are to assess the relationship between two variables, understand the nature of that relationship (whether it is linear, nonlinear, positive, negative, or no relationship at all), quantify the strength and direction of the relationship, visualize the relationship through various visualizations like scatter plots and heat maps, and make predictions based on one variable’s values and their relationship with another. Bivariate analysis techniques include correlation analysis, regression analysis, contingency tables, chi-square tests, and scatter plots. These techniques can help uncover meaningful insights and guide further analysis, such as multivariate analysis, where the relationship between more than two variables is examined simultaneously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iNQ9Mz9lOcqEUTIT.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FfzWIqukll2-608c.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NlHIxeaehgc-Gq3B.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9GGdiaVacSHqXZCH.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*v8Dfoze_bs7NZWfn.png" /></figure><h4>Outliers</h4><p>In machine learning, outliers are data points that significantly deviate from the normal or expected behavior of the majority of the dataset. Outliers are observations that are distant from other observations and may exhibit unusual characteristics or behaviors compared to the rest of the data. These observations can have a significant impact on the analysis and modeling process.</p><p>Outliers can arise for various reasons, including measurement errors, data entry errors, rare events, or genuinely extreme values in the studied phenomenon. Identifying and handling outliers appropriately in machine learning tasks is important to ensure reliable and accurate modeling results.</p><p>Here are some key points about outliers in machine learning:</p><ul><li>Impact on Data Analysis: Outliers can skew statistical measures such as the mean and standard deviation, affecting the distribution and central tendency of the data. They can also distort correlation and covariance estimates, potentially leading to erroneous conclusions and modeling assumptions.</li><li>Impact on Models: Outliers can significantly impact machine learning models. They can influence parameter estimation, bias the model towards the extremes, and reduce its predictive accuracy. Outliers can also affect the decision boundaries in classification tasks, leading to suboptimal performance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*98E4-MsMts3wXDoE.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VqMgLSLDs2hQXHDi.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*79J5NQW1VpTWoMs5.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xJ8pQWIHxVoLH27W.png" /></figure><h3>Feature engineering</h3><p>Enhancing machine learning models’ performance and predictive power involves feature engineering, modifying, or creating new input features. This process is crucial in machine learning, as features’ quality and relevance significantly impact the model’s accuracy, interpretability, and generalization ability. Feature engineering involves transforming raw data into a suitable representation that captures relevant information and patterns, enabling the model to learn effectively.</p><p>Some common techniques and strategies used in feature engineering include feature transformation, feature construction, feature selection, and feature improvement.</p><p>It’s important to note that feature engineering requires a deep understanding of the data, problem domain, and modeling techniques being employed. It often involves an iterative experimentation, analysis, and refinement process to identify the most effective features for the task while considering potential impacts on model interpretability, computational complexity, and overfitting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4JkvWiksJNsedIk2.png" /></figure><h4>Feature transformation</h4><p>Common transformations include scaling features to a specific range (e.g., using min-max scaling or standardization), applying logarithmic or power transformations, or converting categorical variables into numerical representations (e.g., one-hot encoding or ordinal encoding). Our goal is to transform a feature on the nominal level and create a one-hot encoding matrix where each feature represents a distinct category. The value is either 1 or 0, representing the presence of that value in the original observation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*95fU14zNqeYSewjm.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t-CwyDBUAuhy0Z8C.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pTspLkYfvi1iFIs1.png" /></figure><h4>Binning</h4><p>Binning refers to grouping numerical data into bins based on threshold cutoffs to reduce the model’s chance of overfitting the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QTnEJX9N3t8g4inn.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f5SSgzlMC4jziXhx.png" /></figure><h4>Feature construction</h4><p>Feature construction involves creating interaction features or augmenting the dataset by creating new interpretable features from existing ones. Feature selection aims to identify and select the most informative and relevant features for the model to reduce dimensionality and enhance interpretability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GKKh6MKVd5ZukAgd.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/0*naqcS5N1xz3an6kM.png" /></figure><h4>Feature improvement</h4><p>Feature improvement involves making existing features more usable through mathematical transformations or imputing missing numeric data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/0*7fcbYPyMzqFtglec.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XRUnlKetc__hoa_c.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cEqtMJztBYsh5ZXY.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NPCqbiSbCTno9Eww.png" /></figure><h3>Conclusion</h3><p>Data processing and feature engineering are the most important steps in a machine learning project. They allow us to understand better the data and perform transformations to prepare the data for modeling.</p><h3>Resources</h3><p><a href="https://gist.github.com/codistwa/e651d45f6414e59c4643c114629baf51">https://gist.github.com/codistwa/e651d45f6414e59c4643c114629baf51</a></p><p><em>Originally published at </em><a href="https://codistwa.com/blog/data-processing-and-feature-engineering-explained-with-titanic-dataset"><em>https://codistwa.com</em></a><em>.</em></p><p>Subscribe to our <a href="https://codistwa.com/subscribe/">weekly newsletter</a> for tutorials, illustrations, and tips in your email box.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fb7669538d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Data Science is hard, here are tips to help you to get comfortable]]></title>
            <link>https://medium.com/@assitan/learning-data-science-is-hard-here-are-tips-to-help-you-to-get-comfortable-7efd96b1ba30?source=rss-2599233f8695------2</link>
            <guid isPermaLink="false">https://medium.com/p/7efd96b1ba30</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Assitan Koné]]></dc:creator>
            <pubDate>Sun, 12 Feb 2023 21:04:04 GMT</pubDate>
            <atom:updated>2023-02-12T21:04:04.571Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V3jKNuLsxvnrG6Ip.png" /></figure><p>Data Science is a rapidly evolving and complex discipline, so it’s not surprising that many people feel overwhelmed by the sheer amount of knowledge that needs to be acquired. However, there are ways to overcome this frustration and keep moving forward. Here are five tips to help you achieve your data science learning goals.</p><h3>Set achievable goals</h3><p>Set achievable short and long-term goals, such as participating in a data science project or learning certain key skills like data cleaning, model evaluation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*NbsViD9Bk0hRA_2elqPgXg.png" /></figure><h3>Create a study plan</h3><p>Plan your study time based on your goals and availability. This can include dedicated time for reading, practicing, and collaborating with others in the same field. You can use the Pomodoro technique and create SMART objectives to help you. You can also try to track your habits to see your improvement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*tD9-TiXpQzB3hIAN_HzB1g.png" /></figure><h3>Join a community</h3><p>Join an online or in-person community of data scientists and people interested in learning. Exchanging ideas and knowledge can help you feel less alone and overwhelmed. You can find local communities on <a href="https://www.meetup.com/">Meetup</a> or join global communities like Omdena. You can also try to find them on Discord or Slack. For example, <a href="https://www.ladiesofcode.com/">Ladies of Code</a> is a great community for women in Tech.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*wVmECoWi_YvGOIpjKNlV3A.png" /></figure><h3>Be patient</h3><p>Data science is a discipline that takes time and patience to master. Don’t get discouraged if you don’t immediately understand everything you learn, and be willing to take the time to repeat concepts you have trouble with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*0NwT41j92emGDcruGRtzrw.png" /></figure><h3>Practice</h3><p>Practice is the key to mastering data science skills. Get involved in projects and solve problems to apply what you’ve learned. Get a dataset in <a href="https://www.kaggle.com/datasets">Kaggle</a>, <a href="https://www.openml.org/">OpenML</a>, <a href="https://paperswithcode.com/datasets">Paper With Code</a>, etc., or start web scraping websites with Beautiful Soup, for example.</p><figure><img alt="woman in front of screens coding" src="https://cdn-images-1.medium.com/max/416/1*6yE_efqI4BQubuIgsqm3_w.png" /></figure><h3><strong>Conclusion</strong></h3><p>By following these tips, you should be able to overcome the frustration of learning data science and move forward with confidence.</p><p>Sign up for our <a href="https://codistwa.com/courses">courses</a> to be comfortable in your Data Science journey.</p><p>Improve your knowledge with our courses</p><p><em>Originally published at </em><a href="https://codistwa.com/blog/learn-data-science-is-hard-here-are-tips-to-help-you-to-get-comfortable"><em>https://codistwa.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7efd96b1ba30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Credit Card Fraud Detection]]></title>
            <link>https://medium.com/@assitan/credit-card-fraud-detection-16de6853cd6e?source=rss-2599233f8695------2</link>
            <guid isPermaLink="false">https://medium.com/p/16de6853cd6e</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Assitan Koné]]></dc:creator>
            <pubDate>Tue, 03 Jan 2023 21:28:36 GMT</pubDate>
            <atom:updated>2023-01-03T21:28:36.500Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TNQjcOTxNvKwltYO.png" /></figure><p>How do we know when a credit card is fraudulent or not?</p><p>This is a classification problem statement.</p><p>This tutorial will be in 2 parts, the first part will be on machine learning, and the second will be on deployment.</p><p>I like typing the problem statement, so let’s write in markdown what we’ve said before, whether this credit card is fraudulent or not. Now, about the dataset. We can find it on Kaggle. There is some information about it. Class 0, 1. the statistics. You can download the dataset here to get the archive. We type the link in our notebook.</p><p><a href="https://www.kaggle.com/datasets/yashpaloswal/fraud-detection-credit-card">https://www.kaggle.com/datasets/yashpaloswal/fraud-detection-credit-card</a></p><p>Don’t forget to you put the CSV in your folder.</p><p>To get it, just click on download, then unzip the archive to get this CSV file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_B6GuSI7-tlhRmpn.png" /></figure><p>1. Importing Libraries</p><p>We import numpy as np (for algebraic operations on arrays), pandas as pd (for data exploration and manipulation). Then matplotlib, seaborn plotting libraries. The inline is a magic function for visualisation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jD6rt6jLLiryFL8P.png" /></figure><p>2. Loading the dataset</p><p>We load the dataset. We create a variable named train with the file path, and create a new variable named df_train to create a dataframe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jYb5nanVQcxAiuwA.png" /></figure><p>3. Exploratory data analysis</p><p>Let’s view the first five lines. For that, we use .head(). at first glance, we see numerical values. We don&#39;t understand the data. so it seems to be changed with PCA. It&#39;s normal because credit card data needs to be confidential.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tju6CG0lLKB1TQqq.png" /></figure><p>Let’s type that.</p><p>“ <strong>Interpreting Data Information</strong></p><ul><li>We have 284807 rows, any column that contains a lesser number of rows has missing values.</li><li>We have 31 columns.</li><li>There are numerical features that have data type float64.</li><li>There are numerical features that have data type int64.</li></ul><p>No missing columns.”</p><p>Let’s see the statistics of numerical variables (so every variable).</p><p>We can compare the mean of each column with the min/max value to check if we might have outliers as there’s a considerable difference between the average value and the max value.</p><p>We can compare the general mean and standard deviation to see if we need to normalize the data as there’s a considerable difference between them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PVmOjkxG3HvyO2ZP.png" /></figure><p>For numerical continue variables, we can use a histogram or scatter plot, for categorical data, we commonly prefer bar plots or pie charts.</p><p>The goal is to analyze the target variable.</p><p>We can check again for missing values. Yes, still zero! We can check the number of unique values and the frequency distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0q-HvCNWQ4TW8y21.png" /></figure><p>And filter to show only positive class. We can see that the amount is variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0fZ16rkWwgsssuU9.png" /></figure><p>We can plot the outliers with boxplots. So we do that for amount and V25.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DoCn3pCDAlWysG6v.png" /></figure><p>Let’s see the coefficients (weight of variables).</p><p>We’re gonna use feature_names_in_.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XcXfbXlt52BtDYRa.png" /></figure><p>There are many very discriminating features especially V3, V15, V25 are very discriminating. amount is neutral. V7, V22 and V21 have a positive impact.</p><p>6. Training other models</p><p>We gonna use</p><ul><li>Decision tree</li><li>Naive Bayes</li><li>Support vector machine (SVM)</li><li>Random Forest</li><li>Gradient Boosting</li></ul><p>Random forest is the best score!</p><p>As seen above the area under the ROC curve varies from 0 to 1, with 1 being ideal and 0.5 being random. An AUC (Area Under the ROC Curve) of 0.9 indicates a reasonably good model; 0.8 is alright, 0.7 is not very good, and 0.6 indicates quite poor performance. The score indicates how well the model separates positive and negative labels.</p><p>Logistic regression is better. We’re gonna use the first model with Random forest.</p><p>The output is a matrix with predictions. For each credit card, it outputs two numbers, which are the probability of being non-fraudulent and the probability of being fraudulent. We select the second column, we don’t need both (the probability of being fraudulent).</p><p>Also zero. So our model had guessed well.</p><p>That’s it.</p><p>What you can do now is deploy the model or improve the score. To improve the score, you can do some feature engineering or try other combinations for the hyperparameters.</p><p>Here is the <a href="https://gist.github.com/codistwa/1002809425602457e2d5108ce12842ad">link</a> to the code.</p><p>See you next time for the second part.</p><p><em>Originally published at </em><a href="https://codistwa.com/blog/credit-card-fraud-detection-part-1-1"><em>https://codistwa.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16de6853cd6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s the Gini index for machine learning?]]></title>
            <link>https://medium.com/@assitan/whats-the-gini-index-for-machine-learning-a9f4161c7c66?source=rss-2599233f8695------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9f4161c7c66</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Assitan Koné]]></dc:creator>
            <pubDate>Tue, 06 Dec 2022 12:12:02 GMT</pubDate>
            <atom:updated>2022-12-06T19:14:48.216Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kvf_vF6liBc9TdIHflNqfw.png" /><figcaption>A cat taking a decision — Dall-E</figcaption></figure><p>The Gini index is used for decision trees. Indeed, how do we know how to separate the root node? Well, there are a couple of methods, and the Gini index is good. First, it allows checking if the leaves containing labels are pure or impure.</p><p>That’s right, the more diverse the leaves are, the higher the Gini index is. Why? Because if, let’s say, you want to recommend a product using a decision tree, you want to make sure that the leaves are the most homogeneous possible so that you can be confident in your proposition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rdZKsryRJ2PEfY6hkoh2WA.png" /></figure><p>When we glance, we can think that feature A gives leaves with less diversity, so a better score, because we have 3 purple circles and two red circles. But you know what, let’s be a bit more rigorous.</p><p>So to choose which feature we use as the root tree, we calculate the diversity of the leaves.</p><p>This is the formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I6ewWgRGgV_QKeEfwPaNnw.png" /></figure><p>Then we compare the mean of each tree and choose the lowest number. Our winner is feature A!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0AQusadiBicCi08p02pLDw.png" /></figure><p>That’s it!</p><p>As a beginner in <strong>Data Science</strong>, are you overwhelmed by everything you need to put in your notebook? When and how to do feature engineering or which metrics use for validation? Then you can buy my <strong>Machine Learning Regression Starter Pack for Beginners</strong> on <a href="https://assitan.gumroad.com/l/machine-learning-regression-starter-pack-for-beginners/xsmleqj?_gl=1*t8oc8v*_ga*NTM4NzI0NjM3LjE2NzAxNTk5MDE.*_ga_6LJN6D94N6*MTY3MDM0OTg0Ny4yMy4xLjE2NzAzNTAzMDAuMC4wLjA.">Gumroad</a>! You‘ll have a -20% discount code: <strong>xsmleqj</strong></p><p>If you want to know more things about Data science and programming with illustrations, follow me on <a href="https://twitter.com/Assitan_K">Twitter</a> 😃</p><p><em>Originally published at </em><a href="https://codistwa.com/blog/what-s-the-gini-index-for-machine-learning"><em>https://codistwa.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9f4161c7c66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[8 tips to get better at coding]]></title>
            <link>https://medium.com/@assitan/8-tips-to-get-better-at-coding-7cfd50e1a8f9?source=rss-2599233f8695------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cfd50e1a8f9</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Assitan Koné]]></dc:creator>
            <pubDate>Tue, 16 Nov 2021 16:13:58 GMT</pubDate>
            <atom:updated>2021-11-18T18:41:15.230Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SHUfS4MdN97zAKHM.jpg" /></figure><p>You may be a junior, just out of a Bootcamp, and you can’t find a job, or in a job, but you feel like you’re stagnating. So you need advice that will help you improve your skills in coding and maybe be less frustrated. But, of course, you’ll have to be consistent to see the results.</p><p>So If you’re a front-end developer, back-end developer, data scientist, data engineer, etc., if you’re coding, here are 8 tips to get better at coding.</p><p>1. Know the main keyboard shortcuts</p><p>There are many keyboard shortcuts, but first, it is essential to know the main ones that you can find in all programs like code editors.</p><ul><li>Ctrl C: copy</li><li>Ctrl X: cut</li><li>Ctrl V: paste</li><li>Ctrl Z: cancel</li><li>Ctrl S: save</li><li>Ctrl Shift Z: redo</li><li>Ctrl F: search</li></ul><p>And when you have time, learn the other shortcuts. It helps to be faster rather than doing everything with a mouse, increasing your productivity. It must be a reflex for you.</p><p>2. Keep an eye on new things</p><p>Tech is evolving very fast, so it’s essential to keep itself informed. There are two ways of doing that, with specialized newsletters and conferences.</p><p>The newsletters allow you to know what’s new in a specific field, Front-end development, Machine learning, etc. You can find tutorials, events, courses. I advise you not to subscribe to too many newsletters. You may be overwhelmed and won’t have time to read them. I would say 3, 4 newsletters maximum. Also, create filters in your email, for example, a JavaScript filter or web development, data science, etc., so when you have time to can read them.</p><p>example:</p><ul><li>JavaScript Weekly</li><li>Node.js Weekly</li><li>Python Weekly</li><li>KDnuggets</li></ul><p>Conferences allow you to learn new topics, to be inspired, and to network, even if today it’s more complicated from a distance. When I go there, it motivates me. You can even try to get started to make your presentation. There are big conferences that last all day or meetups that last 2 hours. There are often recruiters at these conferences/meetups.</p><p>example :</p><p>3. Create tools to automate redundant tasks</p><p>Creating tools allows you to do cool little projects that can improve your daily life, so it’s practical and valuable. Every redundant task takes time that can be automated as much as possible. This also helps to avoid errors.</p><p>example: a file converter</p><p>4. Follow guiding styles</p><p>Even if each person codes personally, it is essential to unify the programs not to make them too complex. Your colleague must be able to resume your work if you are absent or on another project, and even for you if you have to dive back into it 6 months later, it will be easier for you (even if we are still shocked to see our code 6 months later!)</p><p>A guide style allows you to code in a uniform and logical way. There are very used guide styles like the Airbnb style for React. It really helps to code better. The style guides can be integrated into the development with so-called linters (a tool that analyzes the code for errors).</p><p>example: Airbnb style guide, pep 8 pour python, the style guide of google for ML, the style guide SQL of GitLab</p><p>5. Do personal projects</p><p>This is a mandatory step because it allows you to show your skills and to work on exciting subjects. This gives experience. Don’t forget to put them on GitHub. You can find ideas on Medium, Dev.to.</p><p>example:</p><ul><li>todo app, dashboard</li><li>e-commerce website</li><li>music interface</li><li>sentiment analysis with Twitter</li><li>animal image recognition</li></ul><p>6. Do code challenges</p><p>Challenges allow you to train on a specific subject, for example, on algorithms or logic exercises. Especially if you have a job interview, try to do it at least once a week.</p><p>example:</p><ul><li>Code Euler</li><li>Codewars</li><li>Kaggle</li><li>Codistwa (coming soon!)</li></ul><p>7. Find a community</p><p>There are communities on Slack, Discord, Quora, or Stack exchange that can help motivate you. You can find 100% women groups or communities that only talk about JavaScript, for example.</p><p>example: Women in ml &amp; data science, Babel.js, Open Data Community, welearnJS, workshops</p><p>8. Give courses/write technical articles</p><p>Writing an article may seem complicated, but several types of articles can help you get started. First, you write a technical or non-technical article. There is, for example, the good old feedback on a project you had a hard time on. Or a guide on a specific topic or tips/advice. A course will help you see if you master this or that subject, and in the worst case, thanks to the research done for this course, you will be able to update your knowledge. Finally, you will explain a concept to a colleague, which is a highly sought-after skill.</p><p>example: how you struggled with D3.js or simply “My last project with D3.js”</p><p>Conclusion</p><p>It’s hard to find ways to get better at coding, but fortunately, there are many options:</p><ul><li>Know the main keyboard shortcuts</li><li>Keep an eye on new things</li><li>Create tools to automate redundant tasks</li><li>Follow guiding styles</li><li>Do personal projects</li><li>Do code challenges</li><li>Find a community</li><li>Give courses/write technical articles</li></ul><p>Written by <a href="https://twitter.com/Assitan_k">@Assitan_k</a>.</p><p><em>Originally published at </em><a href="https://codistwa.com/blog/tips-to-get-better-at-coding"><em>https://codistwa.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cfd50e1a8f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React + D3.js + Canvas : challenges for a visual representation of an infrastructure]]></title>
            <link>https://medium.com/synthesio-engineering/react-d3-js-canvas-challenges-for-a-visual-representation-of-an-infrastructure-ff241a1e4cc6?source=rss-2599233f8695------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff241a1e4cc6</guid>
            <category><![CDATA[graph]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[d3js]]></category>
            <dc:creator><![CDATA[Assitan Koné]]></dc:creator>
            <pubDate>Tue, 03 Dec 2019 15:40:10 GMT</pubDate>
            <atom:updated>2021-09-29T12:33:12.303Z</atom:updated>
            <content:encoded><![CDATA[<h3>React + D3.js + Canvas: challenges for a visual representation of an infrastructure</h3><p><em>The goal of this application is to represent the services, processes, etc. visually.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w3UZV4H_MS3k3X8UMy02uw.png" /><figcaption>The project</figcaption></figure><p>We agreed to do a <a href="https://en.wikipedia.org/wiki/Force-directed_graph_drawing">force-directed graph</a> like this one <a href="http://visualdataweb.de/webvowl/#">http://visualdataweb.de/webvowl/#</a>. But because there are more than 300 nodes to represent and we chose canvas over SVG for performance reasons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gV0qkB85VpNvbpGTZ8Qnjw.gif" /><figcaption>The demo</figcaption></figure><h4>The purpose</h4><p>We wanted to create an open-source project; therefore, it was obvious to find an open-source tool. D3.js matches well. Also, this project needed a straightforward setup process.</p><p>Finally, there is a config system to have an agnostic application.</p><h4>The config</h4><p>We decided to use React for the front-end and Go for the back-end.</p><p>We used<strong> react-create-app </strong>instead of setup the project ourselves.</p><p>We used hooks and the actions and reducers were tested with Jest. Next, we added ESLint with Airbnb config. Finally, we set up rules and a pre-commit git hook system with husky. In sum, a classic configuration.</p><h4>The process</h4><p>It was complicated to find some examples online in canvas, unlike SVG, so we experimented a lot.</p><p>We mostly used this example <a href="https://bl.ocks.org/jodyphelan/5dc989637045a0f48418101423378fbd">https://bl.ocks.org/jodyphelan/5dc989637045a0f48418101423378fbd</a></p><p>We wanted basic features for a start :</p><ul><li>Display the status</li><li>Display the type</li><li>Display information when clicking on the node</li><li>Zooming/dragging</li><li>Searching</li></ul><h4>The difficulties</h4><p><em>Force/strength calculation :</em></p><p>We struggle to find the right balance to have a logical graph.</p><p><em>Drawing arrows :</em></p><p>The graph is not in SVG so we had to do some trigonometry.</p><p>Most difficulties were in D3 because we didn’t know this library well and the fact that there are just a few examples in canvas.</p><p>Also, we wanted to find a way to differentiate the nodes, so we thought about shapes or images. The nodes have a color corresponding to a specific type, and the status is shown with a circle around the node.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ac1ec1784f7d46c32a1a4504234d43f9/href">https://medium.com/media/ac1ec1784f7d46c32a1a4504234d43f9/href</a></iframe><h4>Future</h4><p>The aim was to create a base and then to open source it. So it’s the perfect project for a SRE team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff241a1e4cc6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/synthesio-engineering/react-d3-js-canvas-challenges-for-a-visual-representation-of-an-infrastructure-ff241a1e4cc6">React + D3.js + Canvas : challenges for a visual representation of an infrastructure</a> was originally published in <a href="https://medium.com/synthesio-engineering">Ipsos Synthesio Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Level up your JavaScript skills with 5 Github repositories]]></title>
            <link>https://medium.com/@assitan/level-up-your-javascript-skills-with-5-github-repo-447ee8882a9a?source=rss-2599233f8695------2</link>
            <guid isPermaLink="false">https://medium.com/p/447ee8882a9a</guid>
            <dc:creator><![CDATA[Assitan Koné]]></dc:creator>
            <pubDate>Mon, 18 Mar 2019 17:25:07 GMT</pubDate>
            <atom:updated>2021-09-29T12:35:52.868Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eWYm3Dm7s0t8lLWYRW4pow.jpeg" /><figcaption><a href="https://www.pexels.com/photo/coding-computer-data-depth-of-field-577585/">Illustration</a>: <a href="https://www.pexels.com/@kevin-ku-92347">https://www.pexels.com/@kevin-ku-92347</a></figcaption></figure><p>So you know the bases, you work with React, Vue, Angular, Node, VanillaJS, but sometimes you get stuck on your code, and that’s frustrating you?<br>Or maybe you want to be better at coding challenges. No matter the reason, these Github repositories will help you to be a better JavaScript developer anyway.</p><h4>Algorithms / Computer Science</h4><p><a href="https://github.com/trekhleb/javascript-algorithms">https://github.com/trekhleb/javascript-algorithms</a></p><p>You’ll find everything about algorithms and data structure; it’s complete, classed in two categories (Beginner/Advanced).<br>Of course, I advise you to start with the Beginner part.<br>There is information about Big O notation and data structure operations/array sorting algorithms complexity.</p><h4>Maths</h4><p><a href="https://github.com/Jam3/math-as-code">https://github.com/Jam3/math-as-code</a></p><p>Okay, you can do some maths in the repository above. But with this one, you’ll see way more maths like the Euclidean norm. So, therefore, how math formulas are represented in JavaScript.</p><h4>33 concepts you should know</h4><p><a href="https://github.com/leonardomso/33-js-concepts">https://github.com/leonardomso/33-js-concepts</a></p><p>In this repository, you’ll find algorithms, of course, but mainly what makes JavaScript: Call stack, Types, Scope, Generators, etc.<br>After that, you’ll be able to say, “yes, I know JavaScript works” 😏</p><h4>30 seconds of code</h4><p><a href="https://github.com/30-seconds/30-seconds-of-code">https://github.com/30-seconds/30-seconds-of-code</a></p><p>It gathers many snippets. The website is excellent, but you have the same content on the README file.<br>There are the specs and examples.</p><h4>Modern JS Cheatsheet</h4><p><a href="https://github.com/mbeaudru/modern-js-cheatsheet">https://github.com/mbeaudru/modern-js-cheatsheet</a></p><p>So yes, this is a cheat sheet. And a perfect one. You have many examples and explanations.</p><p>I hope these repositories will help you. It’s a lot of information, but you’ll find many codes to practice.</p><p>Don’t hesitate to share other repositories.</p><p>Feel free to follow me on Twitter: <a href="http://twitter.com/Assitan_K">@Assitan_K</a></p><p>You can also check out my Courses platform <a href="https://codistwa.com/">Codistwa</a> and my <a href="https://www.youtube.com/channel/UCpjOGjTD5BVZ_3pvO34NVGg">YouTube channel</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=447ee8882a9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 tips to challenge yourself as a Web Developer]]></title>
            <link>https://medium.com/@assitan/3-tips-to-challenge-yourself-as-a-web-developer-bebef98e9154?source=rss-2599233f8695------2</link>
            <guid isPermaLink="false">https://medium.com/p/bebef98e9154</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[redux-saga]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Assitan Koné]]></dc:creator>
            <pubDate>Fri, 30 Nov 2018 09:55:17 GMT</pubDate>
            <atom:updated>2021-09-29T12:38:47.500Z</atom:updated>
            <content:encoded><![CDATA[<h3>3 tips for challenging yourself as a Web Developer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qatotphqCyOKDuGbDl4Qwg.jpeg" /></figure><p>The technological watch is good but can go a step further.</p><h4>Automate everything you can</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DrKc7wEs4O5q6mwUCy0dCg.jpeg" /></figure><p>As a web developer, you have to be lazy. Every painful, repetitive task can be automated. Try making a list to identify those repetitive tasks.</p><p>Don’t you have a CLI in your project? Create one. You can make a script that generates directories, files specifically for your project.</p><p>If you are a Front-end Developer, try to use Node.js, make a little script, or if you are interested in another language, it would be the opportunity to learn new things.</p><h4>Know how things work under the hood</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e9xZLyReopougN3kd_Nl8Q.jpeg" /></figure><p>With platforms like Github, you can access significant, free documentation. So be curious about how your modules work, especially the big ones.</p><p>For instance, you can check <a href="https://github.com/redux-saga/redux-saga">Redux-saga’s repository</a>. They use exciting features of ES.next.</p><p>You have to go in the source code, read the code or clone the repository and play with it. Although it can be very intimidating, regularly doing this process will be more accessible and natural for you.</p><h4>Explain a concept</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a2cFEVU4AnvOmFqcvzE4kQ.jpeg" /></figure><blockquote>Whatever is well conceived is clearly said. And the words to say it flow with ease.</blockquote><p>This sentence was said by the French author <a href="https://en.wikipedia.org/wiki/Nicolas_Boileau-Despr%C3%A9aux">Nicolas Boileau</a>. Indeed, what is very interesting is if you can’t explain something clearly, you may not have well understood the concept.</p><p>Make analogies, use visual images, make drawings.</p><p>With this approach, you can see what is not clear for you. This is an excellent exercise. Try with your colleagues or even your friends, family, like so, you will see if you can vulgarize.</p><p>I hope this article was helpful. Feel free to follow me on <a href="https://twitter.com/Assitan_K?s=09">Twitter</a>. 😊</p><p>You can also check out my Courses platform <a href="https://codistwa.com/">Codistwa</a> and my <a href="https://www.youtube.com/channel/UCpjOGjTD5BVZ_3pvO34NVGg">YouTube channel</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bebef98e9154" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a simple i18n doc with VuePress]]></title>
            <link>https://medium.com/@assitan/create-a-simple-i18n-doc-with-vuepress-abf55a8eecd0?source=rss-2599233f8695------2</link>
            <guid isPermaLink="false">https://medium.com/p/abf55a8eecd0</guid>
            <category><![CDATA[vuepress]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[netlify]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Assitan Koné]]></dc:creator>
            <pubDate>Wed, 21 Nov 2018 20:14:10 GMT</pubDate>
            <atom:updated>2021-09-29T12:43:27.285Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*p8soBWZAlLDyBPRuhaKZ9A.jpeg" /></figure><h4><em>and deploy quickly with Netlify</em></h4><p><a href="https://vuepress.vuejs.org/"><strong>VuePress</strong></a> is a static site generator made by the creator of <em>VueJS</em>. <em>Vue-apollo</em>, <em>Vue-test-utils</em>, etc., use this tool for their documentation. We will see how we can use it to create excellent documentation and deploy with <em>Netlify</em>.</p><p>Read my article on Netlify :</p><p><a href="https://medium.com/@assitan/netlify-ideal-deployment-tool-for-a-front-end-developer-46220d3bbd86">Netlify, ideal deployment tool for a Front-end developer</a></p><h4><a href="https://vigorous-bell-e9f7df.netlify.com/">Demo</a>.</h4><p>The code is <a href="https://github.com/Assitan/tuto-vuepress">here</a>.</p><p>Let&#39;s get started.</p><h4>Setup</h4><p>You need to add <strong>vuepress</strong> globally. Create a directory named <strong>tuto-vuepress</strong>. Go inside and create a <em>README.md</em> file.</p><pre># install globally<br>yarn global add vuepress # OR npm install -g vuepress</pre><pre>➜ tuto-vuepress echo ‘# VuePress tuto’ &gt; README.md</pre><p>Create a directory named <strong>docs</strong> and put it inside a directory named <strong>.vuepress</strong>. Then create inside a file named <strong>config.js</strong>. In this file, we will add the name of the app, the routes, etc.</p><p>Add these commands in a <em>package.json</em> file. They allow to start and build.</p><pre>{<br>  &quot;scripts&quot;: {<br>    &quot;docs:dev&quot;: &quot;vuepress dev docs&quot;,<br>    &quot;docs:build&quot;: &quot;vuepress build docs&quot;<br>  }<br>}</pre><p>Run the docs in your terminal, then go to <a href="http://localhost:8080/">http://localhost:8080/</a>. Every time you modify, the app reloads automatically so you can see it.</p><pre>yarn docs:dev # OR npm run docs:dev</pre><h3>Documentation</h3><h4>Context</h4><p>This documentation will explain to your friend how to take care of your 3 pets, your dog Otis, your cat Bolt, and your rabbit Goody, during your vacation. Bonus, it&#39;s also in French 😉</p><p>Let&#39;s see what we are going to do.</p><h4>Routes</h4><p>We want to get this :</p><pre>/otis<br>/otis/food.html<br>/otis/hoobies.html<br>/bolt<br>/bolt/food.html<br>/bolt/hoobies.html<br>/goody<br>/goody/food.html<br>/goody/hoobies.html</pre><h4>Internationalization</h4><p>This documentation will be in English and french. So we need to start the URL with <strong>/fr/</strong>.</p><pre>/fr/otis<br>/fr/otis/food.html<br>/fr/otis/hoobies.html<br>/fr/bolt<br>/fr/bolt/food.html<br>/fr/bolt/hoobies.html<br>/fr/goody<br>/fr/goody/food.html<br>/fr/goody/hoobies.html</pre><h4>Sidebar</h4><p>In the sidebar, we&#39;ll find the three categories with the sub-links. It&#39;s essential to add a <em>README.md</em> file in the root of each category if we want these URLs to work.</p><h4>Navbar</h4><p>In the navbar, there are the categories, languages, and an external link to this project&#39;s repository.</p><h4>Assets</h4><p>We&#39;ll add a cute photo of these pets.</p><p>In the end, we&#39;ll have this structure :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*LPPo8DRqYqJY8H1M_guV7g.png" /></figure><h3>Dev</h3><p>We add a quick introduction to the main <em>README.md</em> file (at the root of the project). After that, you can write whatever you want.</p><p>Now, let&#39;s create the routes and set up the locales in the <em>config.js.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*c9vhQRX8er2XZ65v6fw7Ew.png" /></figure><pre># config.js</pre><pre>module.exports = {<br>  title: &#39;Tuto VuePress / Netlify&#39;,<br>  description: &#39;Tuto VuePress / Netlify&#39;,<br>  locales: {<br>    &#39;/&#39;: {<br>      lang: &#39;en-US&#39;,<br>      title: &#39;Tuto VuePress / Netlify&#39;,<br>      description: &#39;How to take care of my pets&#39;,<br>    },<br>    &#39;/fr/&#39;: {<br>      lang: &#39;fr-FR&#39;,<br>      title: &#39;Tuto VuePress / Netlify&#39;,<br>      description: &#39;Comment s\&#39;occuper de mes animaux&#39;,<br>    },<br>  },<br>};</pre><p>Then we need to set the routes, sidebar, and navbar. Again, everything is in the <strong>themeConfig</strong> part (still in the <em>module.exports</em>).</p><pre>themeConfig: {<br>    docsDir: &#39;docs&#39;,<br>    locales: {<br>      &#39;/&#39;: {<br>        label: &#39;English&#39;,<br>        selectText: &#39;Languages&#39;,<br>        sidebar: {<br>          &#39;/otis/&#39;: [<br>            {<br>              title: &#39;My dog - Otis&#39;,<br>              collapsable: false,<br>              children: [&#39;food&#39;, &#39;hobbies&#39;],<br>            },<br>          ],<br>          &#39;/bolt/&#39;: [<br>            {<br>              title: &#39;Bolt&#39;,<br>              collapsable: false,<br>              children: [&#39;food&#39;, &#39;hobbies&#39;],<br>            },<br>          ],<br>          &#39;/goody/&#39;: [<br>            {<br>              title: &#39;My rabbit - Goody&#39;,<br>              collapsable: false,<br>              children: [&#39;food&#39;, &#39;hobbies&#39;],<br>            },<br>          ],<br>          &#39;/&#39;: [&#39;&#39;], // fallback<br>        },<br>        nav: [<br>          {text: &#39;&#39;, link: &#39;/&#39;},<br>          {text: &#39;Otis&#39;, link: &#39;/otis/&#39;},<br>          {text: &#39;Bolt&#39;, link: &#39;/bolt/&#39;},<br>          {text: &#39;Goody&#39;, link: &#39;/goody/&#39;},<br>          {text: &#39;Github&#39;, link: &#39;<a href="https://github.com/Assitan/tuto-vuepress&#39;">https://github.com/Assitan/tuto-vuepress&#39;</a>},<br>        ],<br>      },<br>      &#39;/fr/&#39;: {<br>        label: &#39;Français&#39;,<br>        selectText: &#39;Langues&#39;,<br>        sidebar: {<br>          &#39;/fr/otis/&#39;: [<br>            {<br>              title: &#39;Mon chien - Otis&#39;,<br>              collapsable: false,<br>              children: [&#39;food&#39;, &#39;hobbies&#39;],<br>            },<br>          ],<br>          &#39;/fr/bolt/&#39;: [<br>            {<br>              title: &#39;Mon chat - Bolt&#39;,<br>              collapsable: false,<br>              children: [&#39;food&#39;, &#39;hobbies&#39;],<br>            },<br>          ],<br>          &#39;/fr/goody/&#39;: [<br>            {<br>              title: &#39;Mon lapin - Goody&#39;,<br>              collapsable: false,<br>              children: [&#39;food&#39;, &#39;hobbies&#39;],<br>            },<br>          ],<br>          &#39;/&#39;: [&#39;&#39;], // fallback<br>        },<br>        nav: [<br>          {text: &#39;Otis&#39;, link: &#39;/fr/otis/&#39;},<br>          {text: &#39;Bolt&#39;, link: &#39;/fr/bolt/&#39;},<br>          {text: &#39;Goody&#39;, link: &#39;/fr/goody/&#39;},<br>          {text: &#39;Github&#39;, link: &#39;<a href="https://github.com/Assitan/tuto-vuepress&#39;">https://github.com/Assitan/tuto-vuepress&#39;</a>},<br>        ],<br>      },<br>    },<br>  },</pre><p>I set collapsable to false because there are not many links, no need to be collapsable. Be careful of the fallback; it&#39;s essential to have a link related to the main <em>README</em> file in the sidebar. In the children&#39;s array, set the name of the files without the extension (.md). &quot;<em>label</em>&quot; and &quot;<em>selectText</em>&quot; is for the navigation (switch languages).</p><p>Create the directories (bolt, goody, otis) corresponding to the routes, and inside of them, markdown files named food and hobbies. You&#39;ll see in the sidebar structure the title of these files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*5is5ih4qUBjMl-g0wW8ZKw.png" /></figure><p>Add also a directory named &quot;<em>fr</em>&quot; with the same directories names. All the directories have a <em>README.md</em> file introducing the pet and two other markdown files presenting the hobbies and the food.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*Azyjh06xpOnfojm0hW29zw.png" /></figure><p>Finally, we added some pictures. Again, you can find <a href="https://burst.shopify.com/">this website</a>.</p><p>Go inside each <em>README.md</em> file and add a title, a description, and a picture.</p><p>The pictures are in the <strong>public</strong> directory (inside the <strong>.vuepress</strong> directory). We can reach them by putting a slash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*PIusDRSHE-vjtyevt4YpAQ.png" /></figure><pre>bolt/README.md</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*9FnvapYCKLlaXDnAzyUfHQ.png" /></figure><p>As you can see, we can put an HTML code; it&#39;s convenient, especially if you want to specify a size.</p><p>You can get all the texts <a href="https://github.com/Assitan/tuto-vuepress/tree/master/docs">in the repository</a>.</p><h4>Deployment</h4><p>We will deploy with <a href="https://www.netlify.com/">Netlify</a>. Create an account.</p><p>Add your repository or drag &amp; drop your project directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXG-0dvUMS2Aefsfp_s60g.png" /><figcaption>get your repository</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hUChEgUycAKvwSLqrifZkQ.png" /><figcaption>drag and drop</figcaption></figure><p>You don&#39;t need to create the dist directory; Netlify will create one by running the build command.</p><p>Add the settings :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JNKx89uR-167kivPSQUwcA.png" /></figure><p>Deploy!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hDht3I6h_YDQ-ZGXpmI-3Q.png" /></figure><h4>Et voilà</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Y8xUOrAQgMD8oRH5D5Wpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mqveYNt8Rj0bK6UA7xAq3g.png" /><figcaption>The result</figcaption></figure><h4><strong>Conclusion</strong></h4><p>I hope this article was helpful. Feel free to explore <a href="https://vuepress.vuejs.org/">VuePress</a>. I like this tool, but if something is missing, like a markdown file, there is no specific error; it&#39;s just visual (e.g., the sidebar links not showing). As you can see, you can deploy very quickly with Netlify.</p><p>You can follow me on Twitter <a href="https://twitter.com/Assitan_K">@Assitan_K</a>.</p><p>You can also check out my Courses platform <a href="https://codistwa.com/">Codistwa</a> and my <a href="https://www.youtube.com/channel/UCpjOGjTD5BVZ_3pvO34NVGg">YouTube channel</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abf55a8eecd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>