Zephyro
0 FOLLOWERS
Forget about memorising an infinite amount of functions: learn programming step-by-step by concepts with examples and fun projects. (Learn C, C and more)
Zephyro
5y ago
There’s no way you never heard the word “Python” when reading something about Machine Learning.
For two reasons:
First: it’s in the title above.
Second: everyone, like, every single soul on the Internet, seems to use Python to code machine learning.
Cringe
Why is Python so popular in Machine Learning?
Python isn’t famous to be a fast language.
In fact it’s among the slowests, even compared with other interpreted languages, and we know that speeding up the training phase is key: you don’t want to wait forever before being able to use your program.
The question, then, becomes more and more rele ..read more
Zephyro
5y ago
What is Machine Learning? How is it different from AI? How can you get started? I know you aren’t here for the theory, so here’s what we’re going to do.
“Wow your program is perfect? When does machine learning come into play, however?”
“What?”
“Machine learning. You implemented machine learning, right?”
“Why should I…”
“It’s important”
“It’s just a calculator!”
“yUo sHoUlD hAvE iMpLeMeNtEd mAcHine lEaRniNg!”
Machine learning is important. Why? (we will see what it is in a bit, be patient Chris)
Well, can you imagine what it would take to code a program to tell the difference between r ..read more
Zephyro
5y ago
In Python there are two types of loops, for and while, and a lot of statements that allow to change their behaviour, such as pass, break and continue.
Code
remeber_pi = "May I have a large container of coffee"
array = remeber_pi.split(" ")
print("Pi: ", end ="")
for word in array:
print(len(word), end ="")
print("")
Output
Pi: 31415926
While Loop
You can use while loops to repeat a piece of code as long as the given condition is satisfied.
while condition:
code inside the loop
code outside
Remember that, unlike C and Java, Python doesn’t group blocks of code by brackets ..read more