Skip to main content

Posts

Showing posts from January, 2023

Machine Learning Interview Questions

Machine Learning Interview Questions: 1. What is Machine Learning (ML)? We will begin with the most informal and simple definition. Machine learning is a thing-labeler where you explain your task with examples instead of instructions. The concept behind Machine Learning is that you feed data to machines and let them learn on their own without any human intervention (in the process of learning). Consider a small scenario. Let’s say that you have enrolled for some swimming classes and you have no prior experience of swimming. Needless to say that initially, you would perform not so well because you have no idea about how to swim, but as you observe and pick up more information, your performance keeps getting better. The observance is just another way of data collection. Just like how we humans learn from our observations and experiences, machines are also capable of learning on their own when they are fed a good amount of data. This is precisely how we employ the concept of Machine Learn...

Important Topics in Statistics for Data Sce

  Some important topics in Statistics: - Central Limit Theorem - Mean CLT Statement: For large sample sizes, the sampling distribution of means will approximate to normal distribution even if the population distribution is not normal. If we have a population with mean μ and standard deviation σ and take large random samples (n ≥ 30) from the population with replacement, then the distribution of the sample means will be approximately normally distributed. Why CLT is important? The field of statistics is based on fact that it is highly impossible to collect the data of entire population. Instead of doing that we can gather a subset of data from a population and use the statistics of that sample to draw conclusions about the population. In practice, the unexpected appearance of normal distribution from a population distribution is skewed (even heavily skewed). Many practices in statistics such as hypothesis testing make this assumption that the population on which they work is normall...

Python for Machine Learning

 **Numbers in Python** ## Adding two numbers 2+3 ## Subtracting two numbers 3-2 ## Multiplication of two numbers 2*3 ## Dividing two numbers it gives the floating point number 3/2 ## Floor division gives the quotient 3//2 ## Modulo division % gives the reminder 4%4 5%3 ## Power, That means exponential we use ** 2**3 3**2 ## We can use floating point number in power. 4**0.2 ## Squareroot of 2 2**0.5 ## Multiplication of two numbers 4*0.2 **Variables** **1. Rules for varibale names** - Names can not start with a number - Names can not contain spaces, use _ instead - Names can not contain any of these symbols: ' " < > / ! @ # % ^ & *  - Avoid using Python built-in keywords like list and str  ## Assigning values to variable 'a' a=10 print(a) number=10.5 New_number = 9 print(New_number) ## Boolean variable a=True print(a) false=89 h=false print(h) ## Calculate the simple interest ## Simple Interest = p*t*r/100 principal_amount = 10000 time = 5 rate = 0.1 simple_in...