MACHINE LEARNING

APPLICATION OF SUPERVISED LEARNING

MACHINE LEARNINGHARD QUESTIONS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
original ____ train = train.copy() What is the copy() in this code?
A
Using ‘copy()’ allows to clone the dataset, creating a different object with the same values
B
Using ‘copy()’ allows to dataset, creating a different object with the same values
C
Using ‘copy()’ allows to clone the dataset, creating a different object with the different values
D
None of these
Explanation: 

Detailed explanation-1: -Copy an Object in Python In Python, we use = operator to create a copy of an object. You may think that this creates a new object; it doesn’t. It only creates a new variable that shares the reference of the original object.

Detailed explanation-2: -Copy() can be helpful in situations where you want to duplicate a list so you can change it, without changing the original list.

There is 1 question to complete.