Bindu Reddy Profile picture
Sep 2, 2023 1 tweets 2 min read Read on X
Bayesian Neural Networks - Capturing The Uncertainty Of The Real World

Life is inherently uncertain and probabilistic, and Bayesian Neural Networks (BNNs) are designed to capture and quantify that uncertainty

In many real-world applications, it's not sufficient to make a prediction; you also want to know how confident you are in that prediction. For example, in healthcare, a model that says a patient has a 70% chance of having a particular disease is less informative than one that says there's a 70% chance but with a margin of error of ±10%.

BNNs are less prone to overfitting, can be more data efficient as they can incorporate priors, and can output a probability distribution for each prediction. Knowing the uncertainty or the probability that a particular prediction is accurate builds trust and confidence with business users.

So how do Bayesian Networks Work?
The core idea is to replace the fixed weights w in a standard neural network with probability distributions P(w)

The famous equation from Bayes is:

P(A|B)=P(B|A)P(A) / P(B)

In the context of BNNs:

A is the model parameters (weights and biases).
B is the observed data.
P(A∣B) is the posterior distribution of the parameters given the data.
P(B∣A) is the likelihood of the data given the parameters.
P(A) is the prior distribution of the parameters.
P(B) is the evidence, often considered a normalizing constant.

Prior Distribution - You start with a prior distribution P(w) over the weights. This represents your initial belief about the model parameters before seeing any data.

Posterior Distribution - The goal is to compute the posterior distribution P(w∣D), which represents the updated belief about the weights after observing data D. Bayes theorem along with some approximation methods are used to calculate this distribution.

Prediction - Finally, to make a prediction for a new input x, you average over all possible weights, weighted by their posterior probabilities:

P(y∣x,D)=∫P(y∣x,w)×P(w∣D)dw

This gives you not just a point estimate but a distribution over the possible outputs y, capturing the model's uncertainty.

For example: BNNs can be applied to a dataset of MRI scans where each scan is labeled either "Cancer" or "No Cancer." The goal is to build a model that can predict these labels for new, unlabeled MRI scans. A BNN can say, "I'm 80% sure this is cancer, but there's a 20% chance it's not," which is valuable information for clinicians.

BNNs are useful wherever uncertainty quantification is important including disease diagnosis, risk assessment, energy forecasting, and real-time decision-making

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Bindu Reddy

Bindu Reddy Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @bindureddy

Dec 20, 2024
CodeLLM - AI CODE EDITOR THAT COMBINES ALL THE BEST CODING LLMs

We combined all the best coding LLMs, including o1, Sonnet 3.5, Gemini, and Qwen, and created CodeLLM. The new CodeLLM is available in a VS code-based client by the same name.

We also get UNLIMITED INTRODUCTORY QUOTA, so you can help us test and improve it.

CodeLLM finishes your code, responds to prompts, and can chat with your code base. You can also chat with CodeLLM or any other SOTA LLMs to get answers to your questions.

Over the next few months, CodeLLM will intuit your thoughts from a simple phrase and code magically ;)

HERE IS THE BEST PART - ChatLLM and CodeLLM are bundled together... So it comes FOR FREE with ChatLLM.

Thread show casing CodeLLM.

1/. Simple Auto-complete
2/ Choose CodeLLM from the pull-down and it automatically routes to the best LLM based on query
3/ Prompt your way to a new feature :)
Read 5 tweets
Dec 14, 2024
LAUNCHING COMPUTER AGENT - AI USES BROWSER / COMPUTER TO PERFORM WORK

Today, we are excited to make the world’s FIRST COMPUTER AGENT generally available on ChatLLM.

A computer Agent is an AI agent that uses a browser and computer to perform work like humans do. You can log into different accounts like LinkedIn, Salesforce, or Google Docs and ask the computer to complete your job.

This feature is launching in Beta, but you can already do many fun things.

Some examples

- Go to LinkedIn, find all the CIOs in the food industry, and enter them into Salesforce
- Scrape a website for pricing and start a Google sheet to track prices
- Create a new spaceship game on my computer
- Play my favorite songs on YouTube!

The LLM will control the browser and other apps on your behalf. Over time, this will become a new approach for AI agents.

See the thread for fun examples of what the COMPUTER AGENT can do.

1/ Non-Techies Can Build Cool Computer Games
2/ Summarize Your "For You" Twitter Feed
3/ Data Analysis On YouTube

Navigate to YouTube and analyze trends.
Read 5 tweets
Jun 19, 2024
Five prompts that upskill you instantly and help you improve your effectiveness and productivity significantly...

I currently average about 30+ queries a day to ChatLLM, and most of my prompts are some variations of these

👇
1. Use the 80/20 principle to learn faster:

Identify the most important insights (20%) so that you can become familiar with 80% of any particular topic that you have no clue about.
2. Improve your writing by getting feedback:

[paste your writing]

Ask an LLM to proofread and check typos. Claude is very good at this
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(