<?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 Dinari Yasmine on Medium]]></title>
        <description><![CDATA[Stories by Dinari Yasmine on Medium]]></description>
        <link>https://medium.com/@ly_dinari?source=rss-3845c74eb042------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Q4DoarjkqU-E5wLU</url>
            <title>Stories by Dinari Yasmine on Medium</title>
            <link>https://medium.com/@ly_dinari?source=rss-3845c74eb042------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 06:34:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ly_dinari/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[Building a Mini-Compiler: A Journey Through Lexical, Syntax, and Semantic Analysis]]></title>
            <link>https://medium.com/@ly_dinari/introduction-7586b5be81e8?source=rss-3845c74eb042------2</link>
            <guid isPermaLink="false">https://medium.com/p/7586b5be81e8</guid>
            <category><![CDATA[compilers]]></category>
            <category><![CDATA[yacc]]></category>
            <category><![CDATA[lex]]></category>
            <category><![CDATA[programming-languages]]></category>
            <dc:creator><![CDATA[Dinari Yasmine]]></dc:creator>
            <pubDate>Thu, 08 May 2025 22:15:40 GMT</pubDate>
            <atom:updated>2025-05-08T22:18:39.663Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekJ8r5j4We6rNtaNlkVU5w.png" /></figure><h3>Introduction</h3><p>Compilation is a fundamental process in computer science, transforming high-level code into machine-readable instructions. In our project, we set out to build a <strong>mini-compiler</strong> for a programming language inspired by <strong>Khwarizm</strong>: <strong>HumanScript</strong>. Our goal was to create a <strong>user-friendly language</strong> with an intuitive syntax that simplifies programming for beginners while maintaining robust computational principles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/0*bOWWSDDRGJw2k12F.png" /></figure><p>This article will guide you through the different phases of our compiler’s development, focusing on the <strong>semantic analysis phase, </strong>a crucial step in ensuring that the written code adheres to the rules of the language. We will explore how we designed the <strong>symbol table</strong>, generated <strong>intermediate code using quadruples</strong>, and implemented <strong>semantic routines</strong> for control structures like loops.</p><p>Let’s begin by introducing <strong>HumanScript</strong>, its inspirations, and its core design principles.</p><h3>HumanScript: A Language Designed for Readability</h3><p>HumanScript is a programming language inspired by <strong>Khwarizm</strong>, an educational language. The primary goal of HumanScript is to combine the efficiency of formal programming languages with a natural, human-like syntax. This makes the language more accessible and easier to learn, especially for beginners. The syntax of HumanScript is designed to be intuitive, resembling everyday language while maintaining robust computational concepts.</p><p>Here’s an example of code written in HumanScript:</p><pre>Let int x be 6<br>Let Dict nom be {&quot;Family name&quot;: &quot;REZZOUG&quot;, &quot;first name&quot;: &quot;Aicha&quot;}<br>int r<br>r == 3<br>const float m be 3.14<br>const bool n be true<br>Let int y be 3<br>Let int z be y * x<br>Let float k be m + 1.3</pre><p>As you can see, the syntax is straightforward and easy to understand, making it an excellent choice for educational purposes.</p><h3>Lexical Analysis: The First Step in Compilation</h3><p>The first phase of any compiler is <strong>lexical analysis</strong>. This step involves breaking down the source code into a series of <strong>tokens</strong> (or lexemes), which are the basic building blocks of the language. These tokens are then passed on to the next stages of the compilation process, such as syntax and semantic analysis.</p><p>In the case of HumanScript, the lexical analyzer was modified to include type assignments, which allow for type compatibility checks during the semantic analysis phase. This ensures that the compiler can detect type mismatches early in the process, reducing the likelihood of runtime errors.</p><h3>Key Components of Lexical Analysis</h3><p>1. <strong>Tokenization</strong>: The process of converting a sequence of characters into a sequence of tokens.<br>2. <strong>Type Checking</strong>: Ensuring that variables and operations are compatible in terms of data types.<br>3. <strong>Error Detection</strong>: Identifying and reporting lexical errors, such as invalid characters or incorrect syntax.</p><h3>Syntax Analysis: Building the Parse Tree</h3><p>Once the lexical analysis is complete, the next step is <strong>syntax analysis</strong>. This phase involves parsing the tokens to ensure they conform to the grammatical rules of the language. In HumanScript, the syntax analysis was implemented using a <strong>top-down parsing</strong> approach, which is a common technique in compiler design.</p><h3>Steps in Syntax Analysis</h3><p>1. <strong>Grammar Selection</strong>: Choosing a subset of the HumanScript grammar to focus on.<br>2. <strong>Grammar Refinement</strong>: Ensuring the grammar is clean and free of ambiguities.<br>3. <strong>Construction of FIRST and FOLLOW Sets</strong>: These sets are used to build the parsing table, which guides the parser in making decisions during the parsing process.<br>4. <strong>Parsing Table Construction</strong>: Creating a table that maps non-terminal symbols to production rules based on the current input token.</p><h3>Example of Syntax Analysis in HumanScript</h3><p>Here’s an example of how the syntax analyzer works in HumanScript:</p><pre>hind23@DESKTOP-05BNM2D:~$ gcc -o prog prog.c tableSymboles.c<br>hind23@DESKTOP-05BNM2D:~$ ./prog<br>Donner déclaration : intt x<br>Erreur! intt<br>hind23@DESKTOP-05BNM2D:~$ gcc -o prog prog.c tableSymboles.c<br>hind23@DESKTOP-05BNM2D:~$ ./prog<br>Donner déclaration : int c<br>La chaine est syntaxiquement correcte !</pre><p>In this example, the syntax analyzer detects an error when an invalid type (`intt`) is used, but it accepts a valid declaration (`int c`).</p><h3>Syntax Analysis with Bison</h3><p>The team used <strong>Bison</strong>, a popular parser generator, to implement the syntax analysis. Bison allows developers to define the grammar rules and automatically generates the parsing code. Here’s an example of how the grammar rules were defined in Bison:</p><pre>%left LOGICAL_OR<br>%left LOGICAL_AND<br>%left EQUAL NOT_EQUAL<br>%left LESS_THAN GREATER_THAN LESS_EQUAL GREATER_EQUAL<br>%left ADD SUB<br>%left MUL DIV MOD INT_DIV<br>%right LOGICAL_NOT<br>%nonassoc UMINUS /* For unary negation */</pre><p>These rules define the precedence and associativity of operators in HumanScript, ensuring that expressions are parsed correctly.</p><h3>Semantic Analysis: Understanding the Meaning</h3><p>After the syntax analysis, the compiler moves on to <strong>semantic analysis</strong>. This phase is concerned with the meaning of the code, ensuring that the program makes sense in terms of the language’s semantics. The semantic analyzer checks for type compatibility, variable declarations, and other semantic rules.</p><h3>Key Steps in Semantic Analysis</h3><p>1. <strong>Transformation of Syntax Grammar into Semantic Grammar</strong>: This step involves adding semantic actions to the grammar rules.<br>2. <strong>Intermediate Code Generation</strong>: The compiler generates an intermediate representation of the code,in the form of <strong>quadruples</strong>.<br>3. <strong>Adding Semantic Routines</strong>: These routines perform checks and transformations during the semantic analysis phase.</p><h3>Symbol Table: The Heart of Semantic Analysis</h3><p>The <strong>symbol table</strong> is a critical data structure in semantic analysis. It stores information about variables, functions, and other symbols in the program. In HumanScript, the symbol table is implemented as a <strong>hash table</strong>, where each entry contains the following information:</p><p>- ID: A unique identifier for the symbol.<br>- Name: The name of the variable or constant.<br>- Type: The data type (e.g., integer, float, boolean, etc.).<br>- Value: The current value of the variable.<br>- isConst: A boolean indicating whether the symbol is a constant.<br>- isInitialized: A boolean indicating whether the variable has been initialized.<br>- scopeLevel: The scope level of the symbol, used to manage nested blocks.<br>- next: A pointer to the next entry in the same bucket (for handling collisions).</p><h3>Semantic Routines and Quadruples</h3><p>The semantic analyzer generates <strong>quadruples</strong>, which are a form of intermediate code. Each quadruple consists of an operator and up to three operands. Here’s an example of how quadruples are generated for a simple program in HumanScript:</p><pre>Quad[1]=[ := , 0 , , x ]<br>Quad[2]=[ := , 10 , , num ]<br>Quad[3]=[ := , 3.14 , , y ]<br>Quad[4]=[ := , 5 , , o ]<br>Quad[5]=[ + , 10 , 5 , t5 ]<br>Quad[6]=[ := , 15 , , h ]<br>Quad[7]=[ := , true , , isActive ]<br>Quad[8]=[ CONCAT , Aicha , Rezzoug , t8 ]<br>Quad[9]=[ := , AichaRezzoug , , name ]<br>Quad[10]=[ ARRAY_DECL , numbers , [1,2,3,4,5] , t10 ]</pre><p>These quadruples represent the intermediate steps that the compiler takes to execute the program.</p><h3>Handling Control Structures: The Repeat-Until Loop</h3><p>One of the key challenges in semantic analysis is handling control structures, such as loops and conditionals. In HumanScript, the Repeat-Until loop is a control structure that executes a block of code at least once and then checks a condition to determine whether to repeat the execution.</p><p>Here’s how the Repeat-Until loop is translated into quadruples:</p><pre>RepeatLoop: RepeatStart StatementList RepeatEnd;<br>RepeatStart: REPEAT COLON {<br> int repeatId = qc;<br> char repeatStartLabel[20];<br> sprintf(repeatStartLabel, &quot;REPEAT_START_%d&quot;, repeatId);<br> inserepQuadreplet(&amp;q, repeatStartLabel, &quot;&quot;, &quot;&quot;, &quot;&quot;, qc++);<br> empiler(stack, repeatId);<br>}<br>RepeatEnd : UNITL Expression ENDREPEAT<br>{<br>int repeatId = depiler(stack);<br> char repeatStartLabel[20];<br> char repeatEndLabel[20];<br> sprintf(repeatStartLabel, &quot;REPEAT_START_%d&quot;, repeatId);<br> sprintf(repeatEndLabel, &quot;REPEAT_END_%d&quot;, repeatId);<br> char typestr[MAX_TYPE_LENGTH];<br> getTypestring($2.type, typestr);<br>if (!strcmp(typeStr,&quot;boolean&quot;)) {<br> yverror(&quot;Repeat-until condition must be a boolean expression&quot;);<br> YVERROR;<br> }<br> inserepQuadreplet(&amp;q, &quot;BZ&quot;, repeatStartLabel, &quot;&quot;, $2.value, qc++);<br> inserepQuadreplet(&amp;q, repeatEndLabel, &quot;&quot;, &quot;&quot;, &quot;&quot;, qc++);<br>}</pre><p>This code snippet shows how the compiler generates quadruples for the Repeat-Until loop, ensuring that the loop executes correctly and that the condition is properly evaluated.</p><h3>Conclusion: A Successful Mini-Compiler</h3><p>Building a <strong>mini-compiler</strong> for HumanScript was both a challenging and rewarding experience. We successfully implemented a <strong>lexical analyzer, syntax parser, and semantic analyzer</strong>, allowing us to generate <strong>intermediate code in the form of quadruples</strong>. By focusing on readability and structured programming, HumanScript serves as a stepping stone for beginners exploring the world of programming languages and compilation.</p><p>Through this project, we deepened our understanding of <strong>symbol tables, semantic rules, and control structures like loops</strong>. The journey of compiler construction has reinforced key computer science principles and given us a hands-on experience in developing language processing tools.</p><p>While our current implementation is a great starting point, there is always room for improvement. Future enhancements could include <strong>optimizations, additional language features, and a full-fledged backend for final code generation</strong>.</p><p>We hope this article provided you with valuable insights into the fascinating world of <strong>compilation and language design</strong>.</p><p><a href="https://github.com/dinariyasmine/HumanScript-Compiler">HumanScript Github repo</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7586b5be81e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Federated Learning: The Future of Privacy-Preserving AI]]></title>
            <link>https://medium.com/@ly_dinari/federated-learning-the-future-of-privacy-preserving-ai-813540631b3d?source=rss-3845c74eb042------2</link>
            <guid isPermaLink="false">https://medium.com/p/813540631b3d</guid>
            <category><![CDATA[federated-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mimic]]></category>
            <category><![CDATA[fedavg]]></category>
            <dc:creator><![CDATA[Dinari Yasmine]]></dc:creator>
            <pubDate>Thu, 01 May 2025 18:01:12 GMT</pubDate>
            <atom:updated>2025-05-01T18:01:12.465Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*neAEK_jX3McUyl1c.png" /></figure><h3>Introduction</h3><p>With the rapid advancement of Big Data and Artificial Intelligence (AI), ensuring data privacy, security, and computational efficiency has become a growing challenge. Traditional machine learning models rely on centralized data storage, which raises concerns about data breaches and regulatory compliance. Federated Learning (FL) presents a revolutionary approach by enabling distributed model training without sharing raw data. This technique is particularly advantageous in sensitive fields like healthcare, finance, and personal device applications.</p><p>This article provides an in-depth exploration of Federated Learning, covering its theoretical foundations, algorithmic structure, real-world applications, implementation, challenges, and future research directions.</p><h3>1. Understanding Federated Learning</h3><h3>1.1 What is Federated Learning?</h3><p>Federated Learning (FL) is a decentralized machine learning technique that allows multiple edge devices or organizations to train a shared model collaboratively without exchanging raw data. Instead of aggregating data in a central server, FL enables local training on devices, and only model updates are shared with a central entity for aggregation.</p><p>This paradigm helps preserve privacy, reduce communication costs, and comply with data protection regulations such as GDPR (General Data Protection Regulation) and HIPAA (Health Insurance Portability and Accountability Act).</p><h3>1.2 Key Characteristics of FL</h3><p>FL differs from traditional machine learning approaches in several key aspects:</p><ul><li><strong>Data Remains Local</strong> — Instead of transferring data to a central server, each device trains the model using local data and only transmits updated parameters.</li><li><strong>Privacy-Preserving</strong> — As no raw data is shared, FL mitigates the risk of data breaches and unauthorized access.</li><li><strong>Collaborative Learning</strong> — Multiple participants (edge devices, hospitals, companies) contribute to training a robust, generalizable global model.</li><li><strong>Asynchronous Training</strong> — Devices participate in training at different times, depending on availability and computational resources.</li><li><strong>Efficient Communication</strong> — Instead of sharing complete datasets, FL transmits only model updates, reducing bandwidth requirements.</li><li><strong>Model Personalization</strong> — Local adaptation allows FL models to be personalized while still benefiting from global learning.</li><li><strong>Fault Tolerance</strong> — If a device fails to send an update, the training process continues with the remaining participants.</li></ul><h3>2. Federated Learning Workflow and Algorithms</h3><h3>2.1 Federated Learning Workflow</h3><p>Federated Learning follows a structured pipeline consisting of the following key steps:</p><ol><li><strong>Global Model Initialization</strong> — A central server initializes the model with predefined parameters.</li><li><strong>Model Distribution</strong> — The global model is sent to selected client devices.</li><li><strong>Local Model Training</strong> — Each client trains the model locally using its private data.</li><li><strong>Model Updates Transmission</strong> — Clients send updated model parameters back to the server.</li><li><strong>Model Aggregation</strong> — The central server aggregates updates to refine the global model.</li><li><strong>Iteration &amp; Convergence</strong> — The process is repeated over multiple rounds until convergence.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*CINQVETFMm2UpAXesvPgsg.png" /><figcaption>Federated Learning Architecture</figcaption></figure><h3>2.2 Core Algorithms in Federated Learning</h3><p>Several algorithms have been proposed to optimize FL performance:</p><h4>Federated Averaging (FedAvg)</h4><p>FedAvg is the most commonly used FL algorithm, introduced by Google in 2016. It works by computing a weighted average of the model updates received from clients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*La5PffHNlQQRMKmMCYL36g.png" /></figure><h4>FedProx</h4><p>FedProx improves FedAvg by adding a regularization term to minimize the difference between local and global models, enhancing stability in non-IID data scenarios.</p><h4>FedAdam &amp; FedYogi</h4><p>These methods adapt techniques from Adam optimization to improve convergence speed and robustness.</p><h4>SCAFFOLD &amp; FedDyn</h4><p>These techniques introduce variance reduction strategies to improve performance in heterogeneous data distributions.</p><h3>3. Implementation of Federated Learning</h3><h3>3.1 Dataset Selection: MIMIC-III</h3><p>For our implementation, we used <strong>MIMIC-III</strong>, a publicly available medical dataset containing over 2 million patient observations. It includes patient demographics, vital signs, laboratory results, and diagnostic information.</p><h3>3.2 Classification Task: Predicting ICU Mortality</h3><p>We tackled a <strong>binary classification</strong> problem where the model predicts whether a patient admitted to the ICU will survive or not. The classification is performed using a neural network with the following structure:</p><ul><li><strong>Input Layer</strong> — 17 patient health parameters</li><li><strong>Hidden Layer</strong> — 64 neurons with ReLU activation</li><li><strong>Output Layer</strong> — 1 neuron with Sigmoid activation</li><li><strong>Loss Function</strong> — Binary Cross Entropy Loss (<strong>BCEWithLogitsLoss</strong>)</li></ul><h3>3.3 Model Training using Federated Learning</h3><p><strong>Implementation Notebook</strong></p><p>To explore the technical details and see the full implementation of our Federated Learning project using the MIMIC-III dataset, you can check out this notebook:</p><p><a href="https://www.kaggle.com/code/yasminedinari2003/federated-learning-mimic-iii">https://www.kaggle.com/code/yasminedinari2003/federated-learning-mimic-iii</a></p><p>The <strong>FedAvg</strong> algorithm was used to train the model across multiple simulated hospitals. The training pipeline consisted of:</p><ol><li><strong>Data Partitioning</strong> — MIMIC-III was split across 10 simulated institutions.</li><li><strong>Local Model Updates</strong> — Each hospital trained its local model on its respective data.</li><li><strong>Model Aggregation</strong> — The global model was updated based on local updates.</li><li><strong>Evaluation</strong> — Performance was measured using <strong>accuracy, precision, recall, and F1-score</strong>.</li></ol><h3>3.4 Implementation Results</h3><p>Our federated learning implementation achieved the following results:</p><p>Model Type Accuracy Precision Recall F1 Score <strong>Federated</strong> 90.87% 82.25% 70.88% 76.14% <strong>Centralized</strong> 89.23% 74.60% 72.16% 73.36%</p><p>These results demonstrate that our <strong>federated learning approach</strong> achieved comparable and even slightly better performance than the <strong>centralized model</strong>, while preserving data privacy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TRbiNIlhh3c9bIlUxeDnUg.png" /><figcaption><strong>Federated Learning vs Centralized Learning Performance</strong></figcaption></figure><h3>4. Challenges and Future Directions in Federated Learning</h3><h3>4.1 Challenges</h3><ul><li><strong>Communication Overhead</strong> — Frequent model updates require substantial bandwidth.</li><li><strong>Data Heterogeneity</strong> — Non-IID distributions can cause model divergence.</li><li><strong>Security Threats</strong> — FL is vulnerable to model poisoning attacks and adversarial threats.</li><li><strong>Limited Computational Resources</strong> — Edge devices may lack the power needed for deep learning models.</li><li><strong>Hyperparameter Optimization</strong> — Finding optimal batch sizes, learning rates, and aggregation strategies remains an open challenge.</li></ul><h3>4.2 Future Research Directions</h3><ul><li><strong>Secure Aggregation Methods</strong> — Homomorphic encryption and differential privacy can enhance FL security.</li><li><strong>Adaptive Learning Strategies</strong> — Dynamic aggregation rules can improve learning in heterogeneous environments.</li><li><strong>Personalized Federated Learning</strong> — Developing models that cater to individual user preferences while maintaining global knowledge.</li><li><strong>Efficient Compression Techniques</strong> — Reducing the size of model updates to optimize bandwidth usage.</li><li><strong>FL in Resource-Constrained Environments</strong> — Implementing FL in IoT and edge computing scenarios with low-power devices.</li></ul><h3>5. Conclusion</h3><p>Federated Learning is a groundbreaking approach that balances AI innovation with privacy and security. By enabling collaborative model training without sharing raw data, FL has vast potential across multiple domains.</p><p>With continuous innovation, FL is poised to revolutionize AI while preserving data privacy.</p><h3>6. References</h3><p><a href="https://arxiv.org/pdf/2403.17287"><em>https://arxiv.org/pdf/2403.17287</em></a></p><p><a href="https://flower.ai/docs/framework/tutorial-series-what-is-federated-learning.html"><em>https://flower.ai/docs/framework/tutorial-series-what-is-federated-learning.html</em></a></p><p><a href="https://manta-tech.io/articles/FL/"><em>https://manta-tech.io/articles/FL/</em></a></p><p><a href="https://en.wikipedia.org/wiki/Federated_learning"><em>https://en.wikipedia.org/wiki/Federated_learning</em></a></p><p><a href="https://www.amazon.science/publications/towards-multi-objective-statistically-fair-federated-learning"><em>https://www.amazon.science/publications/towards-multi-objective-statistically-fair-federated-learning</em></a></p><p><a href="https://fr.wikipedia.org/wiki/Apprentissage_f%C3%A9d%C3%A9r%C3%A9"><em>https://fr.wikipedia.org/wiki/Apprentissage_f%C3%A9d%C3%A9r%C3%A9</em></a></p><p><a href="https://www.innovatiana.com/post/federated-learning"><em>https://www.innovatiana.com/post/federated-learning</em></a></p><p><a href="https://arxiv.org/abs/2310.09866"><em>https://arxiv.org/abs/2310.09866</em></a></p><p><a href="https://flower.ai/docs/framework/main/fr/tutorial-series-what-is-federated-learning.html"><em>https://flower.ai/docs/framework/main/fr/tutorial-series-what-is-federated-learning.html</em></a></p><p><a href="https://france-science.com/le-federated-learning-un-paradigme-dapprentissage-en-plein-essor-aux-etats-unis/"><em>https://france-science.com/le-federated-learning-un-paradigme-dapprentissage-en-plein-essor-aux-etats-unis/</em></a></p><p><a href="https://cs.uwaterloo.ca/~z97hu/presentation/FedMGDA_seminar_talk_website.pdf"><em>https://cs.uwaterloo.ca/~z97hu/presentation/FedMGDA_seminar_talk_website.pdf</em></a></p><p><a href="https://www.sfds.asso.fr/sdoc-6887-32bb0c39cff6f70a92b7621b470bf181-sl_drt_20_0661_v2.pdf"><em>https://www.sfds.asso.fr/sdoc-6887-32bb0c39cff6f70a92b7621b470bf181-sl_drt_20_0661_v2.pdf</em></a></p><p><a href="https://allonia.com/federated-learning-revolutionner-lia-en-preservant-la-confidentialite-des-donnees-2/"><em>https://allonia.com/federated-learning-revolutionner-lia-en-preservant-la-confidentialite-des-donnees-2/</em></a></p><p><a href="https://ieeexplore.ieee.org/document/9573567/"><em>https://ieeexplore.ieee.org/document/9573567/</em></a></p><p><a href="https://konfuzio.com/fr/apprentissage-federe/"><em>https://konfuzio.com/fr/apprentissage-federe/</em></a></p><p><a href="https://frq.gouv.qc.ca/projet/apprentissage-par-renforcement-pour-lapprentissage-federe/"><em>https://frq.gouv.qc.ca/projet/apprentissage-par-renforcement-pour-lapprentissage-federe/</em></a></p><p><a href="https://arxiv.org/abs/2501.03392"><em>https://arxiv.org/abs/2501.03392</em></a></p><p><a href="https://www.scaleoutsystems.com/what-is-federated-learning"><em>https://www.scaleoutsystems.com/what-is-federated-learning</em></a></p><p><a href="https://www.nature.com/articles/s41591-021-01506-3"><em>https://www.nature.com/articles/s41591-021-01506-3</em></a></p><p><a href="https://research.ibm.com/blog/what-is-federated-learning"><em>https://research.ibm.com/blog/what-is-federated-learning</em></a></p><p><a href="https://www.deepchecks.com/glossary/federated-learning/"><em>https://www.deepchecks.com/glossary/federated-learning/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=813540631b3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Marketing Insight Report: Facebook Metrics Dataset]]></title>
            <link>https://medium.com/@ly_dinari/marketing-insight-report-facebook-metrics-dataset-34873f2efcee?source=rss-3845c74eb042------2</link>
            <guid isPermaLink="false">https://medium.com/p/34873f2efcee</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[hnginternship]]></category>
            <category><![CDATA[internships]]></category>
            <dc:creator><![CDATA[Dinari Yasmine]]></dc:creator>
            <pubDate>Fri, 31 Jan 2025 22:06:00 GMT</pubDate>
            <atom:updated>2025-01-31T22:19:01.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SPIyp8mNMCvN8s-hI2M3fA.png" /></figure><h3>Introduction</h3><p>The Facebook Metrics dataset provides detailed insights into user engagement on a Facebook page. It includes metrics such as likes, comments, shares, post type, and timing details (e.g., post weekday and hour). This analysis aims to uncover trends and actionable insights to optimize social media strategies.</p><h3>Global Observations</h3><p>The dataset consists of 500 records with 19 columns, including both numerical and categorical variables. Key metrics include:<br>- <strong>Engagement Metrics</strong>: Likes, comments, shares, and total interactions.<br>- <strong>Post Characteristics</strong>: Post type (Photo, Status, Video, Link), post hour, and weekday.<br>- <strong>Reach Metrics</strong>: Lifetime reach and impressions.</p><figure><img alt="This dataset is availbale in Kaggle : https://www.kaggle.com/datasets/masoodanzar/facebook-metrics" src="https://cdn-images-1.medium.com/max/1024/1*ERon9SCt_w081dQhY2CM1w.png" /><figcaption>Facebook performance metrics Dataset</figcaption></figure><p>Initial data exploration revealed:<br><strong>1. Post Type Distribution:</strong> Posts are categorized as Photo, Status, Video, or Link.<br><strong>2. Engagement Trends:</strong> Metrics like likes and shares vary significantly by post type.<br><strong>3. Timing Impact:</strong> Engagement levels fluctuate based on the day of the week and time of posting.</p><h3>Detailed Observations</h3><h4>1. Engagement by Post Type</h4><p>- <strong>Photos </strong>and <strong>Videos </strong>consistently generate higher engagement (likes, comments, shares) compared to Status or Link posts.<br>- <strong>Videos </strong>outperform in terms of shares (average of 52 per post), while Photos lead in likes (average of 182 per post).</p><h4>Visualization:</h4><p>The bar chart below illustrates the average engagement metrics by post type.</p><figure><img alt="Average Engagement by Post Type" src="https://cdn-images-1.medium.com/max/1024/1*m_wrMtScJBWCODjpByZ9Lg.png" /></figure><h4>2. Engagement Over Days of the Week</h4><p>- Posts published on Wednesdays receive the highest average likes (236), comments (13), and shares (37).<br>- Engagement gradually declines towards the weekend.</p><h4>Visualization:</h4><p>The line chart below highlights engagement trends across weekdays.</p><figure><img alt="Engagement Trends Over Days of the Week" src="https://cdn-images-1.medium.com/max/1024/1*4vQSLMu-r90JQXodPFp8GA.png" /></figure><h4>3. Correlation Between Metrics</h4><p>- A strong positive correlation exists between likes, comments, and shares:<br> — Likes and Shares: 0.90 <br> — Likes and Comments: 0.83 <br> — Comments and Shares: 0.87 <br>- This suggests that a highly liked post is more likely to be shared and commented on.</p><h3>Conclusion</h3><h4>Key Findings</h4><p><strong>1. Visual Content: </strong>Videos generated the highest average shares (52 per post, 28% above the global average), while photos drove the most likes (182 per post, peaking at 236 on Wednesdays). Status and link posts underperformed, with 45% lower engagement. <br><strong>2. Optimal Timing:</strong> Engagement peaked on Wednesdays between 2–4 PM, with Sunday showing the lowest interaction rates (-42% compared to weekly averages). <br><strong>3. Metric Correlations:</strong> Strong relationships emerged between likes, comments, and shares. Notably, likes and shares showed near-linear correlation (0.90), indicating viral potential for highly liked content.</p><h4>Variables</h4><p>The dataset contains both numerical and categorical variables: <br>- Continuous numerical: Likes, comments, shares, lifetime reach, and impressions (e.g., 182 likes, 15,892 reach). <br>- Discrete numerical: Post hour (e.g., 14 for 2 PM). <br>- Ordinal numerical: Post weekday (0–6, though treated as categorical in analysis). <br>Categorical variables include post type (photo, video, etc.) and content category.</p><p>To join data-driven teams, explore opportunities at <a href="https://hng.tech/internship">https://hng.tech/internship</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34873f2efcee" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>