Tutor profile: Md Meraj A.
Subject: Python Programming
Python and multi-threading. Is it a good idea?
Python doesn't allow multi-threading in the truest sense of the word. It has a multi-threading package but if you want the multi-thread to speed your code up, then it's usually not a good idea to use it. Python has a construct called the Global Interpreter Lock (GIL). The GIL makes sure that only one of your 'threads' can execute at any one time. A thread acquires the GIL, does a little work, then passes the GIL onto the next thread. This happens very quickly so to the human eye it may seem like your threads are executing in parallel, but they are really just taking turns using the same CPU core. All this GIL passing adds overhead to execution. This means that if you want to make your code run faster then using the threading package often isn't a good idea.
Subject: Machine Learning
What evaluation approaches would be used to gauge the effectiveness of a machine learning model?
First, split the dataset into training and test sets, or use cross-validation techniques to further segment the dataset into composite sets of training and test sets within the data. Then implement a choice selection of performance metrics. Use measures such as the F1 score, the accuracy, and the confusion matrix. What’s important here is to demonstrate that the nuances of how a model is measured and how to choose the right performance measures for the right situations.
Subject: Computer Science (General)
What is polymorphism?
Polymorphism is the ability of an object to take on multiple forms. Most commonly polymorphism is used in OOP when a parent class reference is used to refer to a child class object.
needs and Md Meraj will reply soon.