Skip to main content

Posts

Showing posts from December, 2021

Machine Learning - Categories of Machine Learning

Machine Learning is broadly categorized under the following headings: Machine learning evolved from left to right as shown in the above diagram.  Initially, researchers started out with Supervised Learning. This is the case of housing price prediction discussed earlier.  This was followed by unsupervised learning, where the machine is made to learn on its own without any supervision.  Scientists discovered further that it may be a good idea to reward the machine when it does the job the expected way and there came the Reinforcement Learning.  Very soon, the data that is available these days has become so humongous that the conventional techniques developed so far failed to analyze the big data and provide us the predictions.  Thus, came the deep learning where the human brain is simulated in the Artificial Neural Networks (ANN) created in our binary computers.  The machine now learns on its own using the high computing power and huge memory resources that are available today.  I

Python Variables: How to Define/Declare String Variable Types

  What is a Variable in Python? A Python variable is a reserved memory location to store values. In other words, a variable in a python program gives data to the computer for processing. Python Variable Types Every value in Python has a datatype. Different data types in Python are Numbers, List, Tuple, Strings, Dictionary, etc. Variables in Python can be declared by any name or even alphabets like a, aa, abc, etc. How to Declare and use a Variable Let see an example. We will define the variable in Python and declare it as “a” and print it. a=100  print (a) Re-declare a Variable You can re-declare Python variables even after you have declared once. Here we have Python declare variable initialized to f=0. Later, we re-assign the variable f to value “Welcome FutureCode" Python 2 Example This code is editable. Click Run to Execute 1 # Declare a variable and initialize it 2 f = 0 3 print f 4 # re-declaring the variable works 5 f = 'FutureCode' 6 print f Python 3 Example Thi