
Scikit-Learn Course - Machine Learning in Python Tutorial
video description
Date: 2022-03-14
Comments and reviews: 10
Tuhin
label_mapping = --
'unacc':0,-
'acc':1,-
'good':2,-
'vgood':3-
--
y['class'] = y['class'].map(label_mapping)-
y = np.array(y)-
print(y)
getting error code in this so kindly help me .
error code-
IndexError Traceback (most recent call last)-
in -
6 'vgood':3-
7 --
----> 8 y['class'] = y['class'].map(label_mapping)-
9 y = np.array(y)-
10 print(y)-
IndexError: only integers, slices (-:-), ellipsis (-...-), numpy.newaxis (-None-) and integer or boolean arrays are valid indices
reply
label_mapping = --
'unacc':0,-
'acc':1,-
'good':2,-
'vgood':3-
--
y['class'] = y['class'].map(label_mapping)-
y = np.array(y)-
print(y)
getting error code in this so kindly help me .
error code-
IndexError Traceback (most recent call last)-
in -
6 'vgood':3-
7 --
----> 8 y['class'] = y['class'].map(label_mapping)-
9 y = np.array(y)-
10 print(y)-
IndexError: only integers, slices (-:-), ellipsis (-...-), numpy.newaxis (-None-) and integer or boolean arrays are valid indices
reply
Sheikh
After conversion of x , In Y
label_mapping = --
'unacc':0,-
'acc' :1,-
'good' :2,-
'vgood' :3-
--
y['class'] = y['class'].map(label_mapping)-
y = np.array(y)-
print(y)
its showing these error (IndexError: only integers, slices (-:-), ellipsis (-...-), numpy.newaxis (-None-) and integer or boolean arrays are valid indices).
Kindly help me for the same
reply
After conversion of x , In Y
label_mapping = --
'unacc':0,-
'acc' :1,-
'good' :2,-
'vgood' :3-
--
y['class'] = y['class'].map(label_mapping)-
y = np.array(y)-
print(y)
its showing these error (IndexError: only integers, slices (-:-), ellipsis (-...-), numpy.newaxis (-None-) and integer or boolean arrays are valid indices).
Kindly help me for the same
reply
Sean
Hi, question. Is it possible to predict x values from y values after training the data set? I mean, give the program dependent variables and allow the program to predict the independent variables which gave those dependent variable? If anyone could answer this for me I'd very much appreciate it, it is for my final year project.
reply
Hi, question. Is it possible to predict x values from y values after training the data set? I mean, give the program dependent variables and allow the program to predict the independent variables which gave those dependent variable? If anyone could answer this for me I'd very much appreciate it, it is for my final year project.
reply
Harish
32:08
instead of getting in to the file and adding the names of columns, one can use the following command
car_data = pd.read_csv('car.data', header = None)
car_data.columns = ['Buying', 'maint', 'doors', 'persons', 'lug_boots', 'safety', 'condition']
reply
32:08
instead of getting in to the file and adding the names of columns, one can use the following command
car_data = pd.read_csv('car.data', header = None)
car_data.columns = ['Buying', 'maint', 'doors', 'persons', 'lug_boots', 'safety', 'condition']
reply
Hazem
Actually , I got frustrated as I 'm seeking for learning SKlearn from scartch , but unfortunately here the instructor is dealing with those having a pre-knowledge about the module and its components.
reply
Actually , I got frustrated as I 'm seeking for learning SKlearn from scartch , but unfortunately here the instructor is dealing with those having a pre-knowledge about the module and its components.
reply
rajat
good video....but pls use a better tool for explanation...I felt you are not comfortable in using Paint tool...please use One note or some other tool...content wise video is good..
reply
good video....but pls use a better tool for explanation...I felt you are not comfortable in using Paint tool...please use One note or some other tool...content wise video is good..
reply
Shubham
Hello FreeCodeCamp,
The mnist dataset isnt loading
i am getting this error : EOFError: Compressed file ended before the end-of-stream marker was reached
Kindly help.
reply
Hello FreeCodeCamp,
The mnist dataset isnt loading
i am getting this error : EOFError: Compressed file ended before the end-of-stream marker was reached
Kindly help.
reply
my0630
I will be very blunt. For a beginner, this tutorial SUCKS. Nothing is explained in great detail. Just a heads up- you will have to do a lot of searching...
reply
I will be very blunt. For a beginner, this tutorial SUCKS. Nothing is explained in great detail. Just a heads up- you will have to do a lot of searching...
reply
David
thumbs down because the video quality is terrible at 360P. Clearly out
of touch with viewer constraints, have seen many clearer videos at 360P.
reply
thumbs down because the video quality is terrible at 360P. Clearly out
of touch with viewer constraints, have seen many clearer videos at 360P.
reply
August
I have a few months experience with Python, and this was a great tutorial for me. I'm now more ready to start on intermediate ML tutorials.
reply
I have a few months experience with Python, and this was a great tutorial for me. I'm now more ready to start on intermediate ML tutorials.
reply
Add a review, comment















