Decision tree implementation [Doubt]

Decision tree implementation [Doubt]

di CELIA DIAZ FERNANDEZ -
Numero di risposte: 1

Good afternoon, here is my implementation of a decision tree using a breast cancer dataset. 

I would like to get feedback from someone as I get an error in code fragment 9 and I can't understand what it refers to. 

The error itself is "ValueError: Unknown label type: 'continuous' "

Thanks for your help!

Link: https://colab.research.google.com/drive/1TBy6T1BcLqgCoGgBq1yNINdG0on2yDMr?usp=sharing

Link to the dataset: https://www.kaggle.com/datasets/uciml/breast-cancer-wisconsin-data

In riposta a CELIA DIAZ FERNANDEZ

Ri: Decision tree implementation [Doubt]

di DAVIDE VEZZARO -
Hello,
there are some problems reading the csv dataset with Pandas and some missing .values property in the rows below.
You can find the arrow "<----" next to the rows where I made changes and useful comment on why I did them.
Now code is working, but the performance of the model can be enhanced.. for example doing some preprocessing.

Hope you appreciate it.

Link to documentation :
->read_csv https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html
->.values https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.values.html

Duplication of your notebook fixed:
https://colab.research.google.com/drive/1f92V7nIaHZv-A6J8AYwpb52CVLN0-2uI?usp=sharing