{"id":3918,"date":"2020-09-29T19:00:45","date_gmt":"2020-09-29T19:00:45","guid":{"rendered":"https:\/\/www.aiproblog.com\/index.php\/2020\/09\/29\/radius-neighbors-classifier-algorithm-with-python\/"},"modified":"2020-09-29T19:00:45","modified_gmt":"2020-09-29T19:00:45","slug":"radius-neighbors-classifier-algorithm-with-python","status":"publish","type":"post","link":"https:\/\/www.aiproblog.com\/index.php\/2020\/09\/29\/radius-neighbors-classifier-algorithm-with-python\/","title":{"rendered":"Radius Neighbors Classifier Algorithm With Python"},"content":{"rendered":"<p>Author: Jason Brownlee<\/p>\n<div>\n<p>Radius Neighbors Classifier is a classification machine learning algorithm.<\/p>\n<p>It is an extension to the k-nearest neighbors algorithm that makes predictions using all examples in the radius of a new example rather than the k-closest neighbors.<\/p>\n<p>As such, the radius-based approach to selecting neighbors is more appropriate for <a href=\"https:\/\/machinelearningmastery.com\/sparse-matrices-for-machine-learning\/\">sparse data<\/a>, preventing examples that are far away in the feature space from contributing to a prediction.<\/p>\n<p>In this tutorial, you will discover the <strong>Radius Neighbors Classifier<\/strong> classification machine learning algorithm.<\/p>\n<p>After completing this tutorial, you will know:<\/p>\n<ul>\n<li>The Nearest Radius Neighbors Classifier is a simple extension of the k-nearest neighbors classification algorithm.<\/li>\n<li>How to fit, evaluate, and make predictions with the Radius Neighbors Classifier model with Scikit-Learn.<\/li>\n<li>How to tune the hyperparameters of the Radius Neighbors Classifier algorithm on a given dataset.<\/li>\n<\/ul>\n<p>Let&rsquo;s get started.<\/p>\n<div id=\"attachment_10681\" style=\"width: 810px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-10681\" loading=\"lazy\" class=\"size-full wp-image-10681\" src=\"https:\/\/machinelearningmastery.com\/wp-content\/uploads\/2020\/08\/Radius-Neighbors-Classifier-Algorithm-With-Python.jpg\" alt=\"Radius Neighbors Classifier Algorithm With Python\" width=\"800\" height=\"450\" srcset=\"http:\/\/3qeqpr26caki16dnhd19sv6by6v.wpengine.netdna-cdn.com\/wp-content\/uploads\/2020\/08\/Radius-Neighbors-Classifier-Algorithm-With-Python.jpg 800w, http:\/\/3qeqpr26caki16dnhd19sv6by6v.wpengine.netdna-cdn.com\/wp-content\/uploads\/2020\/08\/Radius-Neighbors-Classifier-Algorithm-With-Python-300x169.jpg 300w, http:\/\/3qeqpr26caki16dnhd19sv6by6v.wpengine.netdna-cdn.com\/wp-content\/uploads\/2020\/08\/Radius-Neighbors-Classifier-Algorithm-With-Python-768x432.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\"><\/p>\n<p id=\"caption-attachment-10681\" class=\"wp-caption-text\">Radius Neighbors Classifier Algorithm With Python<br \/>Photo by <a href=\"https:\/\/flickr.com\/photos\/piro007\/16672314669\/\">J. Triepke<\/a>, some rights reserved.<\/p>\n<\/div>\n<h2>Tutorial Overview<\/h2>\n<p>This tutorial is divided into three parts; they are:<\/p>\n<ol>\n<li>Radius Neighbors Classifier<\/li>\n<li>Radius Neighbors Classifier With Scikit-Learn<\/li>\n<li>Tune Radius Neighbors Classifier Hyperparameters<\/li>\n<\/ol>\n<h2>Radius Neighbors Classifier<\/h2>\n<p>Radius Neighbors is a classification machine learning algorithm.<\/p>\n<p>It is based on the k-nearest neighbors algorithm, or kNN. kNN involves taking the entire training dataset and storing it. Then, at prediction time, the k-closest examples in the training dataset are located for each new example for which we want to predict. The mode (most common value) class label from the k neighbors is then assigned to the new example.<\/p>\n<p>For more on the k-nearest neighbours algorithm, see the tutorial:<\/p>\n<ul>\n<li><a href=\"https:\/\/machinelearningmastery.com\/tutorial-to-implement-k-nearest-neighbors-in-python-from-scratch\/\">Develop k-Nearest Neighbors in Python From Scratch<\/a><\/li>\n<\/ul>\n<p>The Radius Neighbors Classifier is similar in that training involves storing the entire training dataset. The way that the training dataset is used during prediction is different.<\/p>\n<p>Instead of locating the k-neighbors, the Radius Neighbors Classifier locates all examples in the training dataset that are within a given radius of the new example. The radius neighbors are then used to make a prediction for the new example.<\/p>\n<p>The radius is defined in the feature space and generally assumes that the input variables are numeric and scaled to the range 0-1, e.g. normalized.<\/p>\n<p>The radius-based approach to locating neighbors is appropriate for those datasets where it is desirable for the contribution of neighbors to be proportional to the density of examples in the feature space.<\/p>\n<p>Given a fixed radius, dense regions of the feature space will contribute more information and sparse regions will contribute less information. It is this latter case that is most desirable and it prevents examples very far in feature space from the new example from contributing to the prediction.<\/p>\n<p>As such, the Radius Neighbors Classifier may be more appropriate for prediction problems where there are sparse regions of the feature space.<\/p>\n<p>Given that the radius is fixed in all dimensions of the feature space, it will become less effective as the number of input features is increased, which causes examples in the feature space to spread further and further apart. This property is referred to as the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Curse_of_dimensionality\">curse of dimensionality<\/a>.<\/p>\n<h2>Radius Neighbors Classifier With Scikit-Learn<\/h2>\n<p>The Radius Neighbors Classifier is available in the scikit-learn Python machine learning library via the <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.neighbors.RadiusNeighborsClassifier.html\">RadiusNeighborsClassifier class<\/a>.<\/p>\n<p>The class allows you to specify the size of the radius used when making a prediction via the &ldquo;<em>radius<\/em>&rdquo; argument, which defaults to 1.0.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">...\r\n# create the model\r\nmodel = RadiusNeighborsClassifier(radius=1.0)<\/pre>\n<p>Another important hyperparameter is the &ldquo;<em>weights<\/em>&rdquo; argument that controls whether neighbors contribute to the prediction in a &lsquo;<em>uniform<\/em>&lsquo; manner or inverse to the distance (&lsquo;<em>distance<\/em>&lsquo;) from the example. Uniform weight is used by default.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">...\r\n# create the model\r\nmodel = RadiusNeighborsClassifier(weights='uniform')<\/pre>\n<p>We can demonstrate the Radius Neighbors Classifier with a worked example.<\/p>\n<p>First, let&rsquo;s define a synthetic classification dataset.<\/p>\n<p>We will use the <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.datasets.make_classification.html\">make_classification() function<\/a> to create a dataset with 1,000 examples, each with 20 input variables.<\/p>\n<p>The example below creates and summarizes the dataset.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\"># test classification dataset\r\nfrom sklearn.datasets import make_classification\r\n# define dataset\r\nX, y = make_classification(n_samples=1000, n_features=20, n_informative=15, n_redundant=5, random_state=1)\r\n# summarize the dataset\r\nprint(X.shape, y.shape)<\/pre>\n<p>Running the example creates the dataset and confirms the number of rows and columns of the dataset.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">(1000, 20) (1000,)<\/pre>\n<p>We can fit and evaluate a Radius Neighbors Classifier model using repeated stratified k-fold cross-validation via the <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.model_selection.RepeatedStratifiedKFold.html\">RepeatedStratifiedKFold class<\/a>. We will use 10 folds and three repeats in the test harness.<\/p>\n<p>We will use the default configuration.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">...\r\n# create the model\r\nmodel = RadiusNeighborsClassifier()<\/pre>\n<p>It is important that the feature space is scaled prior to preparing and using the model.<\/p>\n<p>We can achieve this by using the <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.preprocessing.MinMaxScaler.html\">MinMaxScaler<\/a> to normalize the input features and use a <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.pipeline.Pipeline.html\">Pipeline<\/a> to first apply the scaling, then use the model.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">...\r\n# define model\r\nmodel = RadiusNeighborsClassifier()\r\n# create pipeline\r\npipeline = Pipeline(steps=[('norm', MinMaxScaler()),('model',model)])<\/pre>\n<p>The complete example of evaluating the Radius Neighbors Classifier model for the synthetic binary classification task is listed below.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\"># evaluate an radius neighbors classifier model on the dataset\r\nfrom numpy import mean\r\nfrom numpy import std\r\nfrom sklearn.datasets import make_classification\r\nfrom sklearn.model_selection import cross_val_score\r\nfrom sklearn.model_selection import RepeatedStratifiedKFold\r\nfrom sklearn.pipeline import Pipeline\r\nfrom sklearn.preprocessing import MinMaxScaler\r\nfrom sklearn.neighbors import RadiusNeighborsClassifier\r\n# define dataset\r\nX, y = make_classification(n_samples=1000, n_features=20, n_informative=15, n_redundant=5, random_state=1)\r\n# define model\r\nmodel = RadiusNeighborsClassifier()\r\n# create pipeline\r\npipeline = Pipeline(steps=[('norm', MinMaxScaler()),('model',model)])\r\n# define model evaluation method\r\ncv = RepeatedStratifiedKFold(n_splits=10, n_repeats=3, random_state=1)\r\n# evaluate model\r\nscores = cross_val_score(pipeline, X, y, scoring='accuracy', cv=cv, n_jobs=-1)\r\n# summarize result\r\nprint('Mean Accuracy: %.3f (%.3f)' % (mean(scores), std(scores)))<\/pre>\n<p>Running the example evaluates the Radius Neighbors Classifier algorithm on the synthetic dataset and reports the average accuracy across the three repeats of 10-fold cross-validation.<\/p>\n<p>Your specific results may vary given the stochastic nature of the learning algorithm. Consider running the example a few times.<\/p>\n<p>In this case, we can see that the model achieved a mean accuracy of about 75.4 percent.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">Mean Accuracy: 0.754 (0.042)<\/pre>\n<p>We may decide to use the Radius Neighbors Classifier as our final model and make predictions on new data.<\/p>\n<p>This can be achieved by fitting the model pipeline on all available data and calling the <em>predict()<\/em> function passing in a new row of data.<\/p>\n<p>We can demonstrate this with a complete example listed below.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\"># make a prediction with a radius neighbors classifier model on the dataset\r\nfrom sklearn.datasets import make_classification\r\nfrom sklearn.pipeline import Pipeline\r\nfrom sklearn.preprocessing import MinMaxScaler\r\nfrom sklearn.neighbors import RadiusNeighborsClassifier\r\n# define dataset\r\nX, y = make_classification(n_samples=1000, n_features=20, n_informative=15, n_redundant=5, random_state=1)\r\n# define model\r\nmodel = RadiusNeighborsClassifier()\r\n# create pipeline\r\npipeline = Pipeline(steps=[('norm', MinMaxScaler()),('model',model)])\r\n# fit model\r\npipeline.fit(X, y)\r\n# define new data\r\nrow = [2.47475454,0.40165523,1.68081787,2.88940715,0.91704519,-3.07950644,4.39961206,0.72464273,-4.86563631,-6.06338084,-1.22209949,-0.4699618,1.01222748,-0.6899355,-0.53000581,6.86966784,-3.27211075,-6.59044146,-2.21290585,-3.139579]\r\n# make a prediction\r\nyhat = pipeline.predict([row])\r\n# summarize prediction\r\nprint('Predicted Class: %d' % yhat)<\/pre>\n<p>Running the example fits the model and makes a class label prediction for a new row of data.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">Predicted Class: 0<\/pre>\n<p>Next, we can look at configuring the model hyperparameters.<\/p>\n<h2>Tune Radius Neighbors Classifier Hyperparameters<\/h2>\n<p>The hyperparameters for the Radius Neighbors Classifier method must be configured for your specific dataset.<\/p>\n<p>Perhaps the most important hyperparameter is the radius controlled via the &ldquo;<em>radius<\/em>&rdquo; argument. It is a good idea to test a range of values, perhaps around the value of 1.0.<\/p>\n<p>We will explore values between 0.8 and 1.5 with a grid of 0.01 on our synthetic dataset.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">...\r\n# define grid\r\ngrid = dict()\r\ngrid['model__radius'] = arange(0.8, 1.5, 0.01)<\/pre>\n<p>Note that we are grid searching the &ldquo;<em>radius<\/em>&rdquo; hyperparameter of the <em>RadiusNeighborsClassifier<\/em> within the <em>Pipeline<\/em> where the model is named &ldquo;<em>model<\/em>&rdquo; and, therefore, the radius parameter is accessed via <em>model-&gt;radius<\/em> with a double underscore (<em>__<\/em>) separator, e.g. &ldquo;<em>model__radius<\/em>&ldquo;.<\/p>\n<p>The example below demonstrates this using the <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.model_selection.GridSearchCV.html\">GridSearchCV class<\/a> with a grid of values we have defined.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\"># grid search radius for radius neighbors classifier\r\nfrom numpy import arange\r\nfrom sklearn.datasets import make_classification\r\nfrom sklearn.model_selection import GridSearchCV\r\nfrom sklearn.model_selection import RepeatedStratifiedKFold\r\nfrom sklearn.pipeline import Pipeline\r\nfrom sklearn.preprocessing import MinMaxScaler\r\nfrom sklearn.neighbors import RadiusNeighborsClassifier\r\n# define dataset\r\nX, y = make_classification(n_samples=1000, n_features=20, n_informative=15, n_redundant=5, random_state=1)\r\n# define model\r\nmodel = RadiusNeighborsClassifier()\r\n# create pipeline\r\npipeline = Pipeline(steps=[('norm', MinMaxScaler()),('model',model)])\r\n# define model evaluation method\r\ncv = RepeatedStratifiedKFold(n_splits=10, n_repeats=3, random_state=1)\r\n# define grid\r\ngrid = dict()\r\ngrid['model__radius'] = arange(0.8, 1.5, 0.01)\r\n# define search\r\nsearch = GridSearchCV(pipeline, grid, scoring='accuracy', cv=cv, n_jobs=-1)\r\n# perform the search\r\nresults = search.fit(X, y)\r\n# summarize\r\nprint('Mean Accuracy: %.3f' % results.best_score_)\r\nprint('Config: %s' % results.best_params_)<\/pre>\n<p>Running the example will evaluate each combination of configurations using repeated cross-validation.<\/p>\n<p>Your specific results may vary given the stochastic nature of the learning algorithm. Try running the example a few times.<\/p>\n<p>In this case, we can see that we achieved better results using a radius of 0.8 that gave an accuracy of about 87.2 percent compared to a radius of 1.0 in the previous example that gave an accuracy of about 75.4 percent.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">Mean Accuracy: 0.872\r\nConfig: {'model__radius': 0.8}<\/pre>\n<p>Another key hyperparameter is the manner in which examples in the radius contribute to the prediction via the &ldquo;<em>weights<\/em>&rdquo; argument. This can be set to &ldquo;<em>uniform<\/em>&rdquo; (the default), &ldquo;<em>distance<\/em>&rdquo; for inverse distance, or a custom function.<\/p>\n<p>We can test both of these built-in weightings and see which performs better with our radius of 0.8.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">...\r\n# define grid\r\ngrid = dict()\r\ngrid['model__weights'] = ['uniform', 'distance']<\/pre>\n<p>The complete example is listed below.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\"># grid search weights for radius neighbors classifier\r\nfrom sklearn.datasets import make_classification\r\nfrom sklearn.model_selection import GridSearchCV\r\nfrom sklearn.model_selection import RepeatedStratifiedKFold\r\nfrom sklearn.pipeline import Pipeline\r\nfrom sklearn.preprocessing import MinMaxScaler\r\nfrom sklearn.neighbors import RadiusNeighborsClassifier\r\n# define dataset\r\nX, y = make_classification(n_samples=1000, n_features=20, n_informative=15, n_redundant=5, random_state=1)\r\n# define model\r\nmodel = RadiusNeighborsClassifier(radius=0.8)\r\n# create pipeline\r\npipeline = Pipeline(steps=[('norm', MinMaxScaler()),('model',model)])\r\n# define model evaluation method\r\ncv = RepeatedStratifiedKFold(n_splits=10, n_repeats=3, random_state=1)\r\n# define grid\r\ngrid = dict()\r\ngrid['model__weights'] = ['uniform', 'distance']\r\n# define search\r\nsearch = GridSearchCV(pipeline, grid, scoring='accuracy', cv=cv, n_jobs=-1)\r\n# perform the search\r\nresults = search.fit(X, y)\r\n# summarize\r\nprint('Mean Accuracy: %.3f' % results.best_score_)\r\nprint('Config: %s' % results.best_params_)<\/pre>\n<p>Running the example fits the model and discovers the hyperparameters that give the best results using cross-validation.<\/p>\n<p>Your specific results may vary given the stochastic nature of the learning algorithm. Try running the example a few times.<\/p>\n<p>In this case, we can see an additional lift in mean classification accuracy from about 87.2 percent with &lsquo;<em>uniform<\/em>&lsquo; weights in the previous example to about 89.3 percent with &lsquo;<em>distance<\/em>&lsquo; weights in this case.<\/p>\n<pre class=\"urvanov-syntax-highlighter-plain-tag\">Mean Accuracy: 0.893\r\nConfig: {'model__weights': 'distance'}<\/pre>\n<p>Another metric that you might wish to explore is the distance metric used via the &lsquo;<em>metric<\/em>&lsquo; argument that defaults to &lsquo;<em>minkowski<\/em>&lsquo;.<\/p>\n<p>It might be interesting to compare results to &lsquo;<em>euclidean<\/em>&lsquo; distance and perhaps &lsquo;<em>cityblock<\/em>&lsquo;.<\/p>\n<h2>Further Reading<\/h2>\n<p>This section provides more resources on the topic if you are looking to go deeper.<\/p>\n<h3>Tutorials<\/h3>\n<ul>\n<li><a href=\"https:\/\/machinelearningmastery.com\/k-nearest-neighbors-for-machine-learning\/\">k-Nearest Neighbors for Machine Learning<\/a><\/li>\n<li><a href=\"https:\/\/machinelearningmastery.com\/tutorial-to-implement-k-nearest-neighbors-in-python-from-scratch\/\">Develop k-Nearest Neighbors in Python From Scratch<\/a><\/li>\n<\/ul>\n<h3>Books<\/h3>\n<ul>\n<li><a href=\"https:\/\/amzn.to\/2wfqnw0\">Applied Predictive Modeling<\/a>, 2013.<\/li>\n<li><a href=\"https:\/\/amzn.to\/2xW4hPy\">An Introduction to Statistical Learning with Applications in R<\/a>, 2014.<\/li>\n<\/ul>\n<h3>APIs<\/h3>\n<ul>\n<li><a href=\"https:\/\/scikit-learn.org\/stable\/modules\/neighbors.html\">Nearest Neighbors, Scikit-Learn User Guide<\/a>.<\/li>\n<li><a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.neighbors.RadiusNeighborsClassifier.html\">sklearn.neighbors.RadiusNeighborsClassifier API<\/a>.<\/li>\n<li><a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.pipeline.Pipeline.html\">sklearn.pipeline.Pipeline API<\/a>.<\/li>\n<li><a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.preprocessing.MinMaxScaler.html\">sklearn.preprocessing.MinMaxScaler API<\/a>.<\/li>\n<\/ul>\n<h3>Articles<\/h3>\n<ul>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/K-nearest_neighbors_algorithm\">k-nearest neighbors algorithm, Wikipedia<\/a>.<\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Curse_of_dimensionality\">Curse of dimensionality, Wikipedia<\/a>.<\/li>\n<\/ul>\n<h2>Summary<\/h2>\n<p>In this tutorial, you discovered the Radius Neighbors Classifier classification machine learning algorithm.<\/p>\n<p>Specifically, you learned:<\/p>\n<ul>\n<li>The Nearest Radius Neighbors Classifier is a simple extension of the k-nearest neighbors classification algorithm.<\/li>\n<li>How to fit, evaluate, and make predictions with the Radius Neighbors Classifier model with Scikit-Learn.<\/li>\n<li>How to tune the hyperparameters of the Radius Neighbors Classifier algorithm on a given dataset.<\/li>\n<\/ul>\n<p><strong>Do you have any questions?<\/strong><br \/>\nAsk your questions in the comments below and I will do my best to answer.<\/p>\n<p>The post <a rel=\"nofollow\" href=\"https:\/\/machinelearningmastery.com\/radius-neighbors-classifier-algorithm-with-python\/\">Radius Neighbors Classifier Algorithm With Python<\/a> appeared first on <a rel=\"nofollow\" href=\"https:\/\/machinelearningmastery.com\/\">Machine Learning Mastery<\/a>.<\/p>\n<\/div>\n<p><a href=\"https:\/\/machinelearningmastery.com\/radius-neighbors-classifier-algorithm-with-python\/\">Go to Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Author: Jason Brownlee Radius Neighbors Classifier is a classification machine learning algorithm. It is an extension to the k-nearest neighbors algorithm that makes predictions using [&hellip;] <span class=\"read-more-link\"><a class=\"read-more\" href=\"https:\/\/www.aiproblog.com\/index.php\/2020\/09\/29\/radius-neighbors-classifier-algorithm-with-python\/\">Read More<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":3919,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[24],"tags":[],"_links":{"self":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/3918"}],"collection":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/comments?post=3918"}],"version-history":[{"count":0,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/posts\/3918\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media\/3919"}],"wp:attachment":[{"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/media?parent=3918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/categories?post=3918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiproblog.com\/index.php\/wp-json\/wp\/v2\/tags?post=3918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}