Enable contrast version

Tutor profile: Ankur B.

Inactive
Ankur B.
Software Developer
Tutor Satisfaction Guarantee

Questions

Subject: Python Programming

TutorMe
Question:

Why are function decorators used in Python?

Inactive
Ankur B.
Answer:

Function decorators wrap the function being decorated to extend its behavior, without actually modifying it.

Subject: Machine Learning

TutorMe
Question:

How can you determine the optimal number of clusters in the K-Means clustering algorithm?

Inactive
Ankur B.
Answer:

One of the approaches to determine the optimal number of clusters in the K-Means clustering algorithm is the "Elbow method", in which the K-Means clustering is run for different values of K, and cost function (distortion) is computed. The cost decreases rapidly in the beginning range of K, but the rate of decrease reduces later, and cost remains almost constant. We would then chose that value of K where increasing K further doesn't give a significant reduction in cost.

Subject: C++ Programming

TutorMe
Question:

What would happen if std::unique_ptr is passed by value to a function?

Inactive
Ankur B.
Answer:

The code won't compile as unique pointers can't be copied. To make it work, move semantics can, however, be used.

Contact tutor

Send a message explaining your
needs and Ankur will reply soon.
Contact Ankur

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.