{"id":84181,"date":"2021-08-12T09:00:47","date_gmt":"2021-08-12T03:30:47","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=84181"},"modified":"2026-06-03T15:06:30","modified_gmt":"2026-06-03T09:36:30","slug":"breast-cancer-classification","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/","title":{"rendered":"Breast Cancer Classification using Machine Learning"},"content":{"rendered":"<p>Breast cancer is one of the most common cancers among women and men globally. Breast cancer arises when cells in the breast start to develop abnormally. Due to this cancer, there is a huge number of deaths every year. It is the most common type of all cancers and also the main cause of women\u2019s death worldwide.<\/p>\n<p>Nowadays Classification and data mining methods are very effective ways to classify data. Especially when we talk about the medical field, wherewith the help of machine learning we use to diagnose the disease and analysis also to make particular decisions.<\/p>\n<p>So with the help of Machine learning if we can classify the patient having which type of cancer, then it will be easy for doctors to provide timely treatment to patients and improve the chance of survival.<\/p>\n<h3>About Breast Cancer Classification Project:<\/h3>\n<p>In this Machine learning project we are going to analyze and classify Breast Cancer (that the breast cancer belongs to which category), as basically there are two categories of breast cancer that is:<\/p>\n<ul>\n<li>Malignant type breast cancer<\/li>\n<li>Benign type breast cancer<\/li>\n<\/ul>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/breast-cancer-diagram.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84372\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/breast-cancer-diagram.jpg\" alt=\"breast cancer diagram\" width=\"900\" height=\"600\" \/><\/a><\/p>\n<p><em>Image Source: <a href=\"https:\/\/projectgurukul.org\/breast-cancer-classification-using-machine-learning\/\">ProjectGurukul<\/a><\/em><\/p>\n<p>So our main aim in this project is that with the help of a dataset we will create a model which will correctly classify whether the Breast Cancer is of malignant or benign type.<\/p>\n<h3>Breast Cancer Dataset<\/h3>\n<p>We will be using a breast cancer dataset which you can download\u00a0 from this link: <a href=\"https:\/\/www.kaggle.com\/uciml\/breast-cancer-wisconsin-data\"><strong>Breast Cancer Dataset<\/strong><\/a><\/p>\n<p>We are going to analyze the dataset completely, which will clear all your questions regarding what dataset we will be using, how many rows and columns are there, etc.<\/p>\n<p>So there are 10 columns that are:<\/p>\n<ul>\n<li>Id<\/li>\n<li>Diagnosis<\/li>\n<li>Radius mean<\/li>\n<li>Texture mean<\/li>\n<li>Perimeter mean<\/li>\n<li>Area mean<\/li>\n<li>Smoothness mean<\/li>\n<li>Compactness mean<\/li>\n<li>Concavity mean<\/li>\n<li>Concave points<\/li>\n<\/ul>\n<h3>Project Prerequisites<\/h3>\n<p>I have worked on google collabs, if you work on your system please install the following libraries:<\/p>\n<ul>\n<li>Numpy<\/li>\n<li>Pandas<\/li>\n<li>Matplotlib<\/li>\n<li>Seaborn<\/li>\n<li>Sklearn<\/li>\n<li>Tensorflow<\/li>\n<\/ul>\n<p>To install, open your command prompt and run:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install numpy\r\npip install tensorflow\r\npip install pandas\r\npip install sklearn<\/pre>\n<h3>Download Breast Cancer Classification Project Code<\/h3>\n<p>Please download the source code of breast cancer classification using machine learning: <a href=\"https:\/\/drive.google.com\/file\/d\/1Wocw6rvEqcuR259oIFblD-79hDh51Vt6\/view?usp=drive_link\"><strong>Breast Cancer Classification Project Code<\/strong><\/a><\/p>\n<h3>Now let&#8217;s start Analysing and Implementing our Breast Cancer Classification Project by TechVidvan:<\/h3>\n<h4>1) Importing Libraries:<\/h4>\n<p>Firstly we have to import all the required libraries that we have installed above. We will also import some libraries at the time we will use them.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Import libraries for Breast Cancer Classification Project\r\nimport numpy as np\r\nimport pandas as pd\r\nimport matplotlib.pyplot as plt\r\nimport seaborn as sns\r\n<\/pre>\n<h4>2) Loading the dataset:<\/h4>\n<p>If you are using google collabs you have to first upload the dataset to access that data. So to upload the dataset run following command:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Load the dataset\r\nfrom google.colab import files\r\nuploaded = files.upload()\r\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/load-dataset.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84373\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/load-dataset.png\" alt=\"load dataset\" width=\"1250\" height=\"150\" \/><\/a><\/p>\n<p>If you are using a jupyter notebook or working on your system, just read our dataset using read_csv() method.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">df = pd.read_csv('data.csv')\r\n\r\n#Now let\u2019s view our dataset using head():\r\n\r\ndf.head(10)\r\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/view-dataset.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84374\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/view-dataset.png\" alt=\"view dataset\" width=\"1259\" height=\"455\" \/><\/a><\/p>\n<h4>3) Analysing the data:<\/h4>\n<p>Now we will analyse our dataset to see what is the shape of our data, how many empty values are present in our dataset, and we will drop those missing values using various methods provided by pandas.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># count the number of rows and columns in dataset:\r\ndf.shape\r\n<\/pre>\n<p><strong>Let\u2019s create a pairplot that will show us the complete relationship between radius mean, texture mean, perimeter mean, area mean and smoothness mean on the basis of diagnosis type.<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">sns.pairplot(df,hue = 'diagnosis', palette= 'coolwarm', vars = ['radius_mean', 'texture_mean', 'perimeter_mean','area_mean','smoothness_mean'])\r\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/analyze-breast-cancer-data.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84376\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/analyze-breast-cancer-data.png\" alt=\"analyze breast cancer data\" width=\"845\" height=\"706\" \/><\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># count the number of empty values in each columns:\r\ndf.isna().sum()\r\n\r\n# drop the columns with all the missing values:\r\ndf = df.dropna(axis = 1)\r\n\r\ndf.shape\r\n\r\n# Get the count of the number of Malignant(M) or Benign(B) cells\r\ndf['diagnosis'].value_counts()\r\n<\/pre>\n<p><strong>Now we will visualize the diagnosis column in our dataset to see how many malignant and benign are present.<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># visualize the count:\r\nsns.countplot(df['diagnosis'], label = 'count')\r\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/visualize-diagnosis-column.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84377\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/visualize-diagnosis-column.png\" alt=\"visualize diagnosis column\" width=\"1240\" height=\"410\" \/><\/a><\/p>\n<p>In this whole analyzing process we are going to convert our data and perform some data processing so that we can build a model which can classify the type of Breast cancer using this preprocessed data.<\/p>\n<p>I have written comments above each line of code about what we are doing and why we are doing so that you can understand it better and easily.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># look at the data types to see which columns need to be encoded:\r\ndf.dtypes\r\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/breast-cancer-data-types.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84378\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/breast-cancer-data-types.png\" alt=\"breast cancer data types\" width=\"1257\" height=\"629\" \/><\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Rename the diagnosis data to labels:\r\ndf = df.rename(columns = {'diagnosis' : 'label'})\r\nprint(df.dtypes)\r\n\r\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/diagnosis-label-data.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84379\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/diagnosis-label-data.png\" alt=\"diagnosis label data\" width=\"1248\" height=\"565\" \/><\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># define the dependent variable that need to predict(label)\r\ny = df['label'].values\r\nprint(np.unique(y))\r\n<\/pre>\n<h4>4) Encoding Categorical Data:<\/h4>\n<p>Now we will convert our text (B and M) to integers (0 and 1) using LabelEncoder provided by sklearn library.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Encoding categorical data from text(B and M) to integers (0 and 1)\r\nfrom sklearn.preprocessing import LabelEncoder\r\nlabelencoder = LabelEncoder()\r\nY = labelencoder.fit_transform(y) # M = 1 and B = 0\r\nprint(np.unique(Y))\r\n<\/pre>\n<h4>5) Defining X :<\/h4>\n<p>X will be our main features data which consists of all the columns except the label and id column. We also normalize our X data using MinMaxScaler provided by sklearn library.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># define x and normalize \/ scale value:\r\n\r\n# define the independent variables, Drop label and ID, and normalize other data:\r\nX  = df.drop(labels=['label','id'],axis = 1)\r\n\r\n#scale \/ normalize the values to bring them into similar range:\r\nfrom sklearn.preprocessing import MinMaxScaler\r\nscaler = MinMaxScaler()\r\nscaler.fit(X)\r\nX = scaler.transform(X)\r\n\r\nprint(X)\r\n<\/pre>\n<h4>6) Splitting Our data:<\/h4>\n<p>Now we will split our data into training data and testing data using train_test_split.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Split data into training and testing data to verify accuracy after fitting the model\r\nfrom sklearn.model_selection import train_test_split\r\nx_train,x_test,y_train,y_test = train_test_split(X,Y, test_size = 0.25, random_state=42)\r\nprint('Shape of training data is: ', x_train.shape)\r\nprint('Shape of testing data is: ', x_test.shape)\r\n<\/pre>\n<h4>7) Creating Model:<\/h4>\n<p>In this step, we will be creating a Sequential model with the help of TensorFlow and Keras. In the model we have created three Dense layers in which one is the input layer with 128 hidden layers and the activation function is relu, and the second layer consists of 64 hidden layers with activation function relu and the third layer is final output layer and activation function is sigmoid.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import tensorflow\r\nfrom tensorflow.keras.models import Sequential\r\nfrom tensorflow.keras.layers import Dense, Activation, Dropout\r\n\r\nmodel = Sequential()\r\nmodel.add(Dense(128, input_dim=30, activation='relu'))\r\nmodel.add(Dropout(0.5))\r\nmodel.add(Dense(64,activation = 'relu'))\r\nmodel.add(Dropout(0.5))\r\nmodel.add(Dense(1))\r\nmodel.add(Activation('sigmoid'))\r\n<\/pre>\n<h4>8) Compile and fit ml model to our training data:<\/h4>\n<p>Compile the model and view a summary of the model<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">model.compile(loss = 'binary_crossentropy', optimizer = 'adam' , metrics = ['accuracy'])\r\n\r\nmodel.summary()\r\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/model-summary.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84381\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/model-summary.png\" alt=\"model summary\" width=\"1262\" height=\"418\" \/><\/a><\/p>\n<p><strong>Fit the model to see the accuracy of training data:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># fit with no early stopping or other callbacks:\r\nhistory = model.fit(x_train,y_train,verbose = 1,epochs = 100, batch_size = 64,validation_data = (x_test,y_test))\r\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/fit-ml-model.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84382\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/fit-ml-model.png\" alt=\"fit ml model\" width=\"1236\" height=\"371\" \/><\/a><\/p>\n<h4>9) Visualizing our training accuracy and validation accuracy:<\/h4>\n<p>In this step, we will be analyzing our training accuracy and validation accuracy and also we will be plotting losses at each epoch with the help of matplotlib library.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># plot the training and validation accuracy and loss at each epochs:\r\nloss = history.history['loss']\r\nval_loss = history.history['val_loss']\r\nepochs = range(1,len(loss)+1)\r\nplt.plot(epochs,loss,'y',label = 'Training loss')\r\nplt.plot(epochs,val_loss,'r',label = 'Validation loss')\r\nplt.title('TechVidvan Training and Validation loss')\r\nplt.xlabel('Epochs')\r\nplt.ylabel('Loss')\r\nplt.legend()\r\nplt.show()\r\n\r\nacc = history.history['accuracy']\r\nval_acc = history.history['val_accuracy']\r\nplt.plot(epochs,acc,'y',label = 'Training acc')\r\nplt.plot(epochs,val_acc,'r',label = 'Validation acc')\r\nplt.title('TechVidvan Training and Validation accuracy')\r\nplt.xlabel('Epochs')\r\nplt.ylabel('Accuracy')\r\nplt.legend()\r\nplt.show()\r\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/training-accuracy.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84383\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/training-accuracy.png\" alt=\"training accuracy\" width=\"1258\" height=\"593\" \/><\/a><\/p>\n<h4>10) Prediction and Visualizing our model accuracy on test data:<\/h4>\n<p>This is the last step in which we will be seeing our model prediction of test data.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Predicting the Test set results:\r\ny_pred = model.predict(x_test)\r\ny_pred = (y_pred &gt; 0.5)\r\n\r\n# Making the Confusion Matrix:\r\nfrom sklearn.metrics import confusion_matrix\r\ncm = confusion_matrix(y_test,y_pred)\r\n\r\nsns.heatmap(cm, annot = True)\r\n<\/pre>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/breast-cancer-classification-accuracy.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84384\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/breast-cancer-classification-accuracy.png\" alt=\"breast cancer classification accuracy\" width=\"1225\" height=\"472\" \/><\/a><\/p>\n<p>In this, we can see that our model is working very efficiently and accurately in classifying whether the breast cancer is of Malignant type or Benign type.<\/p>\n<h3>Summary<\/h3>\n<p>We have created a Breast Cancer Classification project in a very easy way using a Neural network. Our model accuracy is 98.8 % on training data and 97.9% accuracy on validation data. As we have also seen that our model is classifying test data very efficiently and accurately.<\/p>\n<p>So in this project, we have learned how to analyze and visualize the data using pandas and matplotlib libraries. We have also learned the use of LabelEncoder, MinMaxScaler.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Breast cancer is one of the most common cancers among women and men globally. Breast cancer arises when cells in the breast start to develop abnormally. Due to this cancer, there is a huge&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":84371,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[210],"tags":[4061,4062,4063,204,3397],"class_list":["post-84181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-machine-learning","tag-breast-cancer-classification","tag-breast-cancer-machine-learning-project","tag-breast-cancer-project","tag-machine-learning-project","tag-ml-project"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Breast Cancer Classification using Machine Learning - TechVidvan<\/title>\n<meta name=\"description\" content=\"Create a project on breast cancer analysis and classification using pandas and matplotlib libraries of Machine Laerning.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Breast Cancer Classification using Machine Learning - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Create a project on breast cancer analysis and classification using pandas and matplotlib libraries of Machine Laerning.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-12T03:30:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T09:36:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/machine-learning-project-breast-cancer-classification.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Breast Cancer Classification using Machine Learning - TechVidvan","description":"Create a project on breast cancer analysis and classification using pandas and matplotlib libraries of Machine Laerning.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/","og_locale":"en_US","og_type":"article","og_title":"Breast Cancer Classification using Machine Learning - TechVidvan","og_description":"Create a project on breast cancer analysis and classification using pandas and matplotlib libraries of Machine Laerning.","og_url":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-08-12T03:30:47+00:00","article_modified_time":"2026-06-03T09:36:30+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/machine-learning-project-breast-cancer-classification.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Breast Cancer Classification using Machine Learning","datePublished":"2021-08-12T03:30:47+00:00","dateModified":"2026-06-03T09:36:30+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/"},"wordCount":932,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/machine-learning-project-breast-cancer-classification.jpg","keywords":["breast cancer classification","breast cancer machine learning project","breast cancer project","machine learning project","ML project"],"articleSection":["Machine Learning Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/","url":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/","name":"Breast Cancer Classification using Machine Learning - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/machine-learning-project-breast-cancer-classification.jpg","datePublished":"2021-08-12T03:30:47+00:00","dateModified":"2026-06-03T09:36:30+00:00","description":"Create a project on breast cancer analysis and classification using pandas and matplotlib libraries of Machine Laerning.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/machine-learning-project-breast-cancer-classification.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/08\/machine-learning-project-breast-cancer-classification.jpg","width":1200,"height":628,"caption":"machine learning project breast cancer classification"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/breast-cancer-classification\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Breast Cancer Classification using Machine Learning"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/84181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=84181"}],"version-history":[{"count":2,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/84181\/revisions"}],"predecessor-version":[{"id":448031,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/84181\/revisions\/448031"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/84371"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=84181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=84181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=84181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}