How does Lexical Scoping in Mojo ๐ฅ works (under 3 minutes)
Skills:
ML Maths Basics60%
Key Takeaways
This video teaches lexical scoping in Mojo
Full Transcript
so this is a snippet of modu code I want you to take a look just for a second pause this video if you have to and tell me what you think this script is going to print when I run it so first of all we have a variable X that I'm declaring and I'm using int 32 as the type of that variable however I'm assigning the value hello to an INT anytime you try to assign a string to an INT 32 by variable if that string is empty then the variable will get the value zero if the string has a value like in this case is hello then X is going to get the value one so here the first print statement should print the value one now I have a condition here and I'm saying if x and if you know python you know that in this case X is going to be true because the value of x is one therefore this is the class of condition that is going to execute inside I'm red declaring the variable X this is something that's new in modu is called shadowing a variable because this new X now is valid within this scope of this condition this x is going to die after the condition is over and this x is just a completely new variable it's not the same as the outer X now this new X I'm assigning a value of the outer X I'm referencing the outer X right here plus 10 because the outer X has the value of one this x here now is going to have the value of 11 right it's going to be 1 + 10 that will be 11 now remember this declaration of X is going to die as soon as I get out of that condition therefore this line should be referencing the outer X which has a value of one so if I execute this code right now we should see 11 111 on the screen let's see if this is true if I'm not drunk and 111 I hope that makes sense
Original Description
I teach a live, interactive program that'll help you build production-ready Machine Learning systems from the ground up. Check it out here:
https://www.ml.school
To keep up with my content:
โข Twitter/X: https://www.twitter.com/svpino
โข LinkedIn: https://www.linkedin.com/in/svpino
๐ Subscribe for more stories: https://www.youtube.com/@underfitted?sub_confirmation=1
Watch on YouTube โ
(saves to browser)
Sign in to unlock AI tutor explanation ยท โก30
Playlist
Uploads from Underfitted ยท Underfitted ยท 52 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
โถ
53
54
55
56
57
58
59
60
Test-Time Augmentation In Machine Learning.
Underfitted
Don't Replace Missing Values In Your Dataset.
Underfitted
Introduction to Adversarial Validation In Machine Learning.
Underfitted
Introduction To Autoencoders In Machine Learning.
Underfitted
Active Learning. The Secret of Training Models Without Labels.
Underfitted
Early Stopping. The Most Popular Regularization Technique In Machine Learning.
Underfitted
The Confusion Matrix in Machine Learning
Underfitted
3 Tips to Build a Career in Machine Learning (Unconventional Advice)
Underfitted
I can predict cars CRASHING. And it's 99% accurate!
Underfitted
A Critical Skill People Learn Too LATE: Learning Curves In Machine Learning.
Underfitted
The BEST Machine Learning Interview Strategy.
Underfitted
OpenAIโs Whisper is AMAZING!
Underfitted
5 Lessons Youโre NOT Taught in School
Underfitted
TensorFlow On Apple Silicon. Step-by-Step Instructions
Underfitted
Generating Images From Text. Stable Diffusion, Explained
Underfitted
The Wrong Batch Size Will Ruin Your Model
Underfitted
8 Mistakes Holding Your Career Back | Machine Learning
Underfitted
AI Just Solved a 53-Year-Old Problem! | AlphaTensor, Explained
Underfitted
Bias and Variance, Simplified
Underfitted
Should You Stop Splitting Your Data Like This?
Underfitted
The Function That Changed Everything
Underfitted
This Model Caused A Nuclear Disaster
Underfitted
Will Your Code Write Itself?
Underfitted
The Simplest Encoding Youโve Never Heard Of
Underfitted
Superhuman AI Cracked An Impossible Game! | DeepNash, Explained
Underfitted
Can you become a Data Scientist without a Ph.D?
Underfitted
How to 10x your productivity with ChatGPT?
Underfitted
Cheating the Prisoner's Dilemma
Underfitted
We integrated OpenAI's Whisper with Spot
Underfitted
The Machine Learning School program
Underfitted
We integrated ChatGPT with our robots
Underfitted
Solving complex tasks using a Large Language Model (LLM)
Underfitted
5 problems when using a Large Language Model
Underfitted
We just discovered faster sorting algorithms!
Underfitted
The 3 most important updates to OpenAI's API.
Underfitted
People are divided! Does GPT-4 understand what it says?
Underfitted
How much should you charge hourly as a Machine Learning freelancer?
Underfitted
Building a RAG application from scratch using Python, LangChain, and the OpenAI API
Underfitted
Building a RAG application using open-source models (Asking questions from a PDF using Llama2)
Underfitted
How to evaluate an LLM-powered RAG application automatically.
Underfitted
Step by step no-code RAG application using Langflow.
Underfitted
I built a simple game using Langchain. Here is a step by step tutorial.
Underfitted
I used the first AI Software Engineer for a week. This is happening.
Underfitted
I deployed a recommendation model. Testing Models In Production using Interleaving Experiments.
Underfitted
How to run PyTorch, TensorFlow, and JAX on your Mac (Apple Silicon)
Underfitted
How to train a model to generate image embeddings from scratch
Underfitted
Building an AI assistant that listens and sees the world (Step by step tutorial)
Underfitted
Why are vector databases so FAST?
Underfitted
A Machine Learning roadmap (the one I recommend to my students)
Underfitted
How to build a real-time AI assistant (with voice and vision)
Underfitted
An introduction to Mojo (for Python developers)
Underfitted
How does Lexical Scoping in Mojo ๐ฅ works (under 3 minutes)
Underfitted
Building a CI workflow for those who hate it (using GitHub Actions)
Underfitted
How to run Python Code in Mojo ๐ฅ
Underfitted
AI will not take your job. Here is what I think will happen instead.
Underfitted
How to fine-tune a model using LoRA (step by step)
Underfitted
Late initialization in Mojo๐ฅ (Python doesn't support this)
Underfitted
The $1,000,000 problem AI can't solve
Underfitted
A gentle introduction to RAG (using open-source models)
Underfitted
Automating feedback using ChatGPT and Zapier
Underfitted
More on: ML Maths Basics
View skill โRelated Reads
๐ฐ
๐ฐ
๐ฐ
๐ฐ
CentryAI
Dev.to AI
# Engineering Log #03 โ The honest asterisk got cashed in (product F1 0.887), and the model finally became a product
Dev.to ยท yubin hong
Part-05 Performance Tuning & Optimization: The Production Secret Sauce
Medium ยท Python
AI Bisa Membantu Forecasting Penjualan, Ini Cara Menggunakannya
Medium ยท Machine Learning
๐
Tutor Explanation
DeepCamp AI