<?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 Prannay Hebbar on Medium]]></title>
        <description><![CDATA[Stories by Prannay Hebbar on Medium]]></description>
        <link>https://medium.com/@Pran-Ker?source=rss-e64d4c569bad------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*h4rnh4CM-9NgY2KCKy8o1w@2x.png</url>
            <title>Stories by Prannay Hebbar on Medium</title>
            <link>https://medium.com/@Pran-Ker?source=rss-e64d4c569bad------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:16:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Pran-Ker/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[Training LLMs at test time for Scientific Discovery]]></title>
            <link>https://medium.com/@Pran-Ker/training-llms-at-test-time-for-scientific-discovery-ef146f2050dd?source=rss-e64d4c569bad------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef146f2050dd</guid>
            <category><![CDATA[post-training]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Prannay Hebbar]]></dc:creator>
            <pubDate>Tue, 17 Feb 2026 01:12:49 GMT</pubDate>
            <atom:updated>2026-02-17T01:13:52.968Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Abstract</h3><p>To determine whether the <a href="https://arxiv.org/abs/2601.16175">Discover</a> methodology, training the model to improve its ability to solve the given problem, would yield promising results. In this case, the choice of problem was MLE-Bench’s <a href="https://www.kaggle.com/competitions/spaceship-titanic">Spaceship-Titanic</a>.</p><p><em>Spaceship-Titanic is a problem where, given a list of features about the passengers of a ship (location, destination, etc.), calculate the survival rate after an accident. This problem was chosen as the execution time would be short, and there is a faster feedback loop while training.</em></p><h3>2. Introduction</h3><p>The research objective is to find the best approach to conduct novel research. In this case, the proxy is how well the model is able to solve difficult MLE-Bench problems.</p><p>Before diving into how Discover works, it is important to understand the traditional ways to improve model scores on hard problems:</p><ul><li>Prompt engineering: Writing a better prompt. This helps, but hits a ceiling (this is very obvious while training CUA agents).</li><li>Few-shot examples: Show the model good solutions, but this is generally not scalable, as it is human in the loop.</li><li>Fine-tuning (SFT): Train the model on a dataset of problems and solutions, but the model only learns to imitate and doesn’t come up with novel solutions.</li><li>Traditional RL (GRPO or PPO): Improves the overall baseline performance, but does not encourage outliers (in more detail below).</li></ul><p>This table gives an overview of the approaches:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fXf4n3mzUoFwhK7X.png" /></figure><p>Discover Test-time training (TTT) improves in two critical areas:</p><ol><li>It removes the boundary of where traditional models stop learning. When the model encounters a specific problem, it keeps training on that problem by generating attempts, evaluating them, and updating its weights. This self-improvement loop can significantly outperform a frozen model.</li></ol><blockquote>An example of this is:</blockquote><blockquote>Standard ML: A student studies a textbook, then takes the exam. Whatever they learned from the textbook is all they have.</blockquote><blockquote>TTT: A student takes the exam, checks their answers, studies where they went wrong, tries again, checks again, and keeps improving during the exam itself.</blockquote><p>2. Discover uses Entropic as its objective function, which encourages the performance of outliers, over the focus on average. (If you are interested, you can read up more below.)</p><h3>3 Methodology</h3><h4>3.1 Methodology of the Run</h4><p><strong>Step 1: Sample a batch of generations (rollouts):</strong></p><p>For each training iteration, the system:</p><ol><li>Sends the prompt to the LLM multiple times according to the group size</li><li>Each generation is a different attempt at solving the same problem</li><li>Each attempt gets executed, verified, and scored, and produces a reward</li></ol><p><strong>Step 2: Filter out useless groups:</strong></p><p>If every generation in a group got the same reward (e.g., all failed with 0.0, or all got the same score), that group is thrown away. Why? Because you can’t learn anything from a group where every attempt looks equally good or bad.</p><p><strong>Step 3: Compute advantages </strong>(the core of how rewards become training signal)</p><p>Here, the Entropic objective function is used, and there will be more details given below.</p><p><strong>Step 4: Attach advantages to tokens</strong></p><p>The advantage is the same number for every token in a generation. If generation 2 had an advantage +0.229, every token the model produced in that generation gets an advantage = +0.229. The mask ensures that prompt tokens (which the model didn’t choose) get 0.0 and don’t contribute to the gradient.</p><p><strong>Step 5: Forward-backward pass </strong>(the actual weight update)</p><p>Sends the data to the tinker training server, which computes the loss and gradients. The loss function is one of:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*LP0wC7G7CvCDpN_O3mFzLw@2x.png" /></figure><p>For each token, multiply the log-probability the current model assigns to that token by the advantage. If the advantage is positive (good generation), this pushes the model to make those tokens more likely. If negative (bad generation), it pushes those tokens to become less likely.</p><p>The “importance sampling” part means it accounts for the fact that the generation was produced by a slightly older version of the model (before the current weight update), using the ratio of current vs. sampling log-probabilities.</p><p><strong>Step 6: Optimizer step</strong></p><p>After the forward-backward pass computes gradients, an Adam optimizer step updates the LoRA weights:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*qliyzxExlqilSQRl_foQMg@2x.png" /></figure><h4>3.2 The Entropic Objective: Why Not Just Use GRPO?</h4><p>Standard RL algorithms like GRPO optimize for average performance. Here’s why that’s a problem for discovery.</p><p>Say the model generates 8 solutions and we score them:</p><blockquote>Attempt 1: 0.60 Attempt 5: 0.61</blockquote><blockquote>Attempt 2: 0.55 Attempt 6: 0.57</blockquote><blockquote>Attempt 3: 0.92 Attempt 7: 0.59</blockquote><blockquote>Attempt 4: 0.58 Attempt 8: 0.62</blockquote><p>What GRPO does is subtract the mean (0.63) from each score:</p><blockquote><em>Attempt 1: -0.03 (slightly discouraged)</em></blockquote><blockquote>Attempt 3: +0.29 (somewhat encouraged)</blockquote><blockquote>Attempt 6: -0.06 (slightly discouraged)</blockquote><p>Attempt 3 (the brilliant one) gets a positive signal of +0.29. The mediocre attempts each get small negative signals. The model learns a little from the best attempt, but the gradient is spread thinly across all 8.</p><p>Over time, GRPO makes the model consistently decent. Meaning, it learns to reliably score ~0.65, then ~0.70. But it avoids risky strategies. A bold approach that scores 0.30 half the time and 0.95 half the time has a lower average (0.625) than a safe approach that always scores 0.65. GRPO would prefer the safe one.</p><p>What Entropic Objective does is softmax weighting with temperature beta:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*bCxlLMf8bAXUzXxA9IkZlw@2x.png" /></figure><p>With beta = 2.0:</p><blockquote>Attempt 1: advantage = -0.5 (strongly discouraged)</blockquote><blockquote>Attempt 3: advantage = +4.2 (strongly encouraged, more than 14x GRPO)</blockquote><blockquote>Attempt 6: advantage = -0.6 (strongly discouraged)</blockquote><p>The gradient is now dominated by Attempt 3. The model receives a clear message: “whatever you did in Attempt 3, do much more of that.” The mediocre attempts barely contribute.</p><p>This makes the model risk seeking; it prefers strategies that occasionally produce breakthroughs, even if they sometimes fail. For discovery tasks, where we only need one great solution, this is exactly what we want.</p><h3>4. Results</h3><p>The best performing solution of Discover is here: <a href="https://github.com/prannayHexo/discover/blob/main/final/tmp2ts87yif.py">https://github.com/prannayHexo/discover/blob/main/final/tmp2ts87yif.py</a></p><p>Additionally, if you are interested in the checkpoint, they are available here:</p><pre>tinker://bda1b8e9-c329-5a46-a905-026cf7827e49:train:0/sampler_weights/000015</pre><p>Links to the Weights&amp;Biases runs are here: <a href="https://wandb.ai/hebbarpran-warping/discover-ttt?nw=nwuserhebbarpran">https://wandb.ai/hebbarpran-warping/discover-ttt?nw=nwuserhebbarpran</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*yCIcIzGKg70P-iuDIktdjQ@2x.png" /><figcaption>Scores are tracked across each of the steps. Here, measuring the performance of OSS:120B Trained (yellow) and untrained(red) and Claude sonnet 4–5</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*5nBnZDlxukRY86V_wx-uvQ@2x.png" /><figcaption>This is the cumulative best performing score of each of the run</figcaption></figure><h3>5. Discussion</h3><h4>5.1 Why TTT Works</h4><p>1. Verifiable reward: We can execute the code and grade predictions against ground truth. There’s no ambiguity in the score.</p><p>2. Iterative improvement is possible: A better feature or a smarter model choice can incrementally improve accuracy. The problem has many “knobs” the model can learn to turn.</p><p>3. Solution embedded in the pretraining: GRPO/RL and even Entropic objective would not necessarily feed new knowledge into the model.</p><h4>5.2 Limitations</h4><p>Mode collapse: The model can converge to generating the same code repeatedly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vHUNAf0Tdro4HZ9g.png" /><figcaption>The graph entropy in the model gradually declines; this is something which is highly determinental to the creation of research models.</figcaption></figure><p>Higher entropy means more exploration; in this as the model improves, it starts exploring less.</p><p>KL penalty disabled: The model’s weights can drift arbitrarily far from the base model. This is intentional (we want specialization), but it means the model may lose general capabilities in the process.</p><h4>5.3 Future Directions</h4><ul><li>Agent addition: These training runs completely exclude any form of harness (only containing a prompt); there are a lot of low hanging fruits which can be solved to improve scores as well as training. (Socrates, opencode tools, etc.)</li><li>Diversity mechanisms: Adding a bonus for generating structurally different code within a group could prevent mode collapse and encourage exploration of novel approaches (this should be our critical focus)</li><li>Reward Shaping: Currently, the reward given is based simply on the final output; much more carefully planned rewards can be created to drive towards better objectives.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef146f2050dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Attacking Machine Learning with Adversarial Examples]]></title>
            <link>https://medium.com/@Pran-Ker/attacking-machine-learning-with-adversarial-examples-ef883e3273c5?source=rss-e64d4c569bad------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef883e3273c5</guid>
            <category><![CDATA[adversarial-attack]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Prannay Hebbar]]></dc:creator>
            <pubDate>Mon, 29 May 2023 06:53:42 GMT</pubDate>
            <atom:updated>2023-05-29T06:53:42.223Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction:</h4><p>In the field of artificial intelligence (AI), adversarial examples have emerged as a significant challenge. These inputs are carefully crafted by attackers to deceive machine learning models and cause them to make incorrect predictions. Adversarial examples are akin to optical illusions for machines, where seemingly innocuous modifications can lead to drastic misclassifications. This blog post explores the concept of adversarial examples, their potential dangers, and the difficulties in defending against them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*xiWizZBOyROJ4ENpUMhudg.png" /></figure><h4>Understanding Adversarial Examples:</h4><p>Adversarial examples are specially designed inputs intended to exploit vulnerabilities in machine learning models. They can manifest across various mediums, including images and reinforcement learning agents. For instance, an attacker could manipulate an image of a panda by introducing subtle perturbations, causing the model to misclassify it as a gibbon with high confidence. Surprisingly, even when adversarial examples are printed out on paper and captured with a standard smartphone camera, they can still fool machine learning systems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_TKMRW2_pzE-AwGSqYZfrA.png" /></figure><h4>The Implications:</h4><p>Adversarial examples have real-world implications. For instance, attackers could exploit autonomous vehicles by placing stickers or altering stop signs to make the vehicles misinterpret them as different traffic signals. Moreover, even reinforcement learning agents, such as those used in gaming environments, can be manipulated by adversarial examples, leading to degraded performance and compromised decision-making.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*ld6hGSN8i6J1NloC8g6o9A.jpeg" /></figure><h4>Defending Against Adversarial Examples:</h4><p>Developing effective defenses against adversarial examples is challenging. Traditional techniques like weight decay and dropout do not provide robust protection. However, two notable methods have shown promise:</p><ol><li><strong>Adversarial training:</strong> This approach involves generating a large number of adversarial examples and training the model explicitly to recognize and resist them. The cleverhans library provides an open-source implementation of adversarial training.</li><li><strong>Defensive distillation:</strong> In this strategy, models are trained to output probabilities instead of hard decisions. The probabilities are learned from an earlier model trained on the same task, making it harder for attackers to discover adversarial input tweaks that lead to misclassifications.</li></ol><h4>The Limitations of Defenses:</h4><p>While adversarial training and defensive distillation offer some defense against adversarial examples, they are not foolproof. Attackers can still find ways to break these defenses by leveraging substitute models or by employing more computational resources. The lack of robust defenses stems from the difficulty of constructing theoretical models that accurately describe the adversarial example crafting process and the need for machine learning models to perform well on all possible inputs.</p><h4>The Importance of Addressing Adversarial Examples:</h4><p>The existence of adversarial examples highlights the unpredictable behavior of machine learning algorithms, even in seemingly simple models. Bridging the gap between what designers intend and how algorithms behave is crucial. Encouraging researchers to delve into this area of AI safety and develop methods to prevent adversarial examples is vital.</p><h4>Conclusion:</h4><p>Adversarial examples pose a significant challenge in the field of machine learning. These carefully crafted inputs can deceive algorithms and lead to unexpected and erroneous outcomes. As AI becomes more integrated into our lives, addressing the issue of adversarial examples becomes paramount. Researchers must focus on developing robust defense mechanisms to protect against adversarial attacks and ensure the reliability and safety of AI systems in the real world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef883e3273c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vectors of Life]]></title>
            <link>https://medium.com/@Pran-Ker/vectors-of-life-9b9bb1beff83?source=rss-e64d4c569bad------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b9bb1beff83</guid>
            <category><![CDATA[books]]></category>
            <category><![CDATA[mental-models]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Prannay Hebbar]]></dc:creator>
            <pubDate>Sat, 13 May 2023 12:19:26 GMT</pubDate>
            <atom:updated>2023-05-13T12:19:26.314Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Index:</strong></p><ol><li>Introduction</li><li>Vectors and the types</li><li>Direction</li><li>Momentum</li><li>Speed</li><li>Work and the components</li><li>Friction</li><li>Energy</li><li>Vectors unrelated to the book</li></ol><p>Foreword:</p><p>I will include the introduction in the this medium post. The later chapters, I plan to make other posts for them. Plan is to turn this into a book later on. This might come off as a bit esoteric, but I will keep this as much to the point as possible (least amount of words). I also plan to implement quick read (highlighting key letters in words).</p><p>Introduction:</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b9bb1beff83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenAI SRE and scaling explained easy.]]></title>
            <link>https://medium.com/@Pran-Ker/openai-sre-miracle-19a33bdd3145?source=rss-e64d4c569bad------2</link>
            <guid isPermaLink="false">https://medium.com/p/19a33bdd3145</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[sre]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Prannay Hebbar]]></dc:creator>
            <pubDate>Mon, 13 Mar 2023 06:57:59 GMT</pubDate>
            <atom:updated>2023-03-13T07:18:30.689Z</atom:updated>
            <content:encoded><![CDATA[<p>OpenAI, one of the world’s leading AI research organizations, has announced that it has scaled a single Kubernetes cluster to 10,000 nodes, up from 2,500 nodes in 2019. This is a remarkable achievement, and the fastest scaling of its kind due to user demand. OpenAI has shared the lessons learned during this scaling process, so that others in the Kubernetes community can benefit from them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tGrJemiGv4ymo-dSiHrvnQ.png" /></figure><p>Before diving into the details, it’s important to understand OpenAI’s workload. Their applications and hardware are different from those at a typical company. Large machine learning jobs run most efficiently when they have access to all of the hardware resources on each node. As a result, a single pod occupies an entire node, and resource contention isn’t a factor for scheduling. OpenAI’s clusters have full bisection bandwidth, so there are no rack or network topology considerations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qlytNp27B17FiFIZUpIcIQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0FrrtEkYaNyAdefoZ7L5Ww.png" /></figure><p>The workloads themselves are ever-changing, as OpenAI’s research teams iterate quickly. Thus, they need a sustainable system that also allows them to respond quickly when things change.</p><p>One of the biggest challenges in scaling their infrastructure was networking. As the number of nodes and pods increased, OpenAI found that Flannel had difficulties scaling up the required throughput. They switched to using the native pod networking technologies for their IP Configurations for Azure VMSSes and the relevant CNI plugins. This allowed them to get host-level network throughput on their pods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LDmRLvgKDoPvu58YI1bQ6g.png" /></figure><p>Another reason for the switch was that, on their largest clusters, they could have approximately 200,000 IP addresses in use at any one time. When they tested route-based pod networking, they found significant limitations in the number of routes they could effectively use.</p><p>OpenAI uses iptables tagging on the host to track network resource usage per Namespace and pod. Researchers can visualize their network usage patterns. They also use an open-source Prometheus exporter called iptables-exporter to get these tracked into their monitoring system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*taqPLkL3wBIQAdahcqooAg.png" /></figure><p>One unique aspect of OpenAI’s network model is that they fully expose the node, pod, and service network CIDR ranges to their researchers. They have a hub-and-spoke network model, and use the native node and pod CIDR ranges to route that traffic. Researchers connect to the hub, and from there have access to any of the individual clusters (the spokes). But the clusters themselves cannot talk to one another, ensuring that clusters remain isolated with no cross-cluster dependencies that can break failure isolation.</p><p>Scaling a single Kubernetes cluster to this size is rarely done and requires some special care. However, the upside is a simple infrastructure that allows OpenAI’s machine learning research teams to move faster and scale up without changing their code. The lessons learned during this process are valuable to the Kubernetes community and can be applied to other organizations as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GCfWT19RnBHMZDkApRmmTQ.png" /></figure><p>OpenAI’s API servers are critical components that allow for smooth functioning of its clusters. The company pays special attention to the stress on Kubernetes API Servers and etcd, two of the most important components of a healthy working cluster. OpenAI has used Grafana dashboards provided by kube-prometheus, in addition to its in-house dashboards, to alert them on the rate of HTTP status 429 and 5xx on the API servers. This allows them to quickly recognize and respond to any issues with the API servers.</p><p>OpenAI has always run API servers and etcd nodes on their own dedicated nodes outside of the cluster. This ensures that the load is spread out and minimizes the impact if one goes down. OpenAI’s largest clusters run five API servers and five etcd nodes, further reducing the impact of downtime. They have not had any significant trouble with etcd since splitting out Kubernetes Events into their own etcd cluster, which they discussed in their last blog post. API servers are stateless and generally easy to run in a self-healing instance group or scaleset, but the company hasn’t yet tried to build any self-healing automation of etcd clusters because incidents have been extremely rare.</p><p>OpenAI is very mindful of any API server requests that scale with the size of the cluster. They try to avoid having any DaemonSets interact with the API server. In cases where each node needs to watch for changes, they introduce an intermediary caching service, such as the Datadog Cluster Agent, to avoid cluster-wide bottlenecks. This is important as the number of nodes increases, and so does the memory usage of API servers, which tends to scale linearly with the number of nodes in the cluster.</p><p>OpenAI uses Prometheus to collect time-series metrics and Grafana for graphs, dashboards, and alerts. They started with a deployment of kube-prometheus that collects a wide variety of metrics and good dashboards for visualization. Over time, OpenAI added many of their own dashboards, metrics, and alerts. As they added more nodes, they struggled with the sheer amount of metrics being collected by Prometheus. While kube-prometheus exposes a lot of useful data, some of it they weren’t actually ever looking at, and some was just too granular to collect, store, and query effectively. They use Prometheus rules to “drop” some of these metrics from being ingested.</p><p>Prometheus would often consume more and more memory until eventually crashing the container in an Out-Of-Memory error (OOM). This seemed to occur even after throwing enormous amounts of memory capacity at the application. What’s worse was, when it did crash, it would take many hours on startup replaying write-ahead-log files before it was usable again. Eventually, OpenAI tracked down the source of these OOMs to be an interaction between Grafana and Prometheus. They patched Prometheus to contain this API within a Context to enforce a timeout, which fixed it entirely.</p><p>OpenAI’s cluster is large, and they rely on automation to detect and remove misbehaving nodes from the cluster. Over time they have built up a number of healthcheck systems that monitor basic system resources such as network reachability, bad or full disks, or GPU errors. GPUs exhibit problems in several ways, but an easy common one is an “Uncorrectable error,” and OpenAI monitors for these errors.</p><p>In conclusion, OpenAI’s approach to scaling a single Kubernetes cluster to such a large size is a testament to the company’s commitment to innovation and meeting user demand. The lessons learned from this process can benefit others in the Kubernetes community, especially those dealing with large machine learning workloads. While there are still challenges to be addressed, such as optimizing networking and improving job resiliency, the infrastructure currently in place allows OpenAI’s research teams to move faster and scale up without having to change their code. This is a remarkable achievement that showcases OpenAI’s expertise in the field of machine learning and their dedication to advancing the state of the art.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19a33bdd3145" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stock Prediction Website]]></title>
            <link>https://medium.com/@Pran-Ker/stock-prediction-website-340b67ef323f?source=rss-e64d4c569bad------2</link>
            <guid isPermaLink="false">https://medium.com/p/340b67ef323f</guid>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Prannay Hebbar]]></dc:creator>
            <pubDate>Tue, 05 Apr 2022 11:26:24 GMT</pubDate>
            <atom:updated>2022-04-05T11:29:09.840Z</atom:updated>
            <content:encoded><![CDATA[<p>Creating a webapp that displays various stock market prices of companies on the stock exchange. The stocks will be ranked by popularity based on the analysis of the crowds view through news and social media feeds.</p><p>All Code is available here : <a href="https://github.com/Pran-Ker/Stock-Analyst">https://github.com/Pran-Ker/Stock-Analyst</a></p><h3>1. Introduction</h3><h4>1.1 Purpose</h4><p>Building a platform to view the best performing stocks and asses which is best with the use of twitter sentiment, achieved with NLP Sentiment Analysis.</p><h4>1.2 Intended Audience and Reading Suggestions</h4><p>The Intended Audience is developers, project managers, marketing staff, programmer, testers, and documentation writers.</p><p>The SRS is organized, so that Project Manager and Marketing staff can grasp the general idea from the <strong>2.Overall Description</strong>. For technical purposes (for testers and programmers) the details of the code will be in the <strong>4. System Features.</strong></p><p>Suggested sequence is start with <strong>2. Overall Description </strong>to get a grasp of the project details. For further details follow the read order. In case of any doubts refer to References given below.</p><h4>1.3 Product Scope</h4><p>Website that takes news feeds and social media rating based on the Stock Market. Display the relevant stock information for major companies. This will include market price today, the graphs and company details.</p><p>Using Machine Learning the information processed from news feed using sentiment analysis figures out stock rating for various companies and suggests which companies to invest for that day.</p><p>The aim of this is a to provide a comprehensive stock market predictor which also doubles as a stock market news website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*QjHxx2dwJ61C12XmZ0sTaA.png" /><figcaption>Information provided in google embedded in the project.</figcaption></figure><h4>1.4 References</h4><ul><li><a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjw6MWHrqzrAhU3zjgGHWBFCKwQFjAKegQIBBAB&amp;url=https%3A%2F%2Fwww.researchgate.net%2Fpublication%2F259240183_A_Machine_Learning_Model_for_Stock_Market_Prediction&amp;usg=AOvVaw3z1i4ncskHIW__c45h3D_8">Machine Learning model</a></li><li><a href="https://towardsdatascience.com/getting-rich-quick-with-machine-learning-and-stock-market-predictions-696802da94fe">Predicting stock prices using deep learning</a></li><li><a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjz3bH7pqzrAhXGzjgGHXmOAJAQtwIwDHoECAkQAQ&amp;url=https%3A%2F%2Fmedium.com%2F%40randerson112358%2Fpredict-stock-prices-using-machine-learning-python-f554b7167b36&amp;usg=AOvVaw1aJSmUMUoeMzDjdQcHnrA4">Predict-stock-prices-using-machine-learning-python</a></li><li><a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjz3bH7pqzrAhXGzjgGHXmOAJAQFjAWegQICBAB&amp;url=https%3A%2F%2Fwww.quora.com%2FCan-machine-learning-algorithms-models-predict-the-stock-prices-If-yes-which-are-the-best-machine-learning-algorithm-models-to-predict-the-stock-prices&amp;usg=AOvVaw04wLJqu3ryH13V-I71s7ko">Can-machine-learning-algorithms-models-predict-the-stock-prices</a></li><li>B<a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwiy8rGqp6zrAhU5zjgGHeWcDsIQFjAJegQIARAB&amp;url=https%3A%2F%2Fblog.bitsrc.io%2Fa-beginners-guide-to-server-side-web-development-with-node-js-17385da09f93&amp;usg=AOvVaw2aPtA-RiSp1Aoi_fM4QXjO">eginners-guide-to-server-side-web-development-with-node-js</a></li><li><a href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=&amp;cad=rja&amp;uact=8&amp;ved=2ahUKEwjz3bH7pqzrAhXGzjgGHXmOAJAQFjAZegQIAhAB&amp;url=https%3A%2F%2Fwww.sciencedirect.com%2Fscience%2Farticle%2Fpii%2FS1877050918307828&amp;usg=AOvVaw368CPq-PY2eu_BBeM4ZPby">NSE Stock Market Prediction</a></li><li><a href="https://aclanthology.org/W19-6403.pdf">Automated Stock Price Prediction Using Machine Learning</a></li></ul><h3>2. Overall Description</h3><h4>2.1 Product Functions</h4><p>The Software aims to achieve:</p><ol><li>Self-Optimized algorithm to predict the Stock Market</li><li>Web Scraping to gather data related to each company</li><li>Display the relevant information</li><li>Providing Graphs of the stock market</li><li>User interaction through searching and commenting</li></ol><h4>2.2 User Classes and Characteristics</h4><p>User that would be expected to use this will be using it’s features to know more about stocks so this would include — Stock Brokers, investors and those interested in the news.</p><p>Usage for most users will be every couple of hours to daily. Otherwise it can be a one time thing.</p><h4>2.3 Design and Implementation Constraints</h4><p>Implementation Plan:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tEHdz7PwzYA7rvb46lnohw.png" /><figcaption>WBS Chart</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*WFikTmfpUfH1bAdyNemsdw.png" /><figcaption>PERT Chart</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LvhGhgLVqeMQfj-NMJslBg.png" /><figcaption><strong>Gantt Chart: </strong>Learn how to use it <a href="https://medium.com/p/ba2131454a31/edit">here</a>.</figcaption></figure><h3>3.External Interface Requirements</h3><h4>3.1 User Interfaces</h4><p>Users are able to interact through a website which include sample screen images, GUI standards or product family style guides that are to be followed, screen layout constraints, standard buttons and functions. The places where user interaction is expected is in searching for the stocks and for commenting in the forms provide in the website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*TuYNfblXUxCB7ERY7z6WCQ.png" /><figcaption>ER Model</figcaption></figure><h4>3.2 Hardware Interfaces</h4><p>Graphical processing unit required for quicker training of the Machine Learning model. High speed cloud database like IBM Db2 which can supply constant data for training of the instance model which takes data from cloud every second.</p><h4>3.3 Software Interfaces</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*D1RWSv9fLlcn0A7MWIyIMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*aO1DZ20cNvkdmTgWYsCLMg.png" /></figure><h4>3.4 Communications Interfaces</h4><p>The website will have a DNS which will be HTTPS based to provide security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*R03GOXxsP3qJodcJj6Bbbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*vS0AvCsoBumqG3fcnoUfnQ.png" /></figure><h3>4. System Features</h3><p>The software must provide all the given below feature</p><h4>4.1 Description and Priority</h4><p>Creating a webapp that displays various stock market prices of companies on the stock exchange. The stocks will be ranked by popularity based on the analysis of the crowds view through news and social media feeds.</p><p>Priority is Machine Learning model that displays the probable score to buy the stock of a given company. Display in the website along with features of the company is also expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*o73UkEDc4GFQDsvuqnNkzQ.png" /><figcaption>Design Methodology</figcaption></figure><h4>4.2 Functional Requirements</h4><ul><li>Self-Optimized algorithm to predict the Stock Market</li><li>Sentiment analysis based algorithm which understands whether the market will go up or not.</li><li>Web Scraping to gather data related to each company</li><li>Gather information regrading the stocks.</li><li>Display the relevant information</li><li>Stock prices of that is up to date.</li><li>Providing Graphs of the stock market</li><li>Tables and graphs about the different companies.</li><li>User interaction through searching and commenting</li><li>Allows user interaction.</li></ul><h4>4.3 Testing Objectives</h4><ul><li>Traceability between requirements, tests, defects, executions</li><li>Define reusable preconditions and associate to tests</li><li>Organize tests in folders and test sets</li><li>Test plans for tracking progress</li><li>Test environments</li><li>BDD — Write Cucumber scenarios in Jira</li><li>Integrates with test automation frameworks (Selenium, JUnit, Nunit, Robot, …)</li><li>Built-in REST API</li><li>CI integrations (Bamboo, Jenkins)</li><li>Built-in reports</li><li>It is widely used by global 500 companies because it integrates detailed reports and also suggests the vulnerability or bug fixes.</li></ul><p>It has most of the famous frameworks inbuilt like selenium. Also, it supports manual as well as automated testing.</p><h4>4.4 Configuration of Testing Tool</h4><ol><li>Setting the environment in which the webpage was developed. For e.g. React, Angular, Vue, Jira, etc.</li><li>Setting the number of users that are going to use it.</li><li>Setting up security level to minimum because we don’t have sensitive data.</li><li>Input the SaaS(Software as a Service) if used in the webpage.</li><li>Input the PaaS(Product as a Service) if used in the webpage. Here, we have selected Twitter because our service uses Twitter to scrape the tweets.</li><li>Set the languages used in the codes. We have used python.</li></ol><h3>5. Project</h3><p>5.1 Minimal Viable Product:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*isBtiixsdNq-aux2SVsXYA.png" /><figcaption>Website allows the user to search for the different companies</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0XfL-wtzl0Ziiy3L292Biw.png" /><figcaption>Searched results will get displayed here</figcaption></figure><p>5.2 Final Result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zKlL8sGzwA5Wv-0OF4XbBA.png" /><figcaption>The Main page of the website contains a list of all the major companies and their respective stock valuation and graphs. This is achieved by scraping the web. Another major feature in this page is it allows for search of various companies using the Search Bar.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BoC0yQpyRvSNy7NdciCUPQ.png" /><figcaption>This page contains the registering or Login in for customers. This information is recorded in the database and is used to keep the website secure and in the future will allow customers to get emails regrading the stocks through their given email id.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*czfYmwEB552yJSHr5lz7mQ.png" /><figcaption>This page displays the developers.</figcaption></figure><p>5.3 Testing:</p><p>Equivalence class partitioning has been used because the project is based on large class so it is very exhaustive to implement other testing models that goes on testing each function because all the features have same functioning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y-l5Xkc76-NAV_tmm4spCg.png" /><figcaption>List of all tests conducted. <strong>Xray</strong> has been used for testing the web app.</figcaption></figure><h3>6. Other Nonfunctional Requirements</h3><h4>6.1 Performance Requirements</h4><p>Using AWS cloud to train the model is a much better alternative. The reason behind this is that much more robust ML models can be trained as it is not constrained by the amount computation.</p><h4>6.2 Safety Requirements</h4><p>IBM Db2 has been used for all the data that is fed to the algorithm for training so that there is no noisy or influenced biased data fed to system. Rollback of the model is created so that incase a bad patch of the data is fed to the machine then the Machine Learning model can be rolled back to its previous stage.</p><h4>6.3 Security Requirements</h4><p>IBM SPSS modeler has been used which scans and verifies whether the data obtained is original or is there any modifications in the data that could affect the performance of the model. Also the UI has been designed accordingly that there is no penetration testing possible or no stress can be put on the server.</p><h4>6.4 Software Quality Attributes</h4><p>Software UI has been designed keeping in mind the ease of use for the new user. Also any user can reuse it with different stocks and as many as he/she wants. Refinement of the model is at extreme levels that there is no lag while training and prediction of the data. Software is extremely interactive.</p><h4>6.5 Business Rules</h4><p>While selecting the stock, one thing should be kept in mind i.e. time should be given to the machine learning model to mine the data from the different databases and it should be given time to train else there might be lot of errors occurring and prediction might not be accurate. Also the UI should be used sincerely and should not be spammed for finding the predictions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=340b67ef323f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Order and Chaos Philosophy]]></title>
            <link>https://medium.com/@Pran-Ker/order-and-chaos-philosophy-c3b0e8ebf53e?source=rss-e64d4c569bad------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3b0e8ebf53e</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[philosophy]]></category>
            <dc:creator><![CDATA[Prannay Hebbar]]></dc:creator>
            <pubDate>Sat, 26 Mar 2022 11:22:56 GMT</pubDate>
            <atom:updated>2022-03-26T11:22:56.878Z</atom:updated>
            <content:encoded><![CDATA[<p>*Note : This is only personal views or interpretation. So, feel free to suggest your views or changes as you see fit. TBH, I am hoping that you do.</p><p><strong>Introduction</strong></p><p>The fact is that everything around us can be pretty broadly categorized as Order and Chaos. Order is something that has already been defined and chaos is the unknown and non-comprehensible. Born from order and chaos is Creation.</p><p>Example 1: When the world existed in the beginning there was chaos and and then this started to change to order, in the process stars, planets, etc were created.</p><p>Example 2: In our daily life, we try to live in order (wake up at a certain time, etc.) however, chaos disrupts our plans and goals in the process. This gives us new situations, which helps us adapt and grow. It is also an opportunity to form new memories. Like ask yourself compared to the times when everything was in order vs when things were in chaos which do you remember more. Usually it is the later.</p><p>A lot of people misunderstood chaos, the chaos in the context of this article is changes, random occurrences, unplanned events or scattered thoughts. Another thing to keep in mind is the only reason we perceive something as random is because we haven’t found the order to it and not that order does not exist. Finding the order in chaos is hard ( sometimes impossibly so) because of the complexity of the situation. This is something that can be seen in Science, Mathematics, peoples daily life, etc.</p><p>I believe one must live their life with both order &amp; chaos, and hence create something in their life. (However, this is my Dao or my path, not necessarily anyone else is path)</p><p><strong>Order</strong></p><p>This part is obvious part but usually the most difficult part.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3b0e8ebf53e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Scratch equivalent for the Terminal]]></title>
            <link>https://medium.com/@Pran-Ker/the-scratch-equivalent-for-the-terminal-4082db8bf431?source=rss-e64d4c569bad------2</link>
            <guid isPermaLink="false">https://medium.com/p/4082db8bf431</guid>
            <dc:creator><![CDATA[Prannay Hebbar]]></dc:creator>
            <pubDate>Fri, 06 Dec 2019 08:30:50 GMT</pubDate>
            <atom:updated>2019-12-06T08:34:29.185Z</atom:updated>
            <content:encoded><![CDATA[<p>The Scratch equivalent for the Terminal</p><p>Here is my proposal:</p><p>Imagine there was a way to introduce students and beginners to the beauty of the terminal .</p><p>I mean anyone who has worked with a terminal will tell you that it is one of the most powerful tools a programer can have . But at the same time , it has a very steep learning curve . So , much so that most people get frustrated at one point and give up.</p><p>Programming is generally thought at schools and colleges through Scratch . Similar to this why not make GUI version of the terminal.Something that acts as an abstraction of the real thing , allowing simpler execution of the more complex functions in a terminal.</p><p>Now , it is understandable that this will not have the same amount of power as the terminal . But , it will let beginners grasp the concepts of it , making them more comfortable with switching to opensource distros .</p><p>If anyone is interested in collaborating with me on this project , checkout my GitHub profile :-<a href="https://github.com/Pran-Ker">https://github.com/Pran-Ker</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4082db8bf431" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>