Today let's exemplify SQL's execution order with a simple query๐๐ป
1๏ธโฃ ๐ฆ๐ง๐๐ฅ๐ง๐๐ก๐ ๐๐ฅ๐ข๐ ๐ข๐จ๐ฅ ๐ฅ๐๐ช ๐ง๐๐๐๐
We use a dummy table with the salary of employees depending on their field and experience,
๐ฏ Our main goal?
Understand the field that earns the most.
2๏ธโฃ ๐ฆ๐ค๐ ๐ค๐จ๐๐ฅ๐ฌ ๐ฆ๐ง๐ฅ๐จ๐๐ง๐จ๐ฅ๐ (to use)
We define a query to obtain our goal data.
3๏ธโฃ ๐ฆ๐ค๐ ๐๐ฆ ๐ ๐๐๐๐๐๐ฅ๐๐ง๐๐ฉ๐ ๐๐๐ก๐๐จ๐๐๐
SQL expects statements to be written in a specific orderโ...
but their evaluation sequence differs.
๐ฆ๐ง๐๐ฃ 1 - ๐๐ฅ๐ข๐
First SQL determines the table where to take the data from.
In our case our dummy table salaries with all the info it contains.
๐ฆ๐ง๐๐ฃ 2 - ๐ช๐๐๐ฅ๐
Here data is filtered.
This is where we specify conditions to narrow down our results.
Think of it as our detective's magnifying glass! ๐
How to make your LLMs smarter and more efficient explained!๐๐ป
(Don't forget to bookmark for later ๐)
Creating an LLM demo is a breeze.
But... refining it for production? That's where the real challenge begins! ๐ ๏ธ
Teams often grapple with LLMs lacking deep knowledge or delivering inaccurate outputs.
How do we fix this?
Optimization isn't a one-size-fits-all. Approach it along two axes:
๐ง ๐๐ผ๐ป๐๐ฒ๐ ๐ ๐ข๐ฝ๐๐ถ๐บ๐ถ๐๐ฎ๐๐ถ๐ผ๐ป: Is the model missing the right info?
โ๏ธ ๐๐๐ ๐ข๐ฝ๐๐ถ๐บ๐ถ๐๐ฎ๐๐ถ๐ผ๐ป: Is the model's output off-target? ๐ฏ
Simple Linear Regression exemplified for dummies๐๐ป
(Don't forget to bookmark for later! ๐)
1๏ธโฃ ๐๐๐ง๐ ๐๐๐ง๐๐๐ฅ๐๐ก๐ ๐ฃ๐๐๐ฆ๐
We're using height and weight - a classic duo often assumed to have a linear relationship.
But assumptions in data science? No way! ๐ง
Let's find out:
- Do height and weight really share a linear bond?
Do you like this post?
Then join my DataBites newsletter to get all my content right to your mail every Sunday! ๐งฉ
Linear regression is the simplest statistical regression method used for predictive analysis.
It can be performed with multiple variables.... but today we'll focus on a single one.
Also known as Simple Linear Regression.
1๏ธโฃ ๐ฆ๐๐ ๐ฃ๐๐ ๐๐๐ก๐๐๐ฅ ๐ฅ๐๐๐ฅ๐๐ฆ๐ฆ๐๐ข๐ก
In Simple Linear Regression, we use one independent variable to predict a dependent one.
The main goal? ๐ฏ
Finding a line of best fit.
It's simple yet powerful, revealing hidden trends in data.
Linear regression is the simplest statistical regression method used for predictive analysis.
It can be performed with multiple variables.... but today we'll focus on a single one.
Also known as Simple Linear Regression.
1๏ธโฃ ๐ฆ๐๐ ๐ฃ๐๐ ๐๐๐ก๐๐๐ฅ ๐ฅ๐๐๐ฅ๐๐ฆ๐ฆ๐๐ข๐ก
In Simple Linear Regression, we use one independent variable to predict a dependent one.
The main goal? ๐ฏ
Finding a line of best fit.
It's simple yet powerful, revealing hidden trends in data.
The Encoder is the part responsible for processing input tokens through self-attention and feed-forward layers to generate context-aware representations.
๐ Itโs the powerhouse behind understanding sequences in NLP models.
Are you enjoying this post?
Then join my newsletter DataBites to get all my content right to your mail every week! ๐งฉ