

{"id":4833,"date":"2017-12-25T04:48:46","date_gmt":"2017-12-25T04:48:46","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=4833"},"modified":"2021-08-25T17:25:51","modified_gmt":"2021-08-25T11:55:51","slug":"random-forest-in-r","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/","title":{"rendered":"Random Forest in R &#8211; Understand every aspect related to it!"},"content":{"rendered":"<p>We will study the concept of random forest in R thoroughly and understand the technique of ensemble learning and ensemble models in R Programming. We will also explore random forest classifier and process to develop random forest in R Language.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66045\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R.png\" alt=\"Random-Forest-in-R\" width=\"802\" height=\"420\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R.png 802w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R-150x79.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R-300x157.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R-768x402.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R-520x272.png 520w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/a><\/p>\n<p>So, let&#8217;s start.<\/p>\n<h2>Introduction to Random Forest in R<\/h2>\n<p><strong>What are Random Forests?<\/strong><\/p>\n<p><span style=\"font-weight: 400\">The idea behind this technique is to decorrelate\u00a0<\/span><span style=\"font-weight: 400\">the several trees.\u00a0Ensemble technique called Bagging is like random forests. It is generated on the different bootstrapped samples from training data. And, then we reduce the variance in trees by averaging them. Hence, in this approach, it creates a large number of decision trees in R.<\/span><br \/>\n<b><i><\/i><\/b><\/p>\n<p><em><strong>Master the <a href=\"https:\/\/data-flair.training\/blogs\/r-decision-trees\/\">concept of R Decision Trees<\/a>\u00a0before proceeding further<\/strong><\/em><\/p>\n<p>We use the R package &#8220;randomForest&#8221; to create random forests<span style=\"font-weight: 400\">.<\/span><\/p>\n<h3>What is Ensemble Learning in R?<\/h3>\n<p><span style=\"font-weight: 400\">It is a type of supervised learning technique. The basic idea behind it is to generate many models on a training dataset and then combining their output rules.<\/span><\/p>\n<p><span style=\"font-weight: 400\">We use it to generate lots of models by training on Training Set and\u00a0combining\u00a0them at the end. Hence, we can use it to improve the predictive performance of decision trees by reducing the variance in the trees through averaging them. It is called the random forest technique.<\/span><\/p>\n<h3>What are Ensemble Models in R?<\/h3>\n<p>It is a type of model which combine results from different models and is usually better than the result from one of the individual models.<br \/>\n<b><\/b><\/p>\n<p>Some of the features of random forests in <a href=\"https:\/\/cran.r-project.org\/mirrors.html\">R Programming<\/a> are as follows<span style=\"font-weight: 400\">:<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400\">It is the type of model which runs on large databases.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Random forests allow handling of thousands of input variables without variable deletion.<\/span><\/li>\n<li><span style=\"font-weight: 400\">It gives very good estimates stating which variables are important in the classification.<\/span><\/li>\n<\/ul>\n<p><em><strong>The tutorial to gain expertise in <a href=\"https:\/\/data-flair.training\/blogs\/classification-in-r\/\">Classification in R Programming<\/a><\/strong><\/em><\/p>\n<h3>Random Forest Classifier<\/h3>\n<p>At training time, we can classify the ensemble learning method of random forest and thus we can operate it by constructing a multitude of decision trees.<\/p>\n<p><span style=\"font-weight: 400\">Adele Cutler and Leo Breiman developed it. Here the combination of two different methods is done by <strong>Leo\u2019s bagging idea<\/strong> and the <strong>random selection of features<\/strong> introduced by Tin Kan Ho. He also proposed Random Decision Forest in the year 1995.<\/span><\/p>\n<h4>Functions of Random Forest in R<\/h4>\n<p>If the number of cases in the training set is N, and the sample N case is at random, each tree will grow. Thus, this sample will be the training set for growing the tree. If there are M input variables, we specify a number <em>m&lt;&lt;M<\/em> such that at each node, <em>m<\/em> variables are selected at random out of the <em>M<\/em>. The value of m is constant during the forest growing and hence, each tree grows to the largest extent possible.<\/p>\n<p><em><strong>Do you know about <a href=\"https:\/\/data-flair.training\/blogs\/clustering-in-r-tutorial\/\">Clustering in R Programming Language<\/a><\/strong><\/em><\/p>\n<h3>Developing Random Forest in R<\/h3>\n<p>We will first import the important libraries, such as <em>ggplot2<\/em> and <em>randomForest<\/em> as follows:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">#Author DataFlair\r\ngetwd()\r\nlibrary(ggplot2)\r\nlibrary(randomForest)\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/library-import.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66063\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/library-import.png\" alt=\"library import\" width=\"1298\" height=\"735\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/library-import.png 1298w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/library-import-150x85.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/library-import-300x170.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/library-import-768x435.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/library-import-1024x580.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/library-import-520x294.png 520w\" sizes=\"auto, (max-width: 1298px) 100vw, 1298px\" \/><\/a><\/p>\n<p>We will use the popular titanic survival prediction dataset and will import the training and test sets into our two corresponding variables:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">setwd(\"\/home\/dataflair\/Titanic Dataset\/\") #DataFlair\r\ntrain_data &lt;- read.csv(\"train.csv\" , stringsAsFactors = FALSE)\r\ntest_data  &lt;- read.csv(\"test.csv\",   stringsAsFactors = FALSE)\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/train-data-test-data.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66064\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/train-data-test-data.png\" alt=\"train-data-test-data\" width=\"1298\" height=\"737\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/train-data-test-data.png 1298w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/train-data-test-data-150x85.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/train-data-test-data-300x170.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/train-data-test-data-768x436.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/train-data-test-data-1024x581.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/train-data-test-data-520x295.png 520w\" sizes=\"auto, (max-width: 1298px) 100vw, 1298px\" \/><\/a><\/p>\n<p><em><strong>You can&#8217;t afford to miss the guide on <a href=\"https:\/\/data-flair.training\/blogs\/e1071-in-r\/\">e1071 Package and SVM Training &amp; Testing Models in R<\/a>\u00a0\u00a0<\/strong><\/em><\/p>\n<p>Let us now take a look at the first six entries of our imported training and testing dataset:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt; head(train_data)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-train-data.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66038\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-train-data.jpg\" alt=\"head train data\" width=\"1299\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-train-data.jpg 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-train-data-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-train-data-300x171.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-train-data-768x438.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-train-data-1024x584.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-train-data-520x297.jpg 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">head(test_data)\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-test-data.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66065\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-test-data.png\" alt=\"head-test-data\" width=\"1298\" height=\"739\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-test-data.png 1298w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-test-data-150x85.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-test-data-300x171.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-test-data-768x437.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-test-data-1024x583.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/head-test-data-520x296.png 520w\" sizes=\"auto, (max-width: 1298px) 100vw, 1298px\" \/><\/a><\/p>\n<p>Extraction of features is the next most important step towards building our model. We perform this in the form of a function called &#8216;Feature_extraction&#8217; that will extract features from whatever input data is provided to it whenever it is called.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Feature_extraction &lt;- function(data) {\r\n  labels &lt;- c(\"Pclass\",\r\n                \"Age\",\r\n                \"Sex\",\r\n                \"Parch\",\r\n                \"SibSp\",\r\n                \"Fare\",\r\n                \"Embarked\")\r\n  features &lt;- data[,labels]\r\n  features$Age[is.na(features$Age)] &lt;- -1\r\n  features$Fare[is.na(features$Fare)] &lt;- median(features$Fare, na.rm=TRUE)\r\n  features$Embarked[features$Embarked==\"\"] = \"S\"\r\n  features$Sex      &lt;- as.factor(features$Sex)\r\n  features$Embarked &lt;- as.factor(features$Embarked)\r\n  return(features)\r\n}\r\n<\/pre>\n<p><strong>Code Display:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66040\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction.jpg\" alt=\"Feature-extraction\" width=\"1299\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction.jpg 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-300x171.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-768x438.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-1024x584.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-520x297.jpg 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-output.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66039\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-output.jpg\" alt=\"Feature-extraction-output\" width=\"1299\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-output.jpg 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-output-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-output-300x171.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-output-768x438.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-output-1024x584.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Feature-extraction-output-520x297.jpg 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p>Let us call the above function by displaying the summary of the extracted features of training and test sets:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt; summary(Feature_extraction(train_data))\r\n&gt; summary(Feature_extraction(test_data))\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Summary-Feature-extraction.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-66041 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Summary-Feature-extraction.jpg\" alt=\"Summary-Feature-extraction - Random Forest in R\" width=\"1299\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Summary-Feature-extraction.jpg 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Summary-Feature-extraction-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Summary-Feature-extraction-300x171.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Summary-Feature-extraction-768x438.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Summary-Feature-extraction-1024x584.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Summary-Feature-extraction-520x297.jpg 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p>In the next step, we will implement our <em>randomForest()<\/em> function as follows:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt; r_forest &lt;- randomForest(Feature_extraction(train_data), as.factor(train_data$Survived), ntree=100, importance=TRUE)       #Author DataFlair\r\n&gt; r_forest\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/r_forest.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-66042 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/r_forest.jpg\" alt=\"r_forest - Random Forest in R\" width=\"1299\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/r_forest.jpg 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/r_forest-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/r_forest-300x171.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/r_forest-768x438.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/r_forest-1024x584.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/r_forest-520x297.jpg 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p>Let us now extract some of the important features with the following lines of code:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&gt; important &lt;- importance(r_forest, type=1 )  #Author DataFlair\r\n&gt; Important_Features &lt;- data.frame(Feature = row.names(important), Importance = important[, 1])\r\n<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-importance.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66043\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-importance.jpg\" alt=\"important-importance\" width=\"1299\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-importance.jpg 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-importance-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-importance-300x171.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-importance-768x438.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-importance-1024x584.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-importance-520x297.jpg 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p>In the final step, we will use <em>ggplot2<\/em> to plot our set of important features:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">#Author DataFlair\r\nplot_ &lt;- ggplot(Important_Features, \r\n    aes(x= reorder(Feature,\r\nImportance) , y = Importance) ) +\r\ngeom_bar(stat = \"identity\", \r\n        fill = \"#800080\") +\r\ncoord_flip() +\r\ntheme_light(base_size = 20) +\r\nxlab(\"\") + \r\nylab(\"Importance\")+\r\nggtitle(\"Important Features in Random Forest\\n\") +\r\ntheme(plot.title = element_text(size=18))\r\nggsave(\"important_features.png\", \r\n      plot_)\r\nplot_\r\n<\/pre>\n<p><strong>Code Display:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-66044 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot.jpg\" alt=\"plot-ggplot - Random Forest in R\" width=\"1299\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot.jpg 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-300x171.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-768x438.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-1024x584.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-520x297.jpg 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-output.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-66047 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-output.jpg\" alt=\"plot-ggplot-output - Random Forest in R\" width=\"1299\" height=\"741\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-output.jpg 1299w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-output-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-output-300x171.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-output-768x438.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-output-1024x584.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/plot-ggplot-output-520x297.jpg 520w\" sizes=\"auto, (max-width: 1299px) 100vw, 1299px\" \/><\/a><\/p>\n<p><strong>Bar Graph:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-features-in-Random-forest-bar-graph.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-66053\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-features-in-Random-forest-bar-graph.png\" alt=\"important-features in Random-forest-bar-graph\" width=\"1600\" height=\"1600\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-features-in-Random-forest-bar-graph.png 1600w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-features-in-Random-forest-bar-graph-150x150.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-features-in-Random-forest-bar-graph-300x300.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-features-in-Random-forest-bar-graph-768x768.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-features-in-Random-forest-bar-graph-1024x1024.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-features-in-Random-forest-bar-graph-160x160.png 160w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-features-in-Random-forest-bar-graph-320x320.png 320w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/important-features-in-Random-forest-bar-graph-520x520.png 520w\" sizes=\"auto, (max-width: 1600px) 100vw, 1600px\" \/><\/a><\/p>\n<h2>Summary<\/h2>\n<p>We have studied the different aspects of random forest in R. We learned about ensemble learning and ensemble models in R Programming along with random forest classifier and process to develop random forest in R.<\/p>\n<p><em><strong>Now, it&#8217;s time to land on <a href=\"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/\">Bayesian Network in R <\/a><\/strong><\/em><\/p>\n<p>Any queries regarding random forest in R? Enter in the comment section below.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1464,&quot;href&quot;:&quot;https:\\\/\\\/cran.r-project.org\\\/mirrors.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251209075325\\\/https:\\\/\\\/cran.r-project.org\\\/mirrors.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 02:54:14&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2025-12-13 03:09:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-19 08:10:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-24 08:13:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-28 15:29:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-01 00:10:17&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-01-04 12:24:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-12 08:15:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-15 10:12:29&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-18 20:26:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-25 01:12:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-30 20:18:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-04 14:11:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-09 04:43:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 08:52:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-16 07:36:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-19 20:39:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 10:36:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-26 22:03:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-04 12:22:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 03:28:54&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 21:33:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-17 10:11:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-23 12:04:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-26 18:07:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-30 05:46:20&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-06 09:01:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-09 15:30:10&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-12 16:57:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-18 20:34:26&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-04-22 11:39:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-26 05:39:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-29 06:56:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-02 15:40:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-07 17:08:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-10 23:40:52&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-05-14 13:17:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-18 16:56:08&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-05-22 01:26:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-25 16:22:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-30 20:26:24&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-06-04 07:04:21&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-06-12 10:33:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-18 05:37:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-22 14:21:58&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-25 20:31:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-29 02:33:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-03 15:45:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-07 15:57:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-11 01:28:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-14 17:14:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-18 02:19:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-22 10:31:29&quot;,&quot;http_code&quot;:503},{&quot;date&quot;:&quot;2026-07-26 02:48:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-02 01:12:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-05 13:33:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-09 06:55:07&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-08-09 06:55:07&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We will study the concept of random forest in R thoroughly and understand the technique of ensemble learning and ensemble models in R Programming. We will also explore random forest classifier and process to&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":66045,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[20767,16737,20766,20768,16736],"class_list":["post-4833","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","tag-developing-random-forest-in-r","tag-ensemble-learning-in-r","tag-ensemble-models-in-r","tag-random-forest-classifier","tag-random-forest-in-r"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Random Forest in R - Understand every aspect related to it! - DataFlair<\/title>\n<meta name=\"description\" content=\"Check out the concept of random forest in R and ensemble learning. Also, learn about random forest classifier &amp; process to develop random forest in R Programming.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Random Forest in R - Understand every aspect related to it! - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Check out the concept of random forest in R and ensemble learning. Also, learn about random forest classifier &amp; process to develop random forest in R Programming.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-25T04:48:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-25T11:55:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R.png\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Random Forest in R - Understand every aspect related to it! - DataFlair","description":"Check out the concept of random forest in R and ensemble learning. Also, learn about random forest classifier & process to develop random forest in R Programming.","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:\/\/data-flair.training\/blogs\/random-forest-in-r\/","og_locale":"en_US","og_type":"article","og_title":"Random Forest in R - Understand every aspect related to it! - DataFlair","og_description":"Check out the concept of random forest in R and ensemble learning. Also, learn about random forest classifier & process to develop random forest in R Programming.","og_url":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2017-12-25T04:48:46+00:00","article_modified_time":"2021-08-25T11:55:51+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R.png","type":"image\/png"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Random Forest in R &#8211; Understand every aspect related to it!","datePublished":"2017-12-25T04:48:46+00:00","dateModified":"2021-08-25T11:55:51+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/"},"wordCount":737,"commentCount":1,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R.png","keywords":["Developing Random Forest in R","Ensemble Learning in R","Ensemble Models in R","Random Forest Classifier","Random forest in R"],"articleSection":["R Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/random-forest-in-r\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/","url":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/","name":"Random Forest in R - Understand every aspect related to it! - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R.png","datePublished":"2017-12-25T04:48:46+00:00","dateModified":"2021-08-25T11:55:51+00:00","description":"Check out the concept of random forest in R and ensemble learning. Also, learn about random forest classifier & process to develop random forest in R Programming.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/random-forest-in-r\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/12\/Random-Forest-in-R.png","width":802,"height":420,"caption":"Random-Forest-in-R"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/random-forest-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"R Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/r\/"},{"@type":"ListItem","position":3,"name":"Random Forest in R &#8211; Understand every aspect related to it!"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/4833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=4833"}],"version-history":[{"count":12,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/4833\/revisions"}],"predecessor-version":[{"id":66066,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/4833\/revisions\/66066"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/66045"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=4833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=4833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=4833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}