<?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 Bhavesh Agone on Medium]]></title>
        <description><![CDATA[Stories by Bhavesh Agone on Medium]]></description>
        <link>https://medium.com/@Jack_of_all_Techs?source=rss-6c21e8cb414f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aYZRA6bC7ci-Bg4G2-G4cQ.png</url>
            <title>Stories by Bhavesh Agone on Medium</title>
            <link>https://medium.com/@Jack_of_all_Techs?source=rss-6c21e8cb414f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:38:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Jack_of_all_Techs/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[The World’s First Computer Algorithm]]></title>
            <link>https://pub.towardsai.net/the-worlds-first-computer-algorithm-4a601daa6dfa?source=rss-6c21e8cb414f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a601daa6dfa</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[ada-lovelace]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[complexity-analysis]]></category>
            <dc:creator><![CDATA[Bhavesh Agone]]></dc:creator>
            <pubDate>Sat, 19 Apr 2025 20:27:32 GMT</pubDate>
            <atom:updated>2025-04-20T14:01:12.918Z</atom:updated>
            <content:encoded><![CDATA[<h4>In a world where no computers yet existed, <strong>Ada Lovelace </strong>wrote the world’s first algorithm.</h4><h3>The First Glimpse of Programming &amp; Complexity in the 1800s</h3><blockquote>The Analytical Engine weaves algebraic patterns just as the Jacquard loom weaves flowers and leaves.”<br> — Ada Lovelace, 1843</blockquote><p>When we think of computers and algorithms, we see flickering silicon chips and Python scripts. But turn back close to 200 years, and you’ll discover the incredible tale of Ada Lovelace — the visionary person who envisioned a world where machines could calculate anything using <strong>logic, loops, and memory.</strong></p><p>In 1843, Ada created what is widely considered <strong>the first computer algorithm: a set</strong> of instructions to compute Bernoulli numbers using Charles Babbage’s hypothetical mechanical computer —<strong> the Analytical Engine.</strong></p><p>In this blog, we’ll break down her algorithm step by step, explore its mathematics, understand its flow, and analyze its computational complexity — all while appreciating just how ahead of her time she really was.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*8ccy7QVaIkT10yLEkxNueQ.jpeg" /><figcaption>Ada Lovelace :1836 portrait of Lovelace (src:wikipedia)</figcaption></figure><h3>What Are Bernoulli Numbers?</h3><p><strong>Bernoulli numbers</strong> are a sequence of rational numbers important in number theory, calculus, and numerical analysis.</p><p><strong>Bernoulli numbers are rational numbers defined by the generating function:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/144/0*6HoFvMvt0lypTIGw.png" /></figure><p>They appear in formulas like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/0*9hZL66wkHcjGz-uW.png" /><figcaption>The <strong>sum of powers</strong></figcaption></figure><ul><li>Calculus (Taylor expansions)</li><li>Sums of powers (Faulhaber’s formula)</li><li>Numerical methods (Euler-Maclaurin formula)</li></ul><p>Their recursive nature makes them a perfect candidate to show off an algorithm’s power — and that’s what Ada did.</p><p>Lovelace focused on odd-indexed numbers using a course-of-values recursion:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/0*CrktAltinC7OmsTv.png" /></figure><p>Important properties:<br>1. All <strong>odd-indexed</strong> Bernoulli numbers beyond B1​ are zero in modern definition.</p><p>2. Ada Lovelace used an alternative version: B1=-1/2, and computed <strong>odd-indexed</strong> values like B3,B5,B7,…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0IT6FGVD50sLkbTDWKshIA.jpeg" /><figcaption>Diagram of an algorithm for the Analytical Engine to calculate Bernoulli numbers, from Sketch of The Analytical Engine Invented by Charles Babbage by Luigi Menabrea with notes by Ada Lovelace. The steps are outlining how the analytical engine would calculate, which she called<br>in her notation. (Source: Wikimedia Commons)</figcaption></figure><h3><strong>Ada Lovelace’s Algorithm — The Core Idea</strong></h3><p>Lovelace didn’t just state results — she wrote <strong>a procedural method</strong>, using what we’d now recognize as:</p><ul><li><strong>Arithmetic operations</strong></li><li><strong>Looping</strong></li><li><strong>Indexed memory access</strong></li><li><strong>Conditional jumps</strong></li></ul><h4><strong>Ada’s Recursive Algorithm:</strong></h4><p>Ada focused on computing <strong>odd-indexed Bernoulli numbers</strong> using a recursive formula (from Note G of her translation):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/0*pe3GL4LCH_JuQmZo.png" /></figure><h4>How it works:</h4><ul><li>Upcoming numbers depends on previously computed odd-indexed Bernoulli numbers.</li></ul><p>Each term in the sum is weighted by:</p><ul><li>A binomial coefficient</li><li>A normalization denominator 2n−2k+1</li></ul><p>Ada begins with B1=−1/2.</p><h4>Example: Calculating B7:</h4><p>To compute B7​, we use:</p><p>2n+1=7 <strong>⇒n=3</strong>;</p><p>Known values:</p><p>From Ada’s own table (Note G), the Bernoulli numbers she used were:</p><ul><li>B1= −1/2</li><li>B3= 1/6</li><li>B5= −1/30</li></ul><p>Now apply the formula:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*CrktAltinC7OmsTv.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/0*dwIJe7NRXkmSuiqz.png" /></figure><p>Simplify each term:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/129/0*6Mu1TRQ05RvIju76.png" /><figcaption>First term</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/0*e-wT3OJX5a6B6ZvU.png" /><figcaption>Second term</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/210/0*6W993x5EkCB4U9I2.png" /><figcaption>Third term</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/0*kPC9kNg7qEmTnR8u.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/93/0*fi2RVyGRjHk8woUt.png" /></figure><blockquote>Important Clarification:</blockquote><blockquote>Correction: The actual value of B7is 1/42. Lovelace’s original calculation contained a minor error (likely due to transcription), but her method was sound.</blockquote><blockquote>This result differs from the <strong>modern value</strong>, where: B7​=0.</blockquote><blockquote>The <strong>difference comes from the definition of Bernoulli numbers</strong> in Ada’s time. She used a <strong>non-zero odd Bernoulli sequence</strong> based on their appearance in power sum formulas rather than the generating function.</blockquote><h3>Complexity Analysis</h3><h4>Time Complexity:</h4><p>The formula is recursive:</p><ul><li>Outer loop runs <em>n </em>times</li><li>Inner summation runs up to <em>n </em>terms</li><li>Each term: constant-time arithmetic</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/208/0*I0OIWJvpY-Jg_ceJ.png" /><figcaption>Time Complexity</figcaption></figure><h4>Space Complexity:</h4><p>Only stores <em>n </em>previous Bernoulli numbers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/38/0*rF4E42FA1uym_QT-.png" /><figcaption>Space Complexity</figcaption></figure><h3><strong>Modern View of Bernoulli Numbers</strong></h3><p>In <strong>modern mathematics</strong>:</p><ol><li>B1= -1/2</li></ol><p>2. All <strong>odd-indexed Bernoulli numbers B{2n+1}​, for n≥1 are 0</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/188/0*3m1D5EVAOxnaxh1T.png" /></figure><p>Modern implementations use:</p><ul><li><strong>Generating functions</strong></li><li><strong>Faulhaber’s formula</strong></li><li><strong>FFT-based methods</strong> (like Harvey’s algorithm)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/85/0*ZM6z-7gMoMpPqW13.png" /><figcaption>Modern complexity:</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hyBeosLERBIv8Ly07L5mUw.png" /></figure><h3>Ada Lovelace’s Contribution to Algorithms</h3><p>Ada Lovelace was most innovative in developing a general-purpose, <strong>recursive algorithm — perhaps the very first one ever </strong>written with the intention of running on a machine.</p><p>Her computation of Bernoulli numbers not only added structured control flow, e.g.,<strong> loops, nested loops, and indexed variables, but also addressed memory management </strong>within the constraints of the Analytical Engine.</p><p>She fashioned the algorithm to execute symbolically, with mathematical formulas that evolve with <strong>each iteration</strong>, embodying the modern notion of programmability and abstraction.</p><p><strong>Ada’s algorithm was not hardcoded arithmetic</strong> — it was a general-purpose means of calculating any higher-order Bernoulli number, with evident aspects of modularity, reusability, and recursion. Her work positions her as foundational to algorithmic thought, years before the existence of digital computers.</p><h3>Conclusion</h3><p>Ada Lovelace’s algorithm was not just a mathematical exercise — it was the invention of programming. Employing symbolic logic, recursion, and a formal method of iteration, she described the first machine-executable algorithm decades before computers were invented. Although some of the numbers in her Bernoulli number table are different from those accepted now, her algorithm itself was mathematically correct and well ahead of its time.</p><p>Her tabulated minor mismatches are a result of changing conventions of mathematical notation, not a mistake in her reasoning. Her work actually introduced fundamental programming concepts: loops, conditionals, memory management, and abstraction.</p><p>Above all, Lovelace envisioned an era where computers could be programmed to handle not only numbers, but also ideas and symbols. That foresight, married with her detailed algorithmic style of thinking, is why she truly deserves the moniker as the world’s first programmer. Her Bernoulli number program was merely a starter — it marked the beginning of the age of programmable machines and, along with them, the digital world.</p><p><strong>Some Addons:</strong><br> 1. The Analytical Engine was never actually built</p><p>2. Ada’s notes <a href="http://www.fourmilab.ch/babbage/sketch.html">http://www.fourmilab.ch/babbage/sketch.html</a>.</p><p>Please feel free to share your thoughts in the comment section. Your suggestions are always welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a601daa6dfa" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/the-worlds-first-computer-algorithm-4a601daa6dfa">The World’s First Computer Algorithm</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI-Enhanced Graph Analytics in Data Science and a Step-by-Step Guide on Building a GNN]]></title>
            <link>https://pub.towardsai.net/ai-enhanced-graph-analytics-in-data-science-and-a-step-by-step-guide-on-building-a-gnn-368bbe3f0a57?source=rss-6c21e8cb414f------2</link>
            <guid isPermaLink="false">https://medium.com/p/368bbe3f0a57</guid>
            <category><![CDATA[graph]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Bhavesh Agone]]></dc:creator>
            <pubDate>Mon, 28 Oct 2024 21:01:09 GMT</pubDate>
            <atom:updated>2024-11-01T07:12:54.499Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4wpyDeSZV3ZTR2CM" /><figcaption>Photo by <a href="https://unsplash.com/@boliviainteligente?utm_source=medium&amp;utm_medium=referral">BoliviaInteligente</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Graph analytics has emerged as one of the most crucial tools in the data science sphere to understand complex relationships and structures within data. From social networks to biological systems, graphs can represent all kinds of systems. With the help of analysis of graphs, hidden patterns or insights may be derived from them. With AI in general and deep learning in particular, the field of graph analytics has been experiencing significant developments. This blog post focuses on AI-enhanced graph analytics, its principles and applications, and also has more complex code examples illustrating what can be done.</p><h3>What is Graph Analytics?</h3><p>Graph analytics is the study of graphs, which are mathematical structures that can model pairwise relations between objects. Graphs are comprised of nodes, also known as vertices, and edges, which are links that connect them. Applications of graph analytics include:<br>1. <em>Social network analysis: </em>understanding relationships and influence among individuals.<br>2. <em>Recommendation Systems:</em> It recommends the products or service based on behavior.<br>3.<em> Fraud Detection: </em>Detecting fraud by analyzing transaction networks.<br>4. <em>Biological Network Analysis: </em>Proteo-protein interactions and gene regulatory networks.</p><h3>Introduction to Graph Neural Networks (GNNs)</h3><p>GNNs are a class of neural networks designed for inferencing on data described in terms of graphs. Thus, they combine the advantages of the relational structure encoded by graphs with feature-learning capability of neural networks. The basic GNN model follows these steps:</p><ol><li>Step 1: Node embedding initialization: Initialize each node with a feature vector.</li><li>Message Passing Nodes send messages to neighbors.</li><li>Aggregation: Aggregate received messages to update node embeddings.</li><li>Prediction: Use the fine-tuned embeddings for downstream tasks, such as node classification or link prediction.</li></ol><h3>Why Graph Neural Networks (GNNs)?</h3><p>Traditional graph algorithms, from Dijkstra’s shortest path to PageRank, tell us a lot but just do not cut it against large, complex graphs. AI, especially Graph Neural Networks (GNNs), has emerged as a potentially powerful technique for enhancing graph analytics by learning and inferring patterns in graph-structured data with deep learning.</p><h4>Advantages of GNNs:</h4><ol><li><em>Scalability: </em>GNNs can handle large graphs with millions of nodes and edges.</li><li><em>Flexibility: </em>They could work with graphs of very varied types, including also directed and undirected, weighted graphs and multi-relational graphs.</li><li><em>Learning Ability: </em>The GNNs can directly learn complex patterns and features from the data, therefore not requiring handcrafted features.</li><li>They allow<em> end-to-end training </em>by which feature extraction and prediction are optimized simultaneously.</li></ol><h3>Basic three types of Graph Neural Networks (GNNs):</h3><ol><li><strong><em>Graph Convolutional Network (GCN): </em></strong>Adopting layer-wise propagation over the features from the one-hop neighbors of a node, it is well designed for large-scale graphs while performing semi-supervised tasks.</li><li><strong><em>Graph Attention Network:</em></strong> It applies an attention model to adaptively select importance weights among neighboring nodes, thus allowing adaptive information gathering at each node and improving representation ability with multi-head attentions.</li><li><strong><em>GraphSAGE: </em></strong>This sampling method aggregates features from neighbors by using some graph convolutions, endowed the network with the ability to be inductively learned in order to handle large or dynamic graphs by various aggregation functions.</li></ol><h3>Building a GNN: A Step-by-Step Guide</h3><p>We will create a GNN for node classification on a sample dataset with Python and popular libraries such as PyTorch and PyTorch Geometric. With increasing complexity, we’ll introduce more advanced concepts step-by-step.</p><h4>Importing Libraries</h4><pre>import torch<br>import torch.nn.functional as F<br>from torch_geometric.datasets import CitationFull<br>from torch_geometric.nn import GCNConv, GATConv, SAGEConv<br>from sklearn.metrics import accuracy_score, confusion_matrix<br>import seaborn as sns<br>import matplotlib.pyplot as plt<br>import numpy as np<br>import networkx as nx</pre><h4>Loading the Dataset</h4><p>We’ll use the # Load the CiteSeer dataset a popular benchmark for graph learning tasks.</p><pre><br>dataset = CitationFull(root=&#39;/tmp/CiteSeer&#39;, name=&#39;CiteSeer&#39;)<br>data = dataset[0]</pre><h4>Create masks for train, validation, and test sets and Randomly split data into train, val, and test.</h4><pre># Create masks for train, validation, and test sets<br>num_classes = dataset.num_classes<br>num_nodes = data.num_nodes<br><br># Randomly split data into train, val, and test<br>indices = np.arange(num_nodes)<br>np.random.shuffle(indices)<br><br>train_size = int(0.6 * num_nodes)<br>val_size = int(0.2 * num_nodes)<br>test_size = num_nodes - train_size - val_size<br><br>train_mask = torch.zeros(num_nodes, dtype=torch.bool)<br>val_mask = torch.zeros(num_nodes, dtype=torch.bool)<br>test_mask = torch.zeros(num_nodes, dtype=torch.bool)<br><br>train_mask[indices[:train_size]] = True<br>val_mask[indices[train_size:train_size + val_size]] = True<br>test_mask[indices[train_size + val_size:]] = True</pre><h4>Training Classes</h4><pre>device = torch.device(&#39;cuda&#39; if torch.cuda.is_available() else &#39;cpu&#39;)<br><br>class GCN(torch.nn.Module):<br>    def __init__(self, in_channels, hidden_channels, out_channels):<br>        super(GCN, self).__init__()<br>        self.conv1 = GCNConv(in_channels, hidden_channels)<br>        self.conv2 = GCNConv(hidden_channels, out_channels)<br><br>    def forward(self, x, edge_index):<br>        x = self.conv1(x, edge_index)<br>        x = F.relu(x)<br>        x = self.conv2(x, edge_index)<br>        return F.log_softmax(x, dim=1)<br><br>class GAT(torch.nn.Module):<br>    def __init__(self, in_channels, hidden_channels, out_channels):<br>        super(GAT, self).__init__()<br>        self.conv1 = GATConv(in_channels, hidden_channels, heads=8, concat=True)<br>        self.conv2 = GATConv(hidden_channels * 8, out_channels, heads=1, concat=False)<br><br>    def forward(self, x, edge_index):<br>        x = self.conv1(x, edge_index)<br>        x = F.relu(x)<br>        x = self.conv2(x, edge_index)<br>        return F.log_softmax(x, dim=1)<br><br>class GraphSAGE(torch.nn.Module):<br>    def __init__(self, in_channels, hidden_channels, out_channels):<br>        super(GraphSAGE, self).__init__()<br>        self.conv1 = SAGEConv(in_channels, hidden_channels)<br>        self.conv2 = SAGEConv(hidden_channels, out_channels)<br><br>    def forward(self, x, edge_index):<br>        x = self.conv1(x, edge_index)<br>        x = F.relu(x)<br>        x = self.conv2(x, edge_index)<br>        return F.log_softmax(x, dim=1)</pre><h4>Training &amp; Testing Models</h4><pre>def train(model, data, optimizer):<br>    model.train()<br>    optimizer.zero_grad()<br>    out = model(data.x, data.edge_index)<br>    loss = F.nll_loss(out[train_mask], data.y[train_mask])<br>    loss.backward()<br>    optimizer.step()<br>    return loss.item()<br>def test(model, data, mask):<br>    model.eval()<br>    with torch.no_grad():<br>        pred = model(data.x, data.edge_index).argmax(dim=1)<br>    return accuracy_score(data.y[mask].cpu(), pred[mask].cpu()), pred</pre><h4>Hyperparameters</h4><pre>in_channels = dataset.num_node_features<br>hidden_channels = 64<br>out_channels = dataset.num_classes<br>epochs = 200<br>lr = 0.01</pre><h4>Initialize models</h4><pre>gcn = GCN(in_channels, hidden_channels, out_channels).to(device)<br>gat = GAT(in_channels, hidden_channels, out_channels).to(device)<br>sage = GraphSAGE(in_channels, hidden_channels, out_channels).to(device)<br><br># Move data to device<br>data = data.to(device)<br><br># Initialize optimizers<br>gcn_optimizer = torch.optim.Adam(gcn.parameters(), lr=lr)<br>gat_optimizer = torch.optim.Adam(gat.parameters(), lr=lr)<br>sage_optimizer = torch.optim.Adam(sage.parameters(), lr=lr)</pre><h4>Training</h4><pre># Training<br>gcn_train_acc = []<br>gat_train_acc = []<br>sage_train_acc = []<br>gcn_loss_history = []<br>gat_loss_history = []<br>sage_loss_history = []<br><br>for epoch in range(epochs):<br>    gcn_loss = train(gcn, data, gcn_optimizer)<br>    gat_loss = train(gat, data, gat_optimizer)<br>    sage_loss = train(sage, data, sage_optimizer)<br><br>    # Collect training accuracies and losses<br>    gcn_train_acc.append(test(gcn, data, train_mask)[0])<br>    gat_train_acc.append(test(gat, data, train_mask)[0])<br>    sage_train_acc.append(test(sage, data, train_mask)[0])<br>    gcn_loss_history.append(gcn_loss)<br>    gat_loss_history.append(gat_loss)<br>    sage_loss_history.append(sage_loss)<br><br>    if epoch % 20 == 0:<br>        print(f&#39;Epoch {epoch}, GCN Loss: {gcn_loss:.4f}, GAT Loss: {gat_loss:.4f}, SAGE Loss: {sage_loss:.4f}&#39;)</pre><h4>Testing the models</h4><pre># Test models<br>gcn_test_acc, gcn_pred = test(gcn, data, test_mask)<br>gat_test_acc, gat_pred = test(gat, data, test_mask)<br>sage_test_acc, sage_pred = test(sage, data, test_mask)<br><br>print(f&#39;Test Accuracy: GCN: {gcn_test_acc:.4f}, GAT: {gat_test_acc:.4f}, SAGE: {sage_test_acc:.4f}&#39;)</pre><h4>Visualize</h4><pre><br>  # Training accuracy plot<br>plt.figure(figsize=(8, 6))<br>plt.plot(range(epochs), gcn_train_acc, label=&#39;GCN Train Accuracy&#39;, color=&#39;blue&#39;)<br>plt.plot(range(epochs), gat_train_acc, label=&#39;GAT Train Accuracy&#39;, color=&#39;orange&#39;)<br>plt.plot(range(epochs), sage_train_acc, label=&#39;GraphSAGE Train Accuracy&#39;, color=&#39;green&#39;)<br>plt.xlabel(&#39;Epochs&#39;)<br>plt.ylabel(&#39;Training Accuracy&#39;)<br>plt.title(&#39;Training Accuracy for Different GNN Models&#39;)<br>plt.legend()<br>plt.grid()<br>plt.show()<br><br># Loss over epochs plot<br>plt.figure(figsize=(8, 6))<br>plt.plot(range(epochs), gcn_loss_history, label=&#39;GCN Loss&#39;, color=&#39;blue&#39;)<br>plt.plot(range(epochs), gat_loss_history, label=&#39;GAT Loss&#39;, color=&#39;orange&#39;)<br>plt.plot(range(epochs), sage_loss_history, label=&#39;GraphSAGE Loss&#39;, color=&#39;green&#39;)<br>plt.xlabel(&#39;Epochs&#39;)<br>plt.ylabel(&#39;Loss&#39;)<br>plt.title(&#39;Loss Over Epochs for Different GNN Models&#39;)<br>plt.legend()<br>plt.grid()<br>plt.show()<br><br># Test accuracy comparison<br>plt.figure(figsize=(8, 6))<br>models = [&#39;GCN&#39;, &#39;GAT&#39;, &#39;GraphSAGE&#39;]<br>test_accuracies = [gcn_test_acc, gat_test_acc, sage_test_acc]<br>plt.bar(models, test_accuracies, color=[&#39;blue&#39;, &#39;orange&#39;, &#39;green&#39;])<br>plt.ylabel(&#39;Test Accuracy&#39;)<br>plt.title(&#39;Test Accuracy Comparison&#39;)<br>plt.ylim(0, 1)<br>plt.grid()<br>plt.show()<br><br># Confusion matrices<br>def plot_confusion_matrix(y_true, y_pred, model_name):<br>    cm = confusion_matrix(y_true.cpu(), y_pred.cpu())<br>    plt.figure(figsize=(8, 6))<br>    sns.heatmap(cm, annot=True, fmt=&#39;d&#39;, cmap=&#39;Blues&#39;, cbar=False,<br>                xticklabels=np.arange(num_classes), yticklabels=np.arange(num_classes))<br>    plt.title(f&#39;Confusion Matrix for {model_name}&#39;)<br>    plt.xlabel(&#39;Predicted Label&#39;)<br>    plt.ylabel(&#39;True Label&#39;)<br>    plt.show()<br><br># Plot confusion matrices for each model<br>plot_confusion_matrix(data.y[test_mask], gcn_pred[test_mask], &#39;GCN&#39;)<br>plot_confusion_matrix(data.y[test_mask], gat_pred[test_mask], &#39;GAT&#39;)<br>plot_confusion_matrix(data.y[test_mask], sage_pred[test_mask], &#39;GraphSAGE&#39;)</pre><h4>Inference</h4><p>Test Accuracy: GCN: 0.9397, GAT: 0.9338, SAGE: 0.9409</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*FjRJ2jnxVdMWwjjAn6prbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*EmEfTc_IOtdfQqypBEuQGA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*AgWMAVIA95pM-cQDwIRglQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Y6k_jwJ3p2QL1Ebmmm3NDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*kpgBaNhS4jnwf3hKS_oqGg.png" /></figure><h3>Conclusion</h3><p>AI-enhanced graph analytics is a mighty approach for extracting insights out of complex graph-structured data. Using GNNs and advanced techniques, such as GAT, for example, data scientists would be able to tackle very wide-ranging problems. Since the graph theory combined with AI offers new possibilities, innovation, and discovery areas in multiple domains, try to explore and experiment even more with these models for unlocking their full potential.</p><p>Please feel free to share your thoughts in the comment section. Your suggestions are always welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=368bbe3f0a57" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/ai-enhanced-graph-analytics-in-data-science-and-a-step-by-step-guide-on-building-a-gnn-368bbe3f0a57">AI-Enhanced Graph Analytics in Data Science and a Step-by-Step Guide on Building a GNN</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reconstruction of Clean Images from Noisy Data: A Bayesian Inference Perspective]]></title>
            <link>https://pub.towardsai.net/reconstruction-of-clean-images-from-noisy-data-a-bayesian-inference-perspective-2a718828fe39?source=rss-6c21e8cb414f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a718828fe39</guid>
            <category><![CDATA[bayesian-statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Bhavesh Agone]]></dc:creator>
            <pubDate>Fri, 18 Oct 2024 19:39:50 GMT</pubDate>
            <atom:updated>2024-10-22T19:14:51.929Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>An Introduction to Bayesian Analysis</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ttyzGHfotcvyXXLziOGUqw.png" /></figure><p>In its most basic form, Bayesian Inference is just a technique for summarizing statistical inference which states how likely an hypothesis is given any new evidence. The method comes from Bayes’ Theorem, which provides a way to calculate the probability that an event will happen or has happened, given any prior knowledge of conditions (from which an event may not happen):</p><p>Here’s a somewhat rough rendering of Bayes’ Theorem:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*uHU0dfNYDGWARMKApgcxdQ.png" /></figure><p><em>Where:<br>- P(A|B) refer to the posterior probability, that is the probability of the hypothesis (A) given data (B).<br>- P(B|A) is the probability, or how likely the obtained data is in case the hypothesis is correct.<br>- P(A) is the prior probability or our starting starting point in regard to the hypothesis in question before making use of the sample data.<br>- P(B) Probability of the data or otherwise known as the evidence.</em></p><p>Bayesian Inference in the most simple method possible can be described as a method that lets us start with some sort of a belief about something- the prior — and then modify that belief based on new information that is received in terms of the likelihood. Bayesian method is thus particularly suitable for uncertainty and incomplete data, such as signal reconstruction from noise.</p><blockquote>It is named after an 18th-century mathematician, Thomas Bayes.</blockquote><h3>The Challenge: Noisy Data in Image Reconstruction</h3><p>Noise in images is a common problem in a variety of fields:<br>Some images will fail to reveal clarity due to:</p><p><strong><em>- Medical Imaging:</em></strong> Some CT scans, MRIs, or X-rays are distorted with artefacts generated by the movement of patients during the scan time, hardware resolution limit, or it simply has low resolution.</p><p><strong><em>- Satellite Imagery:</em></strong> At one point, images captured by satellites have been distorted due to atmospheric conditions, sensor limitation, or motion blur, thus making the satellite images not as helpful for environmental monitoring or navigation purposes.</p><p><strong><em>- Astronomy:</em></strong> Sometimes, clearest views of celestial objects are distorted by noise from the telescopes themselves and interference from Earth’s atmosphere.</p><p>It is a rather difficult task to reconstruct a clean, original image using noisy data. Convolutional filtering directly applied to the noisy data normally removes the noise but also leads to the loss of important details or introduction of various artifacts.</p><h3>Bayes Approach to Image Reconstruction</h3><p>This is where Bayesian Inference comes into the picture. The Bayesian approach to image reconstruction works by combining everything that you may already know about the image-for instance, that edges tend to be smooth or that certain features ought to be continuous-with the noisy data we observe. It tries to find a most likely “clean” image that may have lead to what we see as noisy, given your prior assumptions.</p><ol><li><strong><em>Prior knowledge:</em></strong> It is then used in Bayesian image reconstruction in order to model what we expect the clean image to look like beforehand. For example, natural images tend to be smooth in some parts and high in edges in other parts.</li><li><strong><em>Likelihood:</em></strong> The likelihood function maps the noisy image into the clean image, and with that, it captures how the noise affects the image-for instance, Gaussian noise might blur the image.</li><li><strong><em>Posterior Distribution:</em></strong> By Bayes’ Theorem, we combine the prior and the likelihoods to yield a posterior distribution that now supplies us with a probability distribution over possible clean images. We look for the image maximizing this posterior probability by what is called the MAP estimate.</li><li><strong><em>Markov Chain Monte Carlo (MCMC):</em></strong> In practice, it is often not easy to find the posterior distribution; therefore, the use of Markov Chain Monte Carlo (MCMC) techniques to sample from the distribution, estimating the most probable clean image, is very common.</li></ol><h3>Example of Bayesian Image Denoising</h3><p>In this implementation, lets see a method for improving image structure using a combination of Gaussian noise simulation and Bayesian methods. We first add Gaussian noise to grayscale images to simulate a noisy environment. as the noise reduction process uses confidence propagation to refine noisy images and reproduce the message. This is supplemented with global normalization (TV), non-local noise reduction (NLM), and wavelet thresholding to improve image quality by preserving essential features and edges. and the final result will be saved and displayed. which demonstrates the effectiveness of this multifaceted noise reduction technique.</p><pre>#Importing necesssary libaries for denoising Image using Bayersain<br>import numpy as np<br>import cv2<br>from scipy.fft import fft2, ifft2<br>from skimage.restoration import denoise_tv_chambolle, denoise_wavelet, denoise_nl_means<br>from skimage.util import random_noise<br>from skimage import img_as_float, img_as_ubyte</pre><pre># Define parameters for noise level, belief propagation, and denoising iterations<br>sigma2_init = 25  # Initial variance of noise<br>alpha_init = 0.01  # Initial alpha parameter<br>max_iterations = 20  # Maximum iterations for the EM algorithm<br>convergence_threshold = 1e-4  # Convergence threshold for belief propagation</pre><pre># Function to add Gaussian noise to an image<br># This simulates noise in the image for testing denoising techniques<br><br>def add_gaussian_noise(image, sigma):<br>    noisy_image = image + np.random.normal(0, sigma, image.shape)<br>    return np.clip(noisy_image, 0, 255)</pre><pre># Function to compute belief propagation messages with adaptive convergence<br>def compute_messages(image, alpha, sigma2, prev_messages=None):<br>    height, width = image.shape<br>    messages = np.zeros((height, width)) if prev_messages is None else prev_messages<br>    fft_image = fft2(image)<br><br>    for _ in range(max_iterations):<br>        fft_messages = fft2(messages)<br>        new_messages = ifft2(fft_image * fft_messages * alpha).real<br>        new_messages = np.clip(new_messages, 0, 255)  # Clip to valid pixel range<br><br>        # Check for convergence based on L2 norm<br>        if np.linalg.norm(new_messages - messages) &lt; convergence_threshold:<br>            break<br><br>        messages = new_messages<br>    return messages</pre><pre># Define a simple Gaussian prior based on image smoothness<br>def gaussian_prior(image, alpha):<br>    # Prior: a smooth image has small gradients<br>    grad = np.gradient(image)<br>    return np.exp(-alpha * np.sum(np.square(grad)))</pre><pre># Define Gaussian likelihood based on the noise model<br>def gaussian_likelihood(noisy_image, denoised_image, sigma2):<br>    # Likelihood that noisy image is a noisy version of the clean image<br>    return np.exp(-np.sum((noisy_image - denoised_image)**2) / (2 * sigma2))</pre><pre># Function for Bayesian denoising using belief propagation, TV, NLM, and wavelet denoising<br>def bayesian_denoise(image, noisy_image, alpha, sigma2, max_iterations):<br>    denoised_image = np.copy(noisy_image)<br>    messages = None<br><br>    for _ in range(max_iterations):<br>        # Compute belief propagation messages<br>        messages = compute_messages(denoised_image, alpha, sigma2, prev_messages=messages)<br><br>        # Calculate prior and likelihood<br>        prior = gaussian_prior(denoised_image, alpha)<br>        likelihood = gaussian_likelihood(noisy_image, denoised_image, sigma2)<br><br>        # Bayesian update: Posterior ~ Prior * Likelihood<br>        posterior = prior * likelihood<br><br>        # Update the denoised image based on messages and posterior probability<br>        denoised_image = (noisy_image + messages * posterior) / 2<br>        denoised_image = np.clip(denoised_image, 0, 255)<br><br>        # Apply Total Variation (TV) denoising to preserve edges<br>        denoised_image = denoise_tv_chambolle(denoised_image, weight=0.1)<br><br>        # Apply Non-Local Means (NLM) denoising for further noise reduction<br>        denoised_image = denoise_nl_means(denoised_image, h=1.15 * sigma2, fast_mode=True)<br><br>        # Optionally apply wavelet-based denoising<br>        denoised_image = denoise_wavelet(denoised_image, mode=&#39;soft&#39;, wavelet_levels=3, method=&#39;BayesShrink&#39;)<br><br>    return denoised_image</pre><pre># Load the image, convert it to grayscale, and apply Gaussian noise to simulate a noisy image<br>image_path = &quot;img2.jpg&quot;<br>image = cv2.imread(image_path, cv2.IMREAD_GRAYSCALE).astype(np.float32)<br><br># Add Gaussian noise to simulate a noisy image<br>noisy_image = add_gaussian_noise(image, sigma=25)<br><br># Perform Bayesian denoising on the noisy image using the specified techniques<br>denoised_image = bayesian_denoise(image, noisy_image, alpha_init, sigma2_init, max_iterations)<br><br># Save and display the results<br>cv2.imwrite(&quot;denoised_image_enhanced.jpg&quot;, denoised_image)<br>cv2.imwrite(&quot;noised_image_enhanced.jpg&quot;, noisy_image)<br>cv2.imshow(&quot;Noisy Image&quot;, noisy_image.astype(np.uint8))<br><br>cv2.imshow(&quot;Denoised Image&quot;, denoised_image.astype(np.uint8))<br>cv2.waitKey(0)<br>cv2.destroyAllWindows()</pre><h3><strong>Results:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R1x4Ws1EkDEwlGXJR1rnHA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jLUUq8ke-LytU4uguRhjNA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*_99pbKE4cQfKiN-66PhHfA.jpeg" /><figcaption>Noisy vs Denoised Image</figcaption></figure><blockquote>PSNR (Peak Signal-to-Noise Ratio) is a widely used metric for measuring the quality of reconstructed or processed images. Compare with the original unchanged image. Especially in image compression work. deterioration and restoration to assess where smearing or distortion occurred during processing.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0QdaakWKhchN9W1Qxmq6Q.png" /><figcaption>Computation Time vs Image Size &amp; PSNR vs Image Size</figcaption></figure><h3>Application: Medical Image Recovery</h3><p>One of the most fascinating applications of Bayesian Inference is in medical imaging, where recovered clean images are crucial for diagnosis.</p><p>For example, suppose that a CT scan has been degraded by noise due to either motion by the patient or hardware constraints. A Bayesian framework can take this noisy scan as observed data and prior knowledge of typical body structure-the smoothness of edges or regular organ shapes-to reconstruct the original, clean image. This is particularly useful in Bayesian tomography, where the goal is to reconstruct the 3D structure of an object-which might look like a human body-from noisy 2D images.</p><p>In this way, the outputs of several noisy scans are taken and, with Bayesian methods, high-resolution, noise-free images which are much more helpful to doctors can be recovered. Hereby, the chance for an accurate diagnosis is maximized while minimizing scans that otherwise may be expensive or even dangerous through radiation.</p><h3>Bayesian Inverse Problems: Satellite Image Reconstruction</h3><p>Another interesting application of Bayesian image reconstruction is in satellite imagery. Satellites are often taking photographs under suboptimal conditions. For example, cloudy weather, low-light environments, or poor weather can often lead to noisy images that are either hard to interpret or carry information with undefined reliability.</p><p>Bayesian Inference solves the problem, modeling the noise and using prior knowledge about the Earth’s surface in order to infer the most likely clean image. For example, we know that some areas of land, such as oceans or deserts, tend to have smooth textures, whereas urban areas have sharp, well-defined edges. Then by using the Bayesian framework, we can reconstruct a clean image to look much like the real landscape even after noisy data.</p><p>This application proves very useful in monitoring changes brought by the environment, tracking cut-down forest, or even damage assessment brought by natural disasters that require timely and accurate images from space.</p><h3>Benefits of Bayesian Image Reconstruction</h3><p>Probability approach. Unlike other methods, Bayesian Inference provides a probabilistic estimate of the clean image, so uncertainty in reconstruction could be quantified. That is the value when dealing with applications like medicine where knowing the confidence level of an image can help in making decisions.<br>-<strong><em> Prior Information Incorporation:</em></strong> Bayesian methods allow for the utilisation of prior knowledge about the image, which results in more accurate reconstructions. For example, in medical imaging, we may use prior information about typical anatomical structures to guide the reconstruction process.</p><p><strong><em>- Versatility:</em></strong> The Bayesian approach can be adapted to a wide range of imaging problems, from medical scans to satellite photos, thus making it a versatile tool for solving image reconstruction problems in different domains.</p><p>Bayesian inference allows for robust frameworks in dealing with noisy reconstructions of data. We, therefore, infer a most likely clean image from noisy observations by combining prior knowledge that we have about the image. Bayesian methods are thus very important in all applications, ranging from medical imaging to satellite imaging, because they are flexible and accurate in cleaning up noisy data.</p><p>With the progress in computational technology, such as MCMC, together with better algorithms, Bayesian methods will be even more easily applied and result in improved performance over the classic reconstruction methods of images.</p><p>Whatever the application area-medical, environmental monitoring, or astronomy- Bayesian Inference might turn to be the tool to extract valuable information from noisy and sparse data, leading to increasing insight and, therefore, better decision making.</p><p>Please feel free to share your thoughts in the comment section. Your suggestions are always welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a718828fe39" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/reconstruction-of-clean-images-from-noisy-data-a-bayesian-inference-perspective-2a718828fe39">Reconstruction of Clean Images from Noisy Data: A Bayesian Inference Perspective</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unraveling the Web: Navigating Databases in Web Technology]]></title>
            <link>https://pub.towardsai.net/unraveling-the-web-navigating-databases-in-web-technology-3552ae6a3da9?source=rss-6c21e8cb414f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3552ae6a3da9</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[dbms]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Bhavesh Agone]]></dc:creator>
            <pubDate>Mon, 22 Apr 2024 18:32:54 GMT</pubDate>
            <atom:updated>2024-04-23T13:27:25.553Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wbnjJ3hxuOA-gs_GAgtGkA.jpeg" /></figure><p>Data is the foundation of how today’s websites and apps function. Items in your shopping carts, comments on all your posts, and changing scores in a video game are examples of information stored somewhere in a database. Which begs the question what is a database? In a broad context, a database is any logically modeled collection of information but in the context of websites it is an essential component that enables websites to store, manage, and retrieve all kinds of data efficiently making the websites dynamic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_172wtt5cFA69NELFEzqw.png" /></figure><h3><strong>Types of Databases:</strong></h3><p>There are many different types of databases. The performance of the website is directly proportional to whether or not the developers have selected the right database to meet the needs and scales of the website operations <br> <br><strong>1. Relational databases </strong>— The name comes from the way data is stored in the form of related tables, developed by IBM in the 1970s. Since then, it has been helping businesses organize, manage and relate data. The tables store data in the form of rows and columns. These relational databases are compliant with the ACID properties and work well with structured data. To create, update, and manage a relational database, we use a relational database management system that most commonly runs on Structured Query Language (SQL). These databases offer consistency through their well-structured schemas but fail to scale very well</p><p><strong>2. NoSQL databases</strong> — NoSQL is a vast category that includes all databases that do not use SQL as their primary data access language. Contrary to relational databases, these do not conform to a pre-defined schema, operate in distributed clusters, and store unstructured or semi-structured data thus they are also referred to as non-relational databases. These databases do not comply with ACID properties which poses a threat to the consistency of the data stored in the database. Developers use non-relational databases for applications that need to scale efficiently and quickly because of their ability to process large volumes of data with very low latency.</p><p><strong>3. New SQL databases </strong>— NewSQL is a modern form of relational database system that sits between SQL and NoSQL. Coined in 2011, it was designed to function in distributed clusters similar to NoSQL databases, they have a relational model that complies with ACID properties and supports SQL query semantics. Therefore offering capabilities to handle large volumes of data in real time, without sacrificing consistency or reliability. NewSql is still a newer technology, so it may not have a complete arsenal of tools and functionalities provided by preexisting systems.</p><h3><strong>Factors To Consider When Selecting Database (Relational vs NoSQL) For Web Applications:</strong></h3><p><strong>1. Data Model And Schema Flexibility</strong></p><p><em>Relational Databases:</em> These are the best for structured data, with predefined schemas and complicated relationships between entities.</p><p><em>NoSQL Databases:</em> Designed for semi-structured or unstructured data that have flexible schemas, enabling quick development and schema evolution.</p><p><strong>2. Scalability Requirements</strong></p><p><em>Relational Databases:</em> Hardware resources typically limit vertical scalability while horizontal scalability might require complex sharding or replication setups.</p><p><em>NoSQL Databases:</em> Have been designed to be horizontally scalable so as to allow you distribute your data across multiple nodes effortlessly.</p><p><strong>3. Performance Considerations</strong></p><p><em>Relational Databases:</em> Optimized for transactional workloads that need ACID compliance; suitable for applications requiring complex queries and joins.</p><p><em>NoSQL Databases:</em> Targeted towards high throughput and low latency during read/write operations, which makes them perfect for real-time analytics, caching, high volume transactional workloads etc.</p><p><strong>4. Consistency And Availability</strong></p><p><em>Relational Databases:</em> Emphasize strong consistency and ACID transactions at the cost of possible performance and availability trade-offs to ensure data integrity.</p><p><em>NoSQL Databases:</em> They prioritize availability as well as partition tolerance over strong consistency in order to provide eventual consistency model for distributed systems.</p><p><strong>5. Development and Maintenance Complexity</strong></p><p><em>Relational Databases: </em>They require strict adherence to defined schemas, complex normalization, and querying using SQL. For applications with well-defined data structures and multi-faceted relationships.</p><p><em>NoSQL Databases:</em> That is why they tend to have more flexible schemas as well as simpler query languages for reducing development overheads, enabling agile iterations.</p><p><strong>6. Use Case and Workload Patterns</strong></p><p><em>Relational Databases:</em> However, they work best for architectures with transactional requirements, complex data relationships, and strong consistency such as these found in e-commerce platforms, financial systems or ERP applications.</p><p><em>NoSQL Databases:</em> Furthermore NoSQL databases are ideally suited for use cases that involve rapid prototyping where there is an urgent need for scalability at a given point in time or real-time analytics or unstructured/semi-structured data like social networks, IoT platforms or content management systems.</p><h3><strong>Some of the databases in Web Technology:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_awAFckqVesaLEvzDO8og.png" /></figure><p>A database is necessary for every organization in order to organize and keep its core information. A database management system software comes to the rescue to offer such a service. The rise of microservices, cloud distributed apps, semi-structured data, big data, low latency data, and so forth has led to the addition of various NoSQL, NewSQL, and cloud databases to the traditional SQL list of the most popular databases.</p><p>Some of the databases for use with web applications are listed here:</p><p><strong>1. MySQL:</strong> MySQL is a dependable database that has gained popularity as a result of web developers’ relentless pursuit of stability and rapid development.<br>The most recent version of MySQL, version 8.0, cannot be covered by the free SQL database and is written in C and C++.<br>Because of its functional characteristics, flexible GPL license, and updated versions, MySQL became widely used very quickly.</p><p><strong>2. MariaDB: </strong>An RDMS that complies with the MySQL standard is MariaDB. You can switch your MySQL server with it rather often without having to change the code.<br>Compared to MySQL, it is more concentrated on the local area network.<br>It is a structure that makes working with large datasets faster and easier by providing columnar capacity with widely distributed parallel data.</p><p><strong>3. Oracle:</strong> Oracle is a well-liked database for web applications because of its remarkable performance, scalability, and flexibility. It comes with a popular RDBMS and built-in low-level programming languages including Java, C, and C++.It processes data faster and requires less space than conventional databases.</p><p><strong>4. PostgreSQL: </strong>Formerly known as Postgres, PostgreSQL offers a wide range of sophisticated requirements in a unified package with an easy-to-understand curve that can be adjusted and maintained beyond typical capabilities.<br>PostgreSQL is a C-developed database used for handling large amounts of data related to database automation tools, gaming applications, and domain registrations.</p><p><strong>5. MongoDB:</strong> Released in 2009, MongoDB is considered the solution to the problems caused by object-oriented languages like RDBMS since it uses a different method of storing data and necessitates further application-level planning.<br>Therefore, MongoDB was developed to handle document data without the requirement for extra programs in order to solve this issue.</p><p><strong>6. IBM DB2:</strong> IBM’s state-of-the-art platform is AI-driven and intended to deliver data wherever it is required.<br>Its tested task-ready features let you save costs and obtain a thorough picture at the same time, thanks to its multimodal capabilities that do away with the need for duplicates or moves.</p><p><strong>7. Cassandra:</strong> Cassandra’s open technology and rich column store features enable it to easily handle massive volumes of data.<br>Its resilience to failures has made it a popular option for businesses in a variety of industries, making it appropriate in the event of faults or even a spike in traffic to your website.<br> <br><strong>8. Redis: </strong>Redis serves as both a caching system and a database.<br>It’s an in-memory, open-source store that offers a variety of structures, including streams, range searches, bitmaps, geographic indexes, hashes, lists, and sets.</p><p><strong>9. Elasticsearch:</strong> With its automatic sharing and API features, Elasticsearch is an open-source, full-text search engine built on Lucene that can handle horizontal scalability with ease.<br>Whether logging or checking figures, it has the energy and aptitude to store and handle a wide range of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vRBSoTkCiXpzNDhP5cNCSw.jpeg" /></figure><h3><strong>Integrating Web Technologies with Databases:</strong></h3><p>In most cases in the web development, to get access to and alter the database they have to go through a backend server that employs programming languages such as Python, JavaScript and PHP. Django, Flask, Express.js and Laravel are frameworks which make it easier for people to interact properly with databases.</p><p><strong>-Object-Relational Mapping (ORM):</strong></p><p>Bridging the gap between object-oriented programming paradigm and relational databases are ORM libraries like SQLAlchemy (for Python) and Sequelize (for Node.js). Developers can use these libraries to interact with database entities as native language objects thereby hiding the SQL intricacies and database interaction.</p><p><strong>-REST APIs:</strong></p><p>Web applications’ RESTful APIs are the intermediaries between frontend and backend which facilitate smooth coordination and flow of data from one part of a system to another. In accordance with REST, clients can perform Create, Read, Update, and Delete (CRUD) operations on the underlying database using HTTP requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vqpGXioej1mDsvZFxeh4Ew.png" /></figure><h3><strong>Best Practices in Database Management for Web Technologies:</strong></h3><p>1. Normalize Data: This will help to remove redundancy and also maintain the integrity of the information.</p><p>2. Indexing: To enhance query performance, index should be used particularly for frequently accessed fields.</p><p>3. Backup and Recovery: Regular backup and recovery procedures will ensure that data is safe.</p><p>4. Security Measures: Implement security mechanisms which include authentication, authorization and encryption to protect sensitive data.</p><p>5. Scalability: The database shall be designed in such a way that it can be scaled horizontally or vertically when there is more data and many users.</p><h3><strong>Conclusion:</strong></h3><p>In conclusion, the choice of database to use in a web application is an important one as it has a great impact on its performance, scalability and complexity of development. However, careful examination of issues like scalability requirements, data model, performance considerations, complexity trade-offs between consistency and availability, development complexity alongside operational complexity as well as cost consideration can enable you to make an informed decision that suits your project’s goals and requirements.</p><p>Ultimately, however, the objective is to pick out a database system that caters to immediate necessities and growing needs over time. Through the application of a consistent approach to database selection, which looks at technical aspects as well as commercial aspects, it is possible to develop a strong grounding for scalable, resilient, and economical web applications that provide value-addition to your users or stakeholders.</p><p>Please feel free to share your thoughts in the comment section. Your suggestions are always welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3552ae6a3da9" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/unraveling-the-web-navigating-databases-in-web-technology-3552ae6a3da9">Unraveling the Web: Navigating Databases in Web Technology</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Navigating the Data Odyssey: Top Data Analytics Trends for 2023”]]></title>
            <link>https://pub.towardsai.net/navigating-the-data-odyssey-top-data-analytics-trends-for-2023-6f9bf6b3ae5d?source=rss-6c21e8cb414f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f9bf6b3ae5d</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Bhavesh Agone]]></dc:creator>
            <pubDate>Sun, 03 Sep 2023 18:57:32 GMT</pubDate>
            <atom:updated>2023-09-07T13:12:54.805Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W-vN-FKEKsOL6ILdoCLB3A.jpeg" /></figure><p>The study of analyzing raw data to draw inferences about information is known as data analytics. In this blog, I’ll discuss the future of data analytics and show you where the sector is going. In recent years, this industry has experienced many significant changes. You must constantly keep up with the most recent developments in the industry and incorporate them into your work. Interestingly enough, several of these trends are already in motion, while some of these will take time, and others will depend on how far technology has advanced. But if you want to be a valuable addition to any organization, you must be aware of them. Well, it&#39;s very interesting- let’s dive in!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hu24MikWyeDg3dlOOitLQQ.png" /></figure><h3><strong>Artificial Intelligence</strong></h3><p>Let&#39;s start with Artificial intelligence. Data analysts and other professionals can be more productive when performing data analytics since data analytics is advancing alongside the development of AI. There are several fantastic new A.I. tools on the market right now that you can quickly integrate into your data analytics pipelines. The most effective AI augments rather than replaces human creativity and productivity. Why not have a look at Open AI’s Copilot, which is now integrated into GitHub and enables programmers to write code more effectively and quickly than ever before, if you want a coding-related example? GitHub Copilot is a pretty fantastic tool that greatly increases a programmer’s potential and productivity. Ask a programmer who has just tried it , the only response he could muster would be of amazement, awe, and wonder. Data analysts will, therefore, depend more on machine learning tools in 2023 and beyond to enable them to do their duties more effectively. Let’s look at some of the examples that are currently provided.</p><p><strong>Smart Tooling:</strong> This refers to artificial intelligence (AI) programs that automatically transform data from unstructured formats, such as written documents, webpages, or Excel spreadsheets, into SQL-structured database systems. This eliminates a lot of the labor-intensive work that data analysts often perform in the early stages of a project.</p><p><strong>Natural Language Processing: </strong>Natural language, instead of dated code bases like SQL or Python can now be used to query databases by data analysts. Natural language processing also gives analysts the ability to interactively monitor a specific company’s social media presence and keep track of things like brand awareness, popularity and sentiment analysis, etc. In structured data formats like knowledge graphs, analysts can include information about a company, such as its articles of incorporation or investor reports, so that it can be later more efficiently queried.</p><p><strong>Time Series Analysis: </strong>Building machine learning models to automatically identify risk triggers in user-related data or financial data of the organization will enable more analytics based on such triggers. Many people are concerned that machines will eliminate their occupations when they learn about artificial intelligence.</p><h3>Data Democratization</h3><p>Giving all staff members access to data, whether or not they are technical professionals, is known as data democratization. Nowadays, everyone agrees that data-driven judgments result in superior choices. What is a choice driven by data? It entails depending on data rather than your gut feeling. As a result, an increasing number of businesses offer internal training to help staff members become more data literate.</p><p>Data literacy: What is it? It simply implies that each and every person of your staff needs to be knowledgeable about the methods and ideas involved in dealing with data. <br>However, just because data’s being democratized doesn’t mean we don’t need technical expertise. For example, technical expertise are still needed to supervise data analytics pipelines and to guide and assist non-technical staff members. The increased use of dashboarding technologies like Looker, Tableau, and Power BI is a good indicator of the democratization of data. However, departments outside of analytics are also making use of data. Data democratization is also necessary for departments like marketing, growth, and product, as evidenced by the emergence of tools supporting these divisions, such as AB Tasty for AB test, userpoll for guided onboarding, and Mixpanel or Heap for product analytics. The emergence of the API network is another area where data democratization is evident. Through the deployment of APIs, businesses are increasingly making their data publicly accessible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r9HlEwOIToAfISNmp14X_w.jpeg" /></figure><h3>Embedded Analytics</h3><p>Let’s now examine embedded analytics. Most likely, you’ve heard a lot about virtual reality (VR) and augmented reality (AR) in the news recently. Whether it’s the recent difficulties at Meta, the anticipated debut of Apple glasses in a few years, the new Oculus Quest Pro, or go back to the difficulties Google encountered when introducing Google Glass. Some of the buzz is, in fact, true. Analysts are now able to offer customers fresh ways to perceive and comprehend data thanks to developments in hardware for augmented reality and virtual reality. Users will be able to view more information than ever before about any goods and services they’re consuming thanks to embedded data that will be made available via AR Hardware. Imagine you’re in a grocery store and you can click a button to quickly learn a product’s carbon footprint, caloric content, exact source details, and any recipes you might be able to utilize it in. The eventual democratization of data is facilitated by this embedding of analytical information. Let’s now consider VR. We all realized the necessity of remote work during the most recent COVID outbreak. The lack of human connectedness caused by online meetings using services like Zoom and Google Meet is one of the major negatives of working remotely. So how does VR fit into that? With good avatars and realistic emotional expressions in completely immersive virtual boardrooms, it would be able to simulate the sense of connection that people experience when they are physically present in a setting close to one another. It enables the analysis of nonverbal signs like eye contact and others that are lost during these online interactions. Furthermore, consumers of data will be able to understand the messages that the analysts are attempting to convey more readily in a fully virtual environment where analysts can use data geometrically, interactively, and in three dimensions rather than via PowerPoint presentations or other more traditional techniques.Data analysts will have far more freedom to employ inventive methods to present their data in a fully virtual world. As a result, the adoption of VR will probably have the biggest impact on data visualization if it includes all the procedures that a data analyst needs, such as cleansing acquisition and preparation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YmjJR6I_u5snbZEdSO42w.jpeg" /></figure><h3>Predictive Analytics</h3><p>The goal of predictive analytics is to make predictions about future events using historical data and analytics techniques like statistical modeling and machine learning. Any firm may now use historical and current data to accurately predict patterns and behaviors milliseconds, days, or years in the future with the aid of advanced predictive analytics tools and models. Predictive models are frequently used by retailers to plan for future inventory needs, coordinate shipment schedules, and optimize store layouts for sales. Predictive analysis tools will be used more frequently in the field of data analytics in the upcoming years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZhiHex4wWJs4DJ88RVilg.jpeg" /></figure><h3>Data as a Service (DaaS)</h3><p>Data analytics won’t function the same way it does now in the future. Right now, if you want an efficient data analytics solution, you’ll often need to engage a few data engineers to build your data pipelines and a few data analysts to analyze the data within and produce efficient data visualizations to communicate with the rest of the organization. For many new enterprises, this cost may be prohibitive. Additionally, finding the necessary IT talent is not simple. And this is where DaaS can be of assistance. Data as a Service, or DaaS for short, is the name given to cloud-based software applications that let users manage their needs for data warehouses or business intelligence tools. These DaaS tools can be hosted and used from any location. They come in different sizes. Essentially, it enables subscribers to offer data analytics services without having to maintain a data engineering or data analytics department. Because you don’t need to hire as many data engineers, software engineers, and data Data analysts will have far more freedom to employ inventive methods to present their data in a fully virtual world. As a result, the adoption of VR will probably have the biggest impact on data visualization.DaaS should ultimately result in an increase in productivity for small and mid-sized businesses. As more companies integrate their products and services into the cloud, DaaS has become a more popular method for integrating, managing, and delivering data analytics services. It will enable analysts to share data more easily than before and will streamline business tasks and processes. Additionally, in recent years, a brand-new class of products — the so-called minimal code or no code analytics platforms — has grown in popularity. These are systems designed for non-programmers and typically feature drag-and-drop user interfaces. Without having any prior technical knowledge, users may develop analytics, pipelines, and visualization dashboards. This significantly lowers entry hurdles for small to midsize businesses trying to make data-driven decisions. yet without having enough money to pay for a sizable staff of internal analysts or engineers. Platforms for low- or no-code analytics include those from GoodData,Priceloop, and Bold BI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hwjhfc62tzAIfWAa1jaKQw.jpeg" /></figure><h3>Data Fabric</h3><p>Data fabric is a comprehensive data and artificial intelligence approach to use all current and future investments in your data estate, not just one specific piece of technology. The AI Ladder is an easy-to-understand and implement strategy that focuses on gathering, analyzing, and incorporating all company data to provide better, more compelling customer experiences, better services, and better products, as well as increase business operation efficiency. So why is it so important to grasp what a data fabric is today? We’re entering a new technological era, so the biggest challenge in the knowledge era will be bridging the knowledge and insight gap so that more of the available data and information can be turned into knowledge and insights, resulting in more dynamic, cutting-edge products and services, more personalized customer experiences, and improved business operation efficiency. Therefore, what prevents organizations from filling in that gap with the data they already have? The basic answer is complexity, which is created by technology, scale, and human resources. To sum up, a data fabric is all about utilizing people and technology to bridge the knowledge gap between the company’s expertise and the data that is available, resulting in more dynamic goods and services, more compelling customer experiences, and increased business efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x6miAzq1BdPsdYYezd0k6Q.jpeg" /></figure><h3>IoT and Real-time Data</h3><p>The growth of IoT and real-time data comes next. Most of you have probably heard about the Internet of Things, or IoT, by this point. Whether it’s your corner smart speaker or your robotic vacuum. Hardware is increasingly utilized to monitor and study human behavior. More goods and services are producing real-time data as a result of the growth of IoT. Real-time data is frequently unstructured and large in volume. This implies that you receive a lot of it and that it is quite untidy. However, if you know how to work with unstructured, real-time data, you can discover priceless insights into the world that will enable you to add genuine economic value. One of the most recent examples is Ring, a smart device with an accompanying app that enables users to keep an eye on video and sound data throughout the house. IoT devices are also used in different industries and manufacturing facilities to monitor diffrent intrumenets and machines etc. Google Maps also makes use of IoT to track real-time traffic data and deliver alerts about clogged roads close to you.</p><p>Why, then, does this matter to data analysts? The more real-time data we can gather about a system’s users, the better our ability to comprehend them will be. Data analysts will thus be able to open up fresh opportunities for the companies they work for. Real-time data and the growth of IoT also raise questions about data protection. There you have it, then. The field of data analytics is one that changes quickly. You will always need to be alert in this field.</p><h3>Data Governance</h3><p>Let’s now examine data governance. As we are all aware, the modern economy generates and consumes an increasing amount of data. Concerns from individuals about how their data is being created and used are growing along with data governance. Data governance has become more popular recently as a result of these worries. And what exactly is data governance? Data governance refers to making sure that the data you produce is of the highest quality and that it complies with all applicable laws and regulations in the area in which it is both produced and used. Basically, let’s produce high-quality data while abiding by the law. Therefore, all businesses nowadays should take care to develop an effective data governance policy. A sound plan makes sure that data is protected and aims to make sure that it is as high-quality as feasible. Lack of a strategy can cause low-quality data to miss out on commercial possibilities and, in the worst scenario, result in penalties or even jail time from the authorities. Many of our followers in Europe will be familiar with GDPR regulations, but there are also equivalent laws in other regions of the world. So having sound data governance processes in place is crucial for all businesses. besides data governance techniques. To guarantee that the data is compliant with the data governance policy, small to medium businesses may frequently need to employ data protection officers. Companies are not the only ones who struggle with data governance, though. That responsibility falls on consumers as well. How recently have you truly read the terms and conditions of a contract on an app that you use or update? I always mention in my blogs that data has a great value in this world and companies would do anything to get it. I understand how difficult it is to read those terms &amp; conditions, which is why legal technology companies are establishing themselves all over the world to assist us in overcoming the issues of data governance that we face as private data consumers. As a result, I see a market in the future for disruptive legal technology companies that use machine learning and artificial intelligence to help customers comprehend their contractual obligations. In this arena, though, there are already players.</p><h3>CONCLUSION</h3><p>So, here we conclude our list of the latest trends in the data analytics domain. It’s evident that this field is evolving rapidly. With cutting-edge technologies emerging, the growing utilization of data, and a stronger focus on data governance, the future of data analytics looks incredibly promising. To fully harness the potential of data in the coming years, it will be crucial to stay up to date with the trends in this field. So let&#39;s embark on this journey into a data-driven future with curiosity and creativity as we explore and gain insights, from the sea of data that surrounds us.</p><p>Please feel free to share your thoughts in the comment section. Your suggestions are always welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f9bf6b3ae5d" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/navigating-the-data-odyssey-top-data-analytics-trends-for-2023-6f9bf6b3ae5d">“Navigating the Data Odyssey: Top Data Analytics Trends for 2023”</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“From Gaming to AI: Nvidia’s Pivotal Role in the AI Revolution”]]></title>
            <link>https://pub.towardsai.net/from-gaming-to-ai-nvidias-pivotal-role-in-the-ai-revolution-6dae898cd499?source=rss-6c21e8cb414f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6dae898cd499</guid>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Bhavesh Agone]]></dc:creator>
            <pubDate>Sat, 08 Jul 2023 14:35:14 GMT</pubDate>
            <atom:updated>2023-07-10T14:11:23.605Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4qvNqZjuif1EnZ7SLfXM6Q.jpeg" /></figure><p>Nvidia is now worth more than Facebook, Tesla and Netflix. According to Reuters, the stock’s value has tripled in the last eight months. But how did this happen? How did a company that was almost on the verge of bankruptcy in 1997 hit a trillion-dollar market cap in 2023? Let’s find out by understanding what NVIDIA actually does. The processing and calculations of the computer take place on a little chip which is known as the CPU. These include, for instance, the Intel Core i7 or AMD Ryzen processors. The GPU, or graphics processing unit, is the piece of hardware that every gamer, video editor, Crypto miner, and now AI startup is chasing. The GPU takes over and renders sophisticated visuals when a computer is required to do so, such as in video games or 3D modeling. Do you know who came up with the phrase GPU? It was Nvidia, of course. Because of these GPUs, Nvidia’s market cap is now approaching $1 trillion. However, they didn’t get to this achievement overnight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W3kEyH2IRImphkJhn_kpsg.jpeg" /></figure><h3>NVIDIA’s Story</h3><p>Three engineers, Curtis Preim, Chris Malachowsky, and Jensen Huang, created Nvidia in 1993 because they thought graphics-based computing might become the norm in the future. When NVIDIA almost went bankrupt in 1997 while developing graphics technology for Sega’s game system, that was the company’s first major turning point. ( Like Nintendo, Sega was a company that once competed in the console market). They introduced the Sonic series first, and Nvidia was developing a graphics card for Sega’s 128-bit gaming console Dreamcast. However, after a year of work, Nvidia discovered that its strategy was flawed because Microsoft was set to disclose its own texture mapping strategy, rendering Nvidia’s product incompatible with Windows 95. Nvidia continues to produce this console. Because it wouldn’t sell well and wouldn’t work with Windows, they would eventually go bankrupt. However, if they didn’t build it, they would immediately go bankrupt. NVIDIA CEO Jensen Huang informed Sega’s CEO that NVIDIA would not be able to build the console’s graphics hardware and that Sega should seek out a different partner. He pleaded with the CEO of Sega to give him his full payment since Nvidia was going to collapse without it. Because Sega paid NVIDIA despite the fact that they hadn’t fulfilled their promise to them, it’s practically like asking for money outright. Although Jensen Huang has no idea why they did that, they were able to survive for another six months as a result.</p><p>Nvidia began to expand over the following few years. However, because producing these chips was becoming more expensive, Nvidia signed a manufacturing agreement with TSMC. Nvidia aspired to be a fantastic business. Because chip manufacturing in the US is a low-margin industry, they decided against producing their own. TSMC currently produces processors for numerous tech businesses, including Apple, AMD, NVIDIA, and others. Nvidia is significantly reliant on this cooperation, but it has grown difficult. Why?, to know the answer, stick to the blog till the end.</p><h3>Nvidia: The Powerhouse of Gaming</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mOWsRa0LCfi89UqGp4FgBA.jpeg" /><figcaption>Source:Nvidia</figcaption></figure><p>In the early 2000s, Nvidia obtained a $200 million advance on a deal to produce the graphics hardware for Microsoft’s Xbox. Next year, their revenue reached $1 billion and served as the inspiration for several video games that were released that year. The following turning point was significant for two reasons: first, popular games started to be developed with Nvidia cards in mind, and second, Nvidia’s capabilities extended beyond merely creating graphics cards. They were working along with game designers. The key is that they did more than simply provide graphics cards. They also assisted game creators like Blizzard in optimizing titles on Nvidia technology to ensure smooth frame rates. The video game playing is excellent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*JN87m6CXh55mnYitrMsH5A.png" /></figure><p>It’s still done today. As a matter of fact, DLSS, one of their upscaling solutions, was recently embraced by a large number of game developers. They used to refer to it as the Way it’s Meant to be Played program. Today, this is a widespread occurrence. Due to the fact that so many games are specifically optimized for Nvidia graphics cards, you often see them powered by Nvidia or a preferred partner, Nvidia at the opening screen of games. GeForce from Nvidia was soon also utilized by PS3. For both Xbox and PlayStation, they were selling graphics equipment.<strong> Today, when gamers debate who will win between Xbox and PlayStation, The answer is NVIDIA because their chips are in both of them.</strong></p><p>In 2020 most businesses got a sucker punch from Covid 19, but for NVIDIA, it was like they caught the golden snitch. People were suddenly working from home, and when they weren’t working and were still stuck at home, they gamed, and they needed hardware, and PCs became as essential. GPU demand exploded in 2020. Nvidia’s Revenue was just under 11 billion dollars; one year later, the revenue skyrocketed to nearly 27 billion while more than doubling their net income.</p><h3>CUDA</h3><p>This gets us to the next crucial junction where we understand the reason Nvidia is needed today is for A.I. companies. It was cryptocurrency companies in the most recent years. Currently, it’s AI firms. NVIDIA introduced something called<strong> CUDA or Compute Unified Device Architecture</strong>. No matter what trend emerges, as long as the trend is computing-based, NVIDIA will triumph. It excels in concurrent processing. Typically, GPUs powered by CUDA from Nvidia excel at parallel processing, while CPUs typically excel at serial processing. A GPU has many, many more cores than a CPU, which has up to eight or sixteen cores at most. As a result, while CPUs typically take on a single task, complete it, and then go on to the next task, GPUs have the ability to divide up work. The GPU, for instance, can render certain elements of a scene on various cores when producing a scene(Parallel processing).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7uLJoOiBkaVVGBrOu2xPhw.jpeg" /><figcaption>Source:<a href="http://www.gigabyte.com/">www.gigabyte.com</a></figcaption></figure><p>Nvidia and AI are a match made in Silicon Heaven; you see, GPUs are the Bedrock of artificial intelligence, and Nvidia just so happens to make some of the best ones in the business. In 2006 Nvidia brought CUDA to the world, a parallel Computing platform and programming model. It lets developers tap into the future potential of GPUs. In layman’s terms, it’s like teaching a racehorse to moonwalk; impressive and incredibly useful for some very specific scenarios. With Cuda, Nvidia turned their GPUs into high-speed Computing powerhouses with the right software; users could now run computations on gigabytes of data with just a few simple queries it took a while for people to catch on, around 10 years.</p><h3>Nvidia and AI</h3><p><strong>Nvidia’s GPUs are not just vital for training and operating AI models they are synonymous with them.</strong> In ChatGPT, GPUs are needed not only for the initial training of the AI model but every time someone uses chatGPT, so the number of GPUs required will scale with the number of users.</p><p>OpenAI probably needed the equivalent of 20,000 DGZ A100 Nvidia GPUs to train the chatGPT model. The further estimate is that OpenAI needs the equivalent of about 30,000 of these systems to support the product’s 100 million active users. As the AI industry grows, Microsoft, Google, Amazon, IBM, and many other companies will have to buy more GPUs.</p><h3>Nvidia’s Deep Learning Division</h3><p>Nvidia had already made a name for itself in the gaming industry, but by 2012, Nvidia was doing more than just powering graphics cards. They had new use cases, Datacenters, Cloud GPUs, and of course, training AI models. It turned out that the same parallel processing technique that was beneficial for displaying visuals was great for deep learning, where the computer learns the underlying patterns based on inputs and outputs. Nvidia is aware that this has the potential to fundamentally alter the computing industry. They consequently began concentrating substantially on developing processors designed for AI training. This is what they refer to as their Deep Learning Division.<br> Do you know what else parallel processing is useful for? <strong>Crypto mining!!</strong> The crypto-mining process entails solving difficult mathematical puzzles that call for a lot of processing power. Therefore, in the crypto gold rush as well, GPUs with effective parallel processing become essential. People filled up their basements with these cards. Their market capitalization increased as a result in 2021. The AI Gold Rush is experiencing the same thing once more. AI models like GPT and Lama are being trained by businesses like OpenAI, Amazon, and Facebook using entire buildings filled with GPUs. However, Nvidia has been developing unique GPUs, such as the A100, which is geared for deep learning and costs more than $10,000. These are not exactly the same GPUs we use for gaming. ByteDance, the parent company of TikTok, ended up spending a billion dollars as recently as a week ago acquiring chips from NVIDIA. Regardless of who wins the AI race, Nvidia is already winning because most of these companies are using Nvidia’s GPUs to train their model.</p><h3>Nvidia’s Revenue Model</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_1qDWgt6FrAH30F2l9TpXw.png" /></figure><p>The major market includes gaming, which is data centers professional visualization, which is 3D modeling software; VFX studios, automotive, and OEMs. Until the fourth quarter of 2021, gaming was their biggest turner. The crypto boom generated a shortage of GPUs, which in turn drove up costs. The gaming sector continued to dominate in 2023 despite a slight decline in gaming revenue and a decline in the number of individuals purchasing gaming GPUs or cards to mine cryptocurrency. However, Nvidia is not very concerned about this, given their data center revenue. It’s growing, All thanks to the AI boom.<br>Nvidia spends almost $2 billion on research development. it puts most of its effort into research to make the best GPU’s in the world and very little into manufacturing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*VWyvV1_pxRv-Iweqwhibow.png" /></figure><h3>Taiwan-China Conflict</h3><p>Nvidia signed a manufacturing agreement with TSMC. This alliance is becoming somewhat problematic because of the Taiwan-China conflict. Major corporations also want to relocate their chip manufacturing facilities outside of China’s jurisdiction. The CHIPS Act was sponsored by US President Joe Biden and will provide an additional $280 billion in financing to advance semiconductor production and research in the country. In Arizona, TSMC is constructing two chip facilities, the first of which is anticipated to begin operations in 2024. India has also announced a $10 billion manufacturing incentive for semiconductors. If a lot of things work out, India could, over the course of the next ten years, grow into a significant global semiconductor manufacturing hub.</p><h3>CONCLUSION</h3><p>ChatGPT is here and it has changed the way we see the world around us. Many big tech firms are in the race to win the AI Revolution and as I often say, when there are too many big powers involved in any war the technology develops at a great pace. We will soon see many amazing technological advancements from Nvidea in the near future.<strong> So guys, buckle up as we’re just scratching the surface of the AI Revolution, and there’s a whole world of possibilities waiting to be explored.</strong></p><p>Please feel free to share your thoughts in the comment section. Your suggestions are always welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6dae898cd499" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/from-gaming-to-ai-nvidias-pivotal-role-in-the-ai-revolution-6dae898cd499">“From Gaming to AI: Nvidia’s Pivotal Role in the AI Revolution”</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Startup to Success: The Rise of Dream11 in the Indian Gaming Industry and the Ethical Issues…]]></title>
            <link>https://medium.com/@Jack_of_all_Techs/from-startup-to-success-the-rise-of-dream11-in-the-indian-gaming-industry-and-the-ethical-issues-de2f91b17c68?source=rss-6c21e8cb414f------2</link>
            <guid isPermaLink="false">https://medium.com/p/de2f91b17c68</guid>
            <category><![CDATA[third-unicorn]]></category>
            <category><![CDATA[dream11]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[fantasy-sports]]></category>
            <category><![CDATA[ipl-2023]]></category>
            <dc:creator><![CDATA[Bhavesh Agone]]></dc:creator>
            <pubDate>Thu, 06 Apr 2023 20:17:02 GMT</pubDate>
            <atom:updated>2023-04-07T07:49:25.075Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Startup to Success: The Rise of Dream11 in the Indian Gaming Industry and the Ethical Issues it Raises</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TyXJFq1HoYVxsmm7CH_cFQ.png" /></figure><p>Since the commencement of the Indian Premier League (IPL), the Indian business ecosystem has been pouring in thousands of crores into sponsorships. It’s common for businesses like Pepsi or Tata to invest hundreds of millions of dollars to sponsor the IPL, but in 2020 it was astounding to see a 12-year-old startup named Dream11 (whose application was not present on Google play store until September 2022),<br>won the sponsorship bid of the IPL for an astonishing amount of ₹ 222 crores.<br> Since then, Dream11 has developed into one of the nation’s fastest-growing sports fantasy platforms, with more than 140 million users as of 2021.<br>And guess what? Dream Sports is now valued at more than $8 billion and is one of the few consumer-focused startups that has actually turned a profit as of 2020. The company’s sales has already surpassed $2 billion.<br>The question is: What is this company’s “dream” model, how do they make money despite investing hundreds of millions of rupees in marketing, and most importantly, how did they very ingeniously get around the law that could have prohibited them from operating because they were a gambling establishment?<br>Well lets see step by step,</p><h4><strong>What is Dream11?</strong></h4><p>Dream11 is a fantasy sports app co-founded by Harsh Jain (son of Indian businessman Anand Jain) and Bhavit Sheth in 2008, where you can create your fantasy team based on real-life matches.Dream11 is the first Indian fantasy gaming company to enter the unicorn club. Users of the app Dream11 can create fictitious teams. The caveat is that the users can get paid dependent on how well their teams’ chosen players perform in actual matches. Users receive cash rewards for each successful move made by the players.Dream11 offers its customers the chance to play games including cricket, football, kabaddi, and National Basketball Association(NBA).<br>The platform currently has a customer base of over 15 Crore users. Dream Sports is a sports technology company whose portfolio includes brands including Dream11, FanCode, DreamX, DreamSetGo, and Dream Pay.</p><h3><strong>Dream11 — Startup Story</strong></h3><p>The new fantasy sports market was sparked by the Indian Premier League (IPL). Harsh and Bhavit founded the business in the hope that sports fantasy leagues would develop into a lucrative service niche in a nation with billions of cricket enthusiasts.</p><p>Since IPL started, people’s way of watching cricket was completely changed. Where people, used to sit &amp; enjoy cricket full day, now that same fun was possible to be enjoyed in just 3–4 hours which took cricket’s viewership to the sky.<br>When Harsh Jain returns to India from the US after his studies, he observed and analyzed a critical thing in India that the people who watch cricket are very judgemental and they analise the sport completely.<br>They often say that,Dhoni should play like this, Kohli should play like this. If they would have played like that then they could have won.etc.</p><p>Then Harsh thought ,Why not bring fantasy gaming to India &amp; launch it in cricket?<br>And this is the moment when the idea of Dream11 started to boom.<br>Few people are aware that when Dream11 was first founded, the firm was very different from what it is today. This business at the time was entirely dependent on ad revenue. This prevented any growth from occurring.<br>Not to mention, there was absolutely no chance of making money. Years passed and Harsh continued. The fortune of Dream11 altered when He finally achieved product-market fit in 2012.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*wJzwFRn9Bz3JnAeK7GRk9g.jpeg" /></figure><h3><strong>Dream11 model And its Revenue mode</strong></h3><p>Dream11 operates on the “Prize pool commission model”. Everyone who uses their platform to play games must pay an entry fee, and in return, they receive some credits. Now obviously the better the player ,the higher will be the amount that the one has to pay to get the player into his team and this is where strategy comes in.For example if MS Dhoni and Rohit Sharma both have a high dream level price tag.Although one would want to have both of them in his team but he/she wouldn’t be able to do so because he/she would be left with very little money to purchase other players.Another catch we hear is that the person playin the fantasy game can not pick all the 11 players from the same team,at max he can pick 6 members from one team and a minimum of 5 from the other.Note this very very carefully because it’s very important for the discussion<br>ahead. This competition has entry fees as low as ten rupees but could go all the way up to thousands of rupees. Let’s imagine that Aryan, who is a little dubious, enters the competition with an entry fee of 49 rupees. Just like Aryan, thousands of participants will also enter the competition.Now, dream 11 mostly serves as an organiser for these competitions so that all of these players are classified according to the amount of money they have invested.Let’s say the number of participants is 3 lakh.The first ranker gets the highest amount and from there onwards the amount keeps descending .<br>And the position of Aryan is determined by how well the players he selected performed in the game and ultimately the number of points his team scores determines how much money he will get. Dream 11 has already established these point systems, so you receive a separate point for each catch, weekend, and number of runs your player achieves. You can view all of these in real time alongside your ranking. And from that point forward, you are powerless to affect the outcome; all you can do is wait and pray that your players do well.<br>And after that the price money pool that is formed,80–85% of the money is collected by the corporation, which then gives it to participants as prize money.<br>The remainder, between 15% and 20%, represents the company’s profit.So if the entry fee for a contest is 49 rupees and 3 lakh people enter the contest then the total money collected amounts to 1.47 crores out of which 20 percent is usually dream11’s cut. Regardless of whether you make money or not Dream11 always walks away with a hefty profit.</p><h3><strong>Gambling Edge</strong></h3><p>Now, the question is: Isn’t this just like gambling? I mean, even here, users choose a particular player in the hopes that they will perform well, and when they do, these players actually win and, similar to betting, the money of the players placing the bet is left up to chance. Considering that the bet organiser wins automatically, the fact that it appears to be gambling to us, and the reality that gambling is prohibited in the majority of Indian states<br>How is this business running throughout the nation, not to mention sponsoring the greatest sporting events in India, the IPL?<br>The answer to this can be found in a case from the Rajasthan High Court, where a man by the name of Chandra Shankara complained that the public was being defrauded by Dream 11, that it amounted to gambling, and that it shouldn’t be permitted in India. However, the rajasthan High Court dismissed the petition by citing decisions from the Punjab, Haryana, and Bombay High Court.The High court said in dismissing the petition that it may be reliably inferred that the outcome of fantasy games is not determined just by chance or accident and that the skill of the player impacts the game’s outcome and has a significant bearing on it.<br>This was even taken to Supreme court and the outcome was no different.The petitioners argued that fantasy sports businesses like Dream 11 are nothing more than pure gambling and not competitive games of skill. In order to comprehend this claim, however, we must first define what constitutes gambling.<br>Gambling is frequently described as betting, gaming, or engaging in an activity that is a game of chance rather than a sport of skill in the hopes of winning a larger sum of money or any other prize by risking a little amount of money now. The justification for Dream 11 was that choosing a team of players requires analytical skills, strategy, and historical information of the players; it is not done after knowing the result of the game.You see, guys, when you play dream 11, you aren’t betting on one team alone.(here’s where the feature that we discussed earlier comes into play) The 11 players that you select will be in a 5–6 combination, which means you have to choose six players from one team and five players from the other, or vice versa. The argument over here is that with knowledge of the player’s past performance and on the basis of the record in certain games, a judgement is made based on those factors.<br>So “legally” Dream11 is not a gambling game. But is it a good to play it regularly ,well I dont think so, we will discuss this further in this blog.</p><h3><strong>Masterstroke</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*IJPdxAUxcVlcFlhCxtTPWw.jpeg" /><figcaption><a href="https://www.behance.net/">Photp from :https://www.behance.net/</a></figcaption></figure><p>However, the harm had already been done from a marketing perspective, which presented a difficulty. Even if the verdict was in their favor, as soon as this information surfaced, it was seen as a gambling game. Dream 11 wasn’t even available on Google Play Store’s platform(untill sept 2022)(this is because the play store has strict guidelines on the apps that indulge in gambling directly or indirectlym and Google revised these rules after sept 2022).<br>So how did Dream 11 restore their reputation after this blemish? Simple they roped in the legend Mahendra Singh Dhoni himself. And when Dhoni endorses a particular brand we all know what is the effect of it. In addition, Dream 11 created a campaign with the slogan “khelo dimag se” that very clearly emphasised the need for strategic thinking.<br>This is how Dream 11 returned to the game, and along with Dream 11, many other sports fantasy organisations have joined the cricket fever in an effort to profit as much as possible. The valuation of Dream Sports at $8 billion makes it clear where this sector is headed.</p><h3><strong>Funding and Investors</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0jygi6pvApeUxuCDTrreA.png" /><figcaption>Source:<a href="https://tracxn.com/">https://tracxn.com/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xhVIL0wpZHRmNySHtK1ikA.png" /><figcaption>Source:<a href="https://tracxn.com/">https://tracxn.com/</a></figcaption></figure><p>As of November 25, 2021, Dream11 had amassed close to $1.62 billion in financing from 9 rounds of funding. Falcon Edge, DST Global, D1 Capital, Tiger Global, and Redbird Capital were the leaders of the most recent investment round for Dream11; TPG and Footpath Ventures also took part. This investment round, which began on November 24, 2021, enabled it to raise about $840 million. The Chinese juggernaut Tencent, which contributed $100 million via a Series D funding round in September 2018, is one of the notable investors that have contributed to Dream11’s funding. Many Indian firms, including Practo, Hike, Flipkart, Ola, and Gaana music, had previously received finance from Tencent Holdings, a Chinese international investment firm. <br>In April 2019, the company received funding from Steadview Capital, becoming a member of the exclusive Indian unicorn club. Huge companies like Kalaari Capital, Chinese digital juggernaut Tencent, Think Investments, and Multiples Equity support Dream11.<br>According to reports dated September 4, 2021, Sporta Technologies, the parent company of Dream11, is considering a new financing round to raise approximately $12.5 million (roughly Rs 90 crore). Antordaya Commercial and Holdings Private Limited has requested to receive 2,933 equity shares for a total of Rs 90,72,44,359 from Dream11’s parent company at a premium of Rs 3,09,313 per equity share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*UjmtslwDnb1PcY5fTurPjg.png" /><figcaption>Photo from :<a href="https://entrackr.com/">https://entrackr.com/</a></figcaption></figure><h3><strong>Ashneer Grover’s Third Unicorn</strong></h3><p>Ashneer Grover, the ousted cofounder and MD of BharatPe, is entering the crowded fantasy sports market with his newest company, Third Unicorn, and has already registered a trademark for a fantasy cricket platform named CrickPe. Documents filed with the government’s Trademark Registrar Office showed that CrickPe’s services include, “creating an online community for registered users to participate in the administration of sports competitions and fantasy sports competitions and related operations, voting, auctioning, coaching, play calling, contract negotiations, salary negotiations, player trades and player drafts.”<br>I personally didn’t like this new venture (why? its discussed below).I was too exited for Ashneer Grover’s new venture when he announced the “third unicorn” but when he launched CrickPe ,I was a lot dissapointed was hoping for a brand new segment and new revolution in the field of Indian entrepreneurship and absolutely Ashneer Grover has the potential to do so.Anywaasy no offence to Ashneer sir and still hoping to get some amazing companies out of the Third unicorn.<br>According to all indications, Ashneer Grover’s CrickPe would face competition from Indian fantasy sports startups Dream11, MPL, my11circle from Games24x7, and a number of others.<br>However, given the intense competition in this sector, acquiring customers requires a significant investment in promotion, which has been challenging for startups during the previous few months. For instance, ShareChat terminated its fantasy game service Jeet11, which resulted in the firing of 100 staff members at the social media unicorn.<br>Given that Grover recently openly advised venture capitalists to stay away from Third Unicorn, stating that the firm would only utilise “desi/self-earned capital,” it is unclear where CrickPe obtains the funding it would obviously require for a larger rollout.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fPJn-bHK9XiB-c9w1XO3Sg.jpeg" /></figure><h3><strong>Reality of Dream11</strong></h3><p>Dream11’s actual product is not their game. Their actual product is EGO, emotional intelligence &amp; the design of everyday things. Human’s biggest hunger is EGO and and to fulfill it, it can cross any limits. Even now, many of us are unaware of this.Half of our labour is done by our ego and let me say this: “In this world, selling ego is the most lucrative industry.”</p><p>How does the actual business model for Dream11 operate?</p><p>There are two facets to their business plan Winning and Losing.<br>Take into account that you bet money on Dream11 and that you won.Now,due to the minor accomplishment you have achieved in this situation you’ll become dependent on this.And this addiction develops as a result of your inflated ego following a victory. You play this game again by default.<br>Let’s examine the second scenario now.<br>You spend money, play, and lose right now. Now in this instance, as Dream11 has done its marketing in such a way, you need knowledge and abilities to succeed in Dream11.<br>You’ll stay in this game from now on because you now find this difficult. Your ego has been tested by this game, which you now lose. And you now have the drive to re-play and to re-win.As a result, you begin playing this game once more again.<br>This game is compelling for two more reasons. “Low entry barrier” is number 1 and the second thing, “High exit Barriers”. You can’t leave the Dream11 platform even if you want to because of one reason,<br>That reason is the “Sunk cost fallacy”.</p><p>Observe its operation. When you first create your squad and play on Dream11,therefore, your time is just as important as your money. If you succeed,your delighted hormones then compel you to play this game once more. However, even if you lose, as you have invested time in playing this game, so to recover that time in terms of money, you play this game again and you continue to play this game.</p><p>If someone thinks :Ok so as I have wasted this much time,he would again rethink: Let me invest some more time, who knows I might win.This loop goes on in similar way.<br>Additionally, to strengthen this,Dream11 has established a withdrawal cap of Rs. 200. So long as you don’t have 200 rupees, you’ll continue to play. You win or lose, company will earn money in every way. And this is one reason,investors are paying so much funding to them.</p><h3><strong>MY VIEWS</strong></h3><p>Should I play this game? Well my clear answer is NO.<br>This game is nothing but buttered up version of gambling in my opinion. There is one thing which people are unable to see, that is time. The time that it consumes, the value of that time is more than the money you earned on that platform. The issue is that many people still place a higher value on money than on time. And by taking advantage of this, these businesses rob us of our time.<br>And last as quoted in The Bhagavad Gita: Chapter 10, Verse 36</p><blockquote>द्यूतं छलयतामस्मि तेजस्तेजस्विनामहम् |<br>जयोऽस्मि व्यवसायोऽस्मि सत्त्वं सत्त्ववतामहम् ||<strong> 36||</strong></blockquote><p>Translation<br>BG 10.36: I am the gambling of the cheats and the splendor of the splendid. I am the victory of the victorious, the resolve of the resolute, and the virtue of the virtuous.</p><p>We should never indulge in any gambling activity as it just brings misery. The time and resources you’re investing in dream 11 ,if the same resources are put into learning a skill, they will undoubtedly yield much greater rewards, and your chances of gaining a return will rise.</p><p>Please feel free to share your thoughts in the comment section. Your suggestions are always welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de2f91b17c68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“From Search Engines to Chatbots: A Deep Dive into the Differences Between ChatGPT and Google’s AI…]]></title>
            <link>https://medium.com/@Jack_of_all_Techs/from-search-engines-to-chatbots-a-deep-dive-into-the-differences-between-chatgpt-and-googles-ai-132b8c43bf2c?source=rss-6c21e8cb414f------2</link>
            <guid isPermaLink="false">https://medium.com/p/132b8c43bf2c</guid>
            <category><![CDATA[artficial-intelligence]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[bard-ai]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Bhavesh Agone]]></dc:creator>
            <pubDate>Wed, 01 Mar 2023 12:34:02 GMT</pubDate>
            <atom:updated>2023-03-01T12:50:23.642Z</atom:updated>
            <content:encoded><![CDATA[<h3>“From Search Engines to Chatbots: A Deep Dive into the Differences Between ChatGPT and Google’s AI Language Models in a Battle for Bot Supremacy”</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*k1-pv0P97z2j83jb2i8dsg.jpeg" /><figcaption>Photo from <a href="https://www.analyticsinsight.net/">https://www.analyticsinsight.net/</a></figcaption></figure><p>If you haven’t been living off the grid for the past few weeks, you’ve definitely seen that ChatGPT, an AI-based chatbot system that creates conversations using natural language processing (NLP), is the topic of much excitement on the internet. According to CEO Sam Altman, the software reached the one million users mark in less than a week and 100 million users mark in just 2 months after its launch(for reference Instagram took 2.5 years for the same). Google’s management team declared a “code red” when ChatGPT was released, but why? Why would a company having valuation more than 2 trillion dollars would be afraid when a chatbot was released. Some see ChatGPT as a direct threat to Google’s $149 billion search engine business, an area Google has been the leading player in for years. Microsoft recently confirmed an extension of its partnership with OpenAI, which comes with a $10 billion investment.Well lets first see what exactly is ChatGPT,</p><p><strong>What is ChatGPT?</strong></p><p>Well I asked this question to ChatGPT itself and this is what it came up with,<br>ChatGPT is an AI-powered conversational agent that uses the GPT (Generative Pre-trained Transformer) architecture to generate human-like responses to natural language input. It has been trained on large amounts of data from the internet and other sources, allowing it to understand and respond to a wide range of topics and questions. ChatGPT is designed to provide helpful and informative responses, and to engage in natural, human-like conversation with users.</p><p>The chatbot was introduced late last year by OpenAI, a business that Sam Altman and Elon Musk initially helped co-found. The language technology used by the bot is OpenAI’s GPT-3.5, an update of the GPT-3 model introduced in 2020.The bot was trained with a plethora of data, from books and articles to conversations. The chatbot can understand a variety of topics and contexts.</p><p>According to OpenAI, ChatGPT enhances its capability through reinforcement learning, which depends on human feedback. The company employs human AI trainers to communicate with the model while acting as both a user and a chatbot. Trainers evaluate the quality of ChatGPT’s responses by comparing them to human responses in order to reinforce human-like conversational strategies.<br>Unlike most chatbots, it can recall past instructions from the same session. Potentially offensive prompts are rejected, and questions are filtered through OpenAI’s corporate-wide moderation API to prevent the presentation of and production of offensive outputs from ChatGPT.<br>ChatGPT can be used for a variety of applications, including customer service, online shopping, hiring and training staff, streamlining operations, and providing more personalized customer experiences.<br>It can create and debug computer programmes, write poetry and song lyrics, imitate a Linux system, produce music, teleplays, fairy tales, and student essays, as well as write test answers (sometimes at a level above the typical human test-taker, depending on the exam). Play games like tic-tac-toe and a virtual ATM. Simulate a whole chat group.</p><p><strong>Limitations of ChatGPT</strong></p><ol><li><em>Limited understanding of context and background information</em>: Chat GPT’s low comprehension of context and background knowledge is one of its drawbacks. When the model is employed in a particular domain or industry where it must comprehend the particular language, jargon, or allusions, this can be a disadvantage.</li><li><em>Inability of solving some Mathematical questions</em>: ChatGPT may struggle with problems that involve highly specialized or advanced mathematical concepts that are beyond its programming or training. These might include problems in fields such as abstract algebra, topology, or differential geometry, where specialized notation and techniques are required to solve complex equations. ChatGPT may struggle with problems that involve ambiguous or imprecise language, such as word problems or open-ended questions that require interpretation and judgment. In such cases, ChatGPT may provide a range of possible solutions, but it may not be able to determine the correct answer with certainty.</li><li><em>Limitation in Training Data Bias Issues: </em>Like many AI models, ChatGPT is limited in its training data. Lack of training data and biases in training data can reflect negatively on the model result.<br>ChatGPT has the potential to produce biased results. In fact, ChatGPT has shown bias against underrepresented groups. The model will always be biassed if the training set of data is biassed. Nearly all AI tools struggle with this, so it’s crucial to keep this in mind and take it into account as we work to assure justice and lessen bias in technology.</li><li><em>Misuse and abuse of the technology:</em> The possibility for technology exploitation and misuse is another ethical issue. The potential of Chat GPT to produce language that sounds human could be exploited for evil ends like disseminating false information or posing as another person. It’s crucial to put protections in place to stop this kind of technology abuse and to hold those responsible accountable.</li><li><em>Limited knowledge of world and events after 2021:</em> ChatGPT’s knowledge is limited to the data that was available until September 2021, which means that it might not be able to provide you with information about events or developments that occurred after that time. {Note: This limitation is a disadvantage but it is too early to expect ChatGPT to have many capabilities considering it has launched just a few months ago.}</li><li><em>Difficulty in understanding sarcasm and irony:</em> Its difficulty in comprehending sarcasm and irony, as well as in detecting and producing them, is another drawback. This is due to the fact that Chat GPT is built on a dataset of text and could overlook words’ figurative meaning.</li><li><em>Incorrect Answers: </em>For the purpose of improving answer accuracy, ChatGPT is a sizable language model that is continually developed. The model has not, however, received enough training because this is a brand-new technology. The AI chatbot might therefore give incorrect responses. Because of this, ChatGPT has been banned by StackOverflow, who stated that “Overall, because the average rate of getting correct answers from ChatGPT is too low, the posting of answers created by ChatGPT is substantially harmful to our site and to users who are asking or looking for correct answers.”</li></ol><h3>Arvind Narayanan on Twitter: &quot;People are excited about using ChatGPT for learning. It&#39;s often very good. But the danger is that you can&#39;t tell when it&#39;s wrong unless you already know the answer. I tried some basic information security questions. In most cases the answers sounded plausible but were in fact BS. pic.twitter.com/hXDhg65utG / Twitter&quot;</h3><p>People are excited about using ChatGPT for learning. It&#39;s often very good. But the danger is that you can&#39;t tell when it&#39;s wrong unless you already know the answer. I tried some basic information security questions. In most cases the answers sounded plausible but were in fact BS. pic.twitter.com/hXDhg65utG</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PbMiCKHNkjFPF-Yo9a6m0Q.jpeg" /></figure><h3><strong>Google’s Edge</strong></h3><p>Above we discussed what are the advantages and limitations of ChatGPT, now lets have a look at Google’s POV. Though I have used the word “afraid” above but I totally do not mean it. See Google is a 2 trillion dollar valuated company ,it has every thing what it needs and moreover Google knows what you eat , what you like ,where you went,what are your preferences ,your likes , your dislikes, even your payments and transactions details (ie transactions through GPay).<br>In short “GOOGLE KNOWS EVERYTHING ABOUT YOU” and the most ironic thing is that you yourself agreed to this while you created your google account. I always mention in my blogs that data certainly has a great value in this world. This is one of the biggest advantage of Google as Google is the only company in the world which has this enormous amount of data.<br>So ChatGPT certainly has the potential to alert Google but Google is too big to fail.Google has the best resources than any other company in the world.<br> Google has had a stranglehold on the search engine business for as long as most of us can remember.There are fears that people will now consult the chatbot for assistance.It can be helpful to ask questions to a computer and receive prompt responses, and ChatGPT does exactly that. Google typically provides users with links to websites it considers to be relevant as well as its own proposed answers to user inquiries. Often, ChatGPT responses surpass Google’s recommendations as it uses the latest, well-trained AI algorithms.</p><p>However, before trusting ChatGPT replies, users should confirm the information from authentic sources. Verifying the accuracy of ChatGPT answers takes effort because, unlike Google, it uses raw text without any links or citations. Moreover, as this AI continues to make progress, Google is also building large language models of its own and using AI extensively in its search algorithms.</p><p>Therefore, to think that ChatGPT will replace Google’s answer engine sounds a bit far-fetched, but it is definitely showing the way towards it.Another big advantage of Google is that whatevwer serevice it would provide it would be free of cost for the end user while ChatGPT cannot provide their service for free. On Twitter, there is a conversation over how many GPUs are required to run ChatGPT. The lesson here is that running ChatGPT is highly expensive. Because that ChatGPT is a free product, it’s unknown how long it will be able to run and how sustainable it is.</p><h3>Tom Goldstein on Twitter: &quot;How many GPUs does it take to run ChatGPT? And how expensive is it for OpenAI? Let&#39;s find out! 🧵🤑 / Twitter&quot;</h3><p>How many GPUs does it take to run ChatGPT? And how expensive is it for OpenAI? Let&#39;s find out! 🧵🤑</p><p>Large AI language models (LLMs) from Google are on par with OpenAI’s ChatGPT in terms of quality. BERT, MUM, and LaMDA are a few of these. They have been utilised by Google to improve their search engine. With the aid of these upgrades, Google is better able to comprehend what users need from the search engine. Google has developed applications like AI Test Kitchen to demonstrate the capabilities of its chatbot technology. Yet it has restricted how consumers can communicate with the chatbot.<br>Initially, OpenAI was cautious when creating their LLM technology. But after that, it made ChatGPT available to everyone. Even though the company invests a lot of money to keep the system open, this led to a lot of exposure and hype for OpenAI.Some believe that chatbots powered by artificial intelligence may soon replace traditional search engines. But, Google employees claim that the technology is not yet ready. There are still certain issues, such as chatbots’ prejudice, toxicity, and propensity to fabricate data.</p><p><strong>ChatGPT’s Biggest Competitions</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*onG8PWmj4MyO9npSc7_utA.png" /><figcaption>Photo from <a href="https://www.altamira.ai/blog/open-source-gpt-alternative-solutions/">https://www.altamira.ai/</a></figcaption></figure><ol><li>The advent of ChatGPT and its introduction to the wider public increased interest and competition in the space. In February 2023, Google began introducing an experimental service called “Bard” which is based on its LaMDA AI program. Bard generates text responses to questions asked based on information gathered from the web. Google CEO Sundar Pichai described how this technology would be integrated into existing search capabilities and said some aspects of the technology would be open to outside developers.</li><li>Chinese tech giant Baidu announced plans to integrate its AI chatbot Ernie into its search engine services from March, though little is known about its capabilities.</li><li>Other Chinese behemoths like Alibaba, JD.com, and Tencent, the parent company of WeChat, have said they are developing their own ChatGPT-type applications, though details are scant and they have not provided exact implementation dates.</li><li>Amazon, which has been working on comparable technology for a while, announced a partnership with Hugging Face, an AI startup creating a ChatGPT rival, on Tuesday. Apple has been noticeably absent from the AI battle among U.S. heavyweights but is apparently making moves hinting a launch is on the horizon.</li><li>The parent company of WhatsApp, Facebook, and Instagram, Meta, a longtime leader in the AI space, is reportedly more than capable of competing with ChatGPT, but it has refrained out of concern that its AI tool will exacerbate the false, biassed, or misleading information that already plagues its platforms.</li></ol><p><strong>Effect of AI on Blogs and its future:</strong></p><p>Everyone seems to be afraid of these AI tools which are supposed to end all the jobs of article writers, bloggers, editors etc. Some say that AI could generate more innovative and grammatically correct content , on the contrary some say that AI could not imitate human feelings and emotions so AI could never replace humans.<br> My views are little differrent . According to me the future of this domain is nothing but the coexistence of humans and the Artificial Intelligence. Bloggers should utilise the immence power if AI to enhance their blog’s original content. No one can beat humans in emotions and its quite stupid to expect AI to understand it, though it is quite efficient in doing so. But when it comes to proofreading, using better words and phrases , grammatical accuracy etc, AI easily surpasses humans.<br>So the future is the era of coexistence of AI and humans in all domains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*OENzq1uy1fuJDPbjkT2Jcg.png" /><figcaption><em>Willyam Bradberry/Shutterstock.com</em></figcaption></figure><p><strong>CONCLUSION</strong></p><p>AI and ML have had a positive effect on tool and application development in India. Also, it had a big impact on a number of other facets of the IT sector. Chatbots have risen to the top of the list of AI and ML’s potential applications in India. Thousands upon thousands of chatbots are currently being used to speed up human labour. As a matter of fact, chatbots have primarily been used by businesses to communicate with customers.</p><p>The competition in this AI domain is fierce and tough competition always leads to extensive development. What I mean to say is that the players in this race are too big and strong and would do anything to win .As a result, this would lead to rapid advancement of the technology and the integration of these technologies in our day to day life products is inevitable.</p><p>Thus, we should be prepared to see a new world and the year 2022–23 will mark the beginning of this new era .Well who knows ,the future students might learn a chapter named “From Search Engines to Chatbots: A Deep Dive into the Differences Between ChatGPT and Google’s AI Language Models in a Battle for Bot Supremacy”.</p><p>Please feel free to share your thoughts in the comment section. Your suggestions are always welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=132b8c43bf2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why 10-Minute Delivery Startups Are Taking Over India’s Online Grocery market?]]></title>
            <link>https://medium.com/@Jack_of_all_Techs/why-10-minute-delivery-startups-are-taking-over-indias-online-grocery-market-5082a1b5da54?source=rss-6c21e8cb414f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5082a1b5da54</guid>
            <category><![CDATA[dunzo]]></category>
            <category><![CDATA[q-commerce]]></category>
            <category><![CDATA[10-minute-delivery]]></category>
            <category><![CDATA[startups-in-india]]></category>
            <category><![CDATA[zepto]]></category>
            <dc:creator><![CDATA[Bhavesh Agone]]></dc:creator>
            <pubDate>Sun, 15 Jan 2023 19:33:38 GMT</pubDate>
            <atom:updated>2023-02-16T17:58:38.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*xFGJHeLTfJLUGK7XPqK1gA.jpeg" /><figcaption>Photo from<a href="https://buildd.co/"> buildd.co</a></figcaption></figure><p>Two 19-year-old entrepreneurs Kaivalya Vohra and Aadit Palicha, dropped out of Stanford University to start a venture named Zepto in India’s crowded and highly competitive food delivery market,perticularly delivering groceries.<br>Well there are many other players in the Indian market which are doing the same but are not as succesfull as Zepto,these include Zomato Swiggy, Dunzo(which is a very good competitor),Groffers[which is now rebranded as “blink it” (name suggesting its eagerness to enter the 10 minute delivery market)].<br>Ola too had its own venture named as Ola dash in this domain. Zomato did start working in this field but soon discontinued but Swiggy, Zomato’s arch rival, did continue and now it is doing well (Swiggy instamart).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T92HlzHkJGL1QIycgO77Nw.png" /></figure><p>Well this phenomenon of 10 minute delivery is not only booming in India but also all over the world . Some of them are, A Türkiye based startup named Getir, Berlin based gorillas ,JOKR IN US.<br>Well what makes this domain of 10 minute delivery so appealing that so many market players are attracted to it . Lets discuss it,</p><ol><li><strong>SATISFACTION OF CUSTOMERS</strong><br>Well no one can deny the fact that if a someone gets a delivery so soon he would be satisfied with the service and is more eager to use the service again.<br>And groceries are the things which we need on a daily basis and we would actually prefer to get it as fast as it can.<br>Indian customers, as pointed out by R Raman, director of Symbiosis Institute of Business Management, are always in a hurry and in a rush to get things done. <br>Check the number of people rushing and crossing the signal when it is just turning from orange to red. Or the number of people trying to get up and out of the aircraft when an aircraft lands. Knowingly or unknowingly the Indian middle class and the upper middle class are in a rush and that has been ingrained in the DNA, he explains. “Hence when an organization is satisfying the rushing need by delivering groceries quickly it is bound to be a successful model. The data also shows the same.</li><li><strong>USEFUL SERVICE(provides an alternative)</strong><br>For some customers it could be really uncomfortable to go to nearby shop and buy the groceries ,so this provides a good alternative. So this domain has no scarcity of customer base and as discussed in earlier point it is not hard for the company to attract new customers.</li><li><strong>CAPITAL</strong><br>The above two points discussed the views of the customers but are there any perks for the firm too, well the answer is “yes”. For running a successful grocery shop, one need to look for better location ,good shop ,its maintenance etc ,which increases the overall cost of the investment and thus reducing the profits.<br>Well a company like Zepto need not to take care of any of these things because they work on the dark store model. A dark store is mainly a store which is not accessible to the customer but it could be used by the company in order to store goods.</li><li><strong>EFFITIENCY AND AREA COVERED</strong><br>Zepto, which is also tech company , has a huge amount of data of its customers ,so it can pinpoint the exact location where a dark store can be opened so that maximum area could be covered and delivery can also be smooth.<br>We should not forget that we are living in the era where data is everything .With such enormous data these companies can even monitor which product to promote to the customer, well who knows they could even monetise this by doing promotions or promoting a paid product.<br>Data sure has a great value in this era.</li><li><strong>DELIVERY WORKFORCE</strong><br>The best thing about working for Zepto is that they don’t have to travel long distances like they had to when they were working as a “delivery partner” for Zomato and Swiggy. <br>They are able to save time, energy and petrol. Though this is a controversial point which would be discussed later in this blog.</li></ol><p><strong>Some experiences of customers:</strong></p><p>A consumer was amused by the thought of having groceries delivered so quickly when he first watched an advertisement for the app on YouTube. <br>Today, he uses the app to place orders at least ten times every week. He has become a devoted user of the app, ordering dairy products for the home and meeting his snack needs. “The orders don’t always arrive in 10 minutes; frequently, they take up to 15 minutes. But as long as I can swiftly obtain whatever I want to eat, I don’t mind”, he says.<br>Similar to this, some individuals significantly rely on q-commerce to fulfil their daily shopping demands since they would prefer to avoid standing in <br>huge lines at the store. When they had company over and were out of snacks, these apps have come to our rescue numerous times. Without having to worry about hurriedly running to the nearest store, they ordered snacks right away and had them delivered to the door.</p><p><strong>Firms in the race:</strong></p><p>A bunch of local firms are contending for a piece of India’s $620 billion grocery market by promising delivery times of just 10 minutes.<br>The entire addressable market for rapid commerce in India is $45 billion, according to a report from 2022 RedSeer Consulting. <br>This market is driven by metropolitan areas and mid-to-high-income households. Players like Zepto, Dunzo Daily, Swiggy Instamart, BB Now (BigBasket’s quick delivery option), and Blinkit (previously Grofers) are currently dominating the market with delivery times ranging from 10 to 30 minutes. The report also states that by 2025, <br>the rapid commerce market in India will have grown by 15 times to reach $5.5 billion. Kiranas account for more than 95 percent of India’s grocery market.<br>Besides, roughly two-thirds of India’s 1.3 billion people live in rural areas largely untouched by these more modern forms of retail.</p><p>However, as more competitors enter the market and investors pour cash into this sector, India’s rapid commerce is growing. The rapid commerce model demands a substantial investment and technological boost, and foreign investors are very interested in India’s IT companies as they want to capitalise on the region’s expanding use of digital payments, the internet, and cellphones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rZ4nQQkPaALyxewHg7egiQ.png" /><figcaption>Source:<a href="https://tracxn.com/">https://tracxn.com</a></figcaption></figure><p>Zepto, which was established in April 2021, has raised $200 million in new capital, valuing the business at about $900 million. A well-known Silicon Valley fund, Y Combinator, who had previously invested, took the lead in the investment round. Zepto, a startup with headquarters in Mumbai, received $100 million in funding in December 2021, which launched the 10-minute race. SoftBank-backed Blinkit, which recently got acquired by Zomato, followed suit and initially promised to deliver <br>groceries in 10 minutes though it later stopped saying the same. Other competitors like Swiggy, which is supported by SoftBank, and Dunzo, which is backed by Indian billionaire Mukesh Ambani’s Reliance, are all betting on swift delivery in the developing quick commerce industry.</p><p>Some competitors withdrew from the race. Due to a lack of demand, Ola Dash, the grocery delivery service Ola developed that has become a mobile unicorn, recently reduced its operations and temporarily halted the functioning of most of its dark stores. In December 2021, Ola joined the bandwagon and offered basic groceries, beginning in Bengaluru. The business intended to open 500 dark storefronts across 20 locations. Similar to Blinkit, which also struggled to keep up and raise money, Zomato recently acquired Blinkit after it closed down warehouses and laid off workers in March of this year.</p><p><strong>Story after 2020 and Future of this domain</strong></p><p>Till 2020, the share of digital commerce in the Indian economy was on a steady growth path, but with the advent of Covid-19, the pace got massively accelerated.<br> Everything from payments to meetings to grocery shopping moved online much faster. Even if the cost of operations is substantially higher and the discounts are smaller on quick services, the trend of q-commerce has gained popularity due to the sheer consumer convenience. Although the market has a lot of promise, experts predict that <br>only the strongest will survive. Currently, the majority of q-commerce businesses are concentrated in the grocery industry, which has historically <br>had low margins. Long-term survival in the market will depend on diversification into other industries like pharmaceuticals, cosmetics, and even basic electronic accessories to increase the SKU base. Additionally, quick commerce is highly location-dependent. In some regions, it might be possible to break down unit economics, while in others, it might be quite difficult. It involves choosing the ideal areas with a high order density.</p><p><strong>MAJOR DISADVANTAGE OF THIS IDEA</strong><br>Given that India has some of the most accident-prone highways in the world, the need for speedy commerce also increases concerns about road safety for delivery motorcycles. These businesses sell customers on the idea of instant delivery. However, these platforms also cover up the risks by making it appear as though delivery workers independently engage in traffic violations and dangerous driving practices, endangering both themselves and other road users. Many delivery workers work for over 10 hours and the platform actively engages such work practices by not setting any cap on the maximum hours a delivery worker can log in. Prolonged working hours on the road add to the risk of being prone to accidents.</p><p><strong>CONCLUSION</strong><br>Getting products delivered within an hour after making an order seemed far-fetched a couple of decades ago. A matchbox-sized item can now be delivered in 15 minutes. Once the addictive substance is supplied, there is no escape the addiction since consumers rely on quick satisfaction. Rapid commerce, which offers quicker options and a more comfortable shopping experience, is predicted to drastically change consumer purchasing behaviour and the supermarket retail chain now that internet shopping and same-day shipment have become common place. All said and done, quick commerce is here to stay and boom in India.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5082a1b5da54" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>