Парсинг веб-страниц


In [92]:
import requests
from bs4 import BeautifulSoup

3a. Парсинг заголовков верхнего уровня со страницы https://en.wikipedia.org/wiki/Bias-variance_tradeoff

Выполним запрос указанной страницы и проверим, что она доступна


In [93]:
req = requests.get('https://en.wikipedia.org/wiki/Bias-variance_tradeoff')
print req


<Response [200]>

Создадим парсер для страницы и выведем содержимое страницы


In [136]:
parser = BeautifulSoup(req.text, 'lxml')
print parser.prettify()


<!DOCTYPE html>
<html class="client-nojs" dir="ltr" lang="en">
 <head>
  <meta charset="utf-8"/>
  <title>
   Category:Machine learning algorithms - Wikipedia
  </title>
  <script>
   document.documentElement.className = document.documentElement.className.replace( /(^|\s)client-nojs(\s|$)/, "$1client-js$2" );
  </script>
  <script>
   (window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgCanonicalNamespace":"Category","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":14,"wgPageName":"Category:Machine_learning_algorithms","wgTitle":"Machine learning algorithms","wgCurRevisionId":675167466,"wgRevisionId":675167466,"wgArticleId":33547228,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Commons category without a link on Wikidata","Machine learning","Algorithms"],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"Category:Machine_learning_algorithms","wgRelevantArticleId":33547228,"wgRequestId":"WGfJTQpAIDMAAHejR-YAAAAJ","wgIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgFlaggedRevsParams":{"tags":{}},"wgStableRevisionId":null,"wgWikiEditorEnabledModules":{"toolbar":true,"dialogs":true,"preview":false,"publish":false},"wgBetaFeaturesFeatures":[],"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","usePageImages":true,"usePageDescriptions":true},"wgPreferredVariant":"en","wgMFDisplayWikibaseDescriptions":{"search":true,"nearby":true,"watchlist":true,"tagline":false},"wgRelatedArticles":null,"wgRelatedArticlesUseCirrusSearch":true,"wgRelatedArticlesOnlyUseCirrusSearch":false,"wgULSCurrentAutonym":"English","wgNoticeProject":"wikipedia","wgCentralNoticeCookiesToDelete":[],"wgCentralNoticeCategoriesUsingLegacy":["Fundraising","fundraising"],"wgCategoryTreePageCategoryOptions":"{\"mode\":0,\"hideprefix\":20,\"showcount\":true,\"namespaces\":false}","wgWikibaseItemId":"Q8592571","wgCentralAuthMobileDomain":false,"wgVisualEditorToolbarScrollOffset":0,"wgEditSubmitButtonLabelPublish":false});mw.loader.state({"ext.globalCssJs.user.styles":"ready","ext.globalCssJs.site.styles":"ready","site.styles":"ready","noscript":"ready","user.styles":"ready","user":"ready","user.options":"loading","user.tokens":"loading","mediawiki.action.view.categoryPage.styles":"ready","ext.categoryTree.css":"ready","mediawiki.helplink":"ready","wikibase.client.init":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","ext.tmh.thumbnail.styles":"ready","ext.wikimediaBadges":"ready","mediawiki.legacy.shared":"ready","mediawiki.legacy.commonPrint":"ready","mediawiki.sectionAnchor":"ready","mediawiki.skinning.interface":"ready","skins.vector.styles":"ready","ext.globalCssJs.user":"ready","ext.globalCssJs.site":"ready"});mw.loader.implement("user.options@0j3lz3q",function($,jQuery,require,module){mw.user.options.set({"variant":"en"});});mw.loader.implement("user.tokens@1dqfd7l",function ( $, jQuery, require, module ) {
mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});/*@nomin*/;

});mw.loader.load(["mediawiki.action.view.postEdit","ext.categoryTree","site","mediawiki.page.startup","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.legacy.wikibits","mediawiki.searchSuggest","ext.gadget.teahouse","ext.gadget.ReferenceTooltips","ext.gadget.watchlist-notice","ext.gadget.DRN-wizard","ext.gadget.charinsert","ext.gadget.refToolbar","ext.gadget.extra-toolbar-buttons","ext.gadget.switcher","ext.gadget.featured-articles-links","ext.centralauth.centralautologin","mmv.head","mmv.bootstrap.autostart","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.eventLogging.subscriber","ext.wikimediaEvents","ext.navigationTiming","ext.uls.eventlogger","ext.uls.init","ext.uls.interface","ext.centralNotice.geoIP","ext.centralNotice.startUp","mw.MediaWikiPlayer.loader","mw.PopUpMediaTransform","skins.vector.js"]);});
  </script>
  <link href="/w/load.php?debug=false&amp;lang=en&amp;modules=ext.categoryTree.css%7Cext.tmh.thumbnail.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cmediawiki.action.view.categoryPage.styles%7Cmediawiki.helplink%2CsectionAnchor%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cskins.vector.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector" rel="stylesheet"/>
  <script async="" src="/w/load.php?debug=false&amp;lang=en&amp;modules=startup&amp;only=scripts&amp;skin=vector">
  </script>
  <meta content="" name="ResourceLoaderDynamicStyles"/>
  <link href="/w/load.php?debug=false&amp;lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector" rel="stylesheet"/>
  <meta content="MediaWiki 1.29.0-wmf.6" name="generator"/>
  <meta content="origin-when-cross-origin" name="referrer"/>
  <link href="/w/index.php?title=Category:Machine_learning_algorithms&amp;action=edit" rel="alternate" title="Edit this page" type="application/x-wiki"/>
  <link href="/w/index.php?title=Category:Machine_learning_algorithms&amp;action=edit" rel="edit" title="Edit this page"/>
  <link href="/static/apple-touch/wikipedia.png" rel="apple-touch-icon"/>
  <link href="/static/favicon/wikipedia.ico" rel="shortcut icon"/>
  <link href="/w/opensearch_desc.php" rel="search" title="Wikipedia (en)" type="application/opensearchdescription+xml"/>
  <link href="//en.wikipedia.org/w/api.php?action=rsd" rel="EditURI" type="application/rsd+xml"/>
  <link href="//creativecommons.org/licenses/by-sa/3.0/" rel="copyright"/>
  <link href="/w/index.php?title=Special:RecentChanges&amp;feed=atom" rel="alternate" title="Wikipedia Atom feed" type="application/atom+xml"/>
  <link href="https://en.wikipedia.org/wiki/Category:Machine_learning_algorithms" rel="canonical"/>
  <link href="//login.wikimedia.org" rel="dns-prefetch"/>
  <link href="//meta.wikimedia.org" rel="dns-prefetch"/>
 </head>
 <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-14 ns-subject page-Category_Machine_learning_algorithms rootpage-Category_Machine_learning_algorithms skin-vector action-view">
  <div class="noprint" id="mw-page-base">
  </div>
  <div class="noprint" id="mw-head-base">
  </div>
  <div class="mw-body" id="content" role="main">
   <a id="top">
   </a>
   <div id="siteNotice">
    <!-- CentralNotice -->
   </div>
   <div class="mw-indicators">
    <div class="mw-indicator" id="mw-indicator-mw-helplink">
     <a class="mw-helplink" href="//www.mediawiki.org/wiki/Special:MyLanguage/Help:Categories" target="_blank">
      Help
     </a>
    </div>
   </div>
   <h1 class="firstHeading" id="firstHeading" lang="en">
    Category:Machine learning algorithms
   </h1>
   <div class="mw-body-content" id="bodyContent">
    <div id="siteSub">
     From Wikipedia, the free encyclopedia
    </div>
    <div id="contentSub">
    </div>
    <div class="mw-jump" id="jump-to-nav">
     Jump to:
     <a href="#mw-head">
      navigation
     </a>
     ,
     <a href="#p-search">
      search
     </a>
    </div>
    <div class="mw-content-ltr" dir="ltr" id="mw-content-text" lang="en">
     <script>
      function mfTempOpenSection(id){var block=document.getElementById("mf-section-"+id);block.className+=" open-block";block.previousSibling.className+=" open-block";}
     </script>
     <div class="hatnote selfreference">
      See also: the categories
      <wbr>
      </wbr>
      <a href="/wiki/Category:Data_mining" title="Category:Data mining">
       Data mining
      </a>
      ,
      <wbr>
      </wbr>
      <a href="/wiki/Category:Classification_algorithms" title="Category:Classification algorithms">
       Classification algorithms
      </a>
      , and
      <wbr>
      </wbr>
      <a href="/wiki/Category:Decision_trees" title="Category:Decision trees">
       Decision trees
      </a>
      .
     </div>
     <table class="mbox-small plainlinks sistersitebox" role="presentation" style="border:1px solid #aaa;background-color:#f9f9f9">
      <tr>
       <td class="mbox-image">
        <a class="image" href="/wiki/File:Commons-logo.svg">
         <img alt="" class="noviewer" data-file-height="1376" data-file-width="1024" height="40" src="//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png" srcset="//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/45px-Commons-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/59px-Commons-logo.svg.png 2x" width="30"/>
        </a>
       </td>
       <td class="mbox-text plainlist">
        Wikimedia Commons has media related to
        <i>
         <b>
          <a class="extiw" href="https://commons.wikimedia.org/wiki/Category:Machine_learning_algorithms" title="commons:Category:Machine learning algorithms">
           Machine learning algorithms
          </a>
         </b>
        </i>
        .
       </td>
      </tr>
     </table>
     <!-- 
NewPP limit report
Parsed by mw1214
Cached time: 20161224134034
Cache expiry: 2592000
Dynamic content: false
CPU time usage: 0.028 seconds
Real time usage: 0.042 seconds
Preprocessor visited node count: 193/1000000
Preprocessor generated node count: 0/1500000
Post‐expand include size: 3261/2097152 bytes
Template argument size: 390/2097152 bytes
Highest expansion depth: 9/40
Expensive parser function count: 0/500
Lua time usage: 0.005/10.000 seconds
Lua memory usage: 612 KB/50 MB
-->
     <!-- 
Transclusion expansion time report (%,ms,calls,template)
100.00%   35.540      1 - -total
 53.02%   18.844      1 - Template:Cat_see_also
 46.82%   16.639      1 - Template:Commons_category
 42.68%   15.169      1 - Template:Pagelist
 23.69%    8.418      1 - Template:Commons
 20.36%    7.237      1 - Template:Sister_project
 15.29%    5.434      1 - Template:Side_box
-->
     <!-- Saved in parser cache with key enwiki:pcache:idhash:33547228-0!*!0!*!*!4!* and timestamp 20161224134034 and revision id 675167466
 -->
     <div class="mw-category-generated" dir="ltr" lang="en">
      <div id="mw-subcategories">
       <h2>
        Subcategories
       </h2>
       <p>
        This category has only the following subcategory.
       </p>
       <div class="mw-content-ltr" dir="ltr" lang="en">
        <h3>
         G
        </h3>
        <ul>
         <li>
          <div class="CategoryTreeSection">
           <div class="CategoryTreeItem">
            <span class="CategoryTreeBullet">
             <span class="CategoryTreeToggle" data-ct-state="collapsed" data-ct-title="Genetic_algorithms" style="display: none;" title="expand">
              ►
             </span>
            </span>
            <a class="CategoryTreeLabel CategoryTreeLabelNs14 CategoryTreeLabelCategory" href="/wiki/Category:Genetic_algorithms">
             Genetic algorithms
            </a>
            ‎
            <span dir="ltr" title="Contains 2 subcategories, 41 pages, and 0 files">
             (2 C, 41 P)
            </span>
           </div>
           <div class="CategoryTreeChildren" style="display:none">
           </div>
          </div>
         </li>
        </ul>
       </div>
      </div>
      <div id="mw-pages">
       <h2>
        <span id="Pages_in_category">
        </span>
        Pages in category "Machine learning algorithms"
       </h2>
       <p>
        The following 55 pages are in this category, out of 55 total. This list may not reflect recent changes (
        <a href="/wiki/Wikipedia:FAQ/Categorization#Why_might_a_category_list_not_be_up_to_date.3F" title="Wikipedia:FAQ/Categorization">
         learn more
        </a>
        ).
       </p>
       <div class="mw-content-ltr" dir="ltr" lang="en">
        <div class="mw-category">
         <div class="mw-category-group">
          <h3>
           *
          </h3>
          <ul>
           <li>
            <a href="/wiki/List_of_machine_learning_concepts" title="List of machine learning concepts">
             List of machine learning concepts
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           A
          </h3>
          <ul>
           <li>
            <a href="/wiki/Almeida%E2%80%93Pineda_recurrent_backpropagation" title="Almeida–Pineda recurrent backpropagation">
             Almeida–Pineda recurrent backpropagation
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           B
          </h3>
          <ul>
           <li>
            <a href="/wiki/Backpropagation" title="Backpropagation">
             Backpropagation
            </a>
           </li>
           <li>
            <a href="/wiki/Bootstrap_aggregating" title="Bootstrap aggregating">
             Bootstrap aggregating
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           C
          </h3>
          <ul>
           <li>
            <a href="/wiki/CN2_algorithm" title="CN2 algorithm">
             CN2 algorithm
            </a>
           </li>
           <li>
            <a href="/wiki/Constructing_skill_trees" title="Constructing skill trees">
             Constructing skill trees
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           D
          </h3>
          <ul>
           <li>
            <a href="/wiki/Dehaene%E2%80%93Changeux_model" title="Dehaene–Changeux model">
             Dehaene–Changeux model
            </a>
           </li>
           <li>
            <a href="/wiki/Diffusion_map" title="Diffusion map">
             Diffusion map
            </a>
           </li>
           <li>
            <a href="/wiki/Dominance-based_rough_set_approach" title="Dominance-based rough set approach">
             Dominance-based rough set approach
            </a>
           </li>
           <li>
            <a href="/wiki/Dynamic_time_warping" title="Dynamic time warping">
             Dynamic time warping
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           E
          </h3>
          <ul>
           <li>
            <a href="/wiki/Error-driven_learning" title="Error-driven learning">
             Error-driven learning
            </a>
           </li>
           <li>
            <a href="/wiki/Evolutionary_multimodal_optimization" title="Evolutionary multimodal optimization">
             Evolutionary multimodal optimization
            </a>
           </li>
           <li>
            <a href="/wiki/Expectation%E2%80%93maximization_algorithm" title="Expectation–maximization algorithm">
             Expectation–maximization algorithm
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           F
          </h3>
          <ul>
           <li>
            <a href="/wiki/FastICA" title="FastICA">
             FastICA
            </a>
           </li>
           <li>
            <a href="/wiki/Forward%E2%80%93backward_algorithm" title="Forward–backward algorithm">
             Forward–backward algorithm
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           G
          </h3>
          <ul>
           <li>
            <a href="/wiki/GeneRec" title="GeneRec">
             GeneRec
            </a>
           </li>
           <li>
            <a href="/wiki/Genetic_Algorithm_for_Rule_Set_Production" title="Genetic Algorithm for Rule Set Production">
             Genetic Algorithm for Rule Set Production
            </a>
           </li>
           <li>
            <a href="/wiki/Growing_self-organizing_map" title="Growing self-organizing map">
             Growing self-organizing map
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           H
          </h3>
          <ul>
           <li>
            <a href="/wiki/HEXQ" title="HEXQ">
             HEXQ
            </a>
           </li>
           <li>
            <a href="/wiki/Hyper_basis_function_network" title="Hyper basis function network">
             Hyper basis function network
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           I
          </h3>
          <ul>
           <li>
            <a href="/wiki/IDistance" title="IDistance">
             IDistance
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           K
          </h3>
          <ul>
           <li>
            <a href="/wiki/K-nearest_neighbors_algorithm" title="K-nearest neighbors algorithm">
             K-nearest neighbors algorithm
            </a>
           </li>
           <li>
            <a href="/wiki/Kernel_methods_for_vector_output" title="Kernel methods for vector output">
             Kernel methods for vector output
            </a>
           </li>
           <li>
            <a href="/wiki/Kernel_principal_component_analysis" title="Kernel principal component analysis">
             Kernel principal component analysis
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           L
          </h3>
          <ul>
           <li>
            <a href="/wiki/Leabra" title="Leabra">
             Leabra
            </a>
           </li>
           <li>
            <a href="/wiki/Linde%E2%80%93Buzo%E2%80%93Gray_algorithm" title="Linde–Buzo–Gray algorithm">
             Linde–Buzo–Gray algorithm
            </a>
           </li>
           <li>
            <a href="/wiki/Local_outlier_factor" title="Local outlier factor">
             Local outlier factor
            </a>
           </li>
           <li>
            <a href="/wiki/Logic_learning_machine" title="Logic learning machine">
             Logic learning machine
            </a>
           </li>
           <li>
            <a href="/wiki/LogitBoost" title="LogitBoost">
             LogitBoost
            </a>
           </li>
           <li>
            <a href="/wiki/Loss_functions_for_classification" title="Loss functions for classification">
             Loss functions for classification
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           M
          </h3>
          <ul>
           <li>
            <a href="/wiki/Manifold_alignment" title="Manifold alignment">
             Manifold alignment
            </a>
           </li>
           <li>
            <a href="/wiki/Minimum_redundancy_feature_selection" title="Minimum redundancy feature selection">
             Minimum redundancy feature selection
            </a>
           </li>
           <li>
            <a href="/wiki/Multiple_kernel_learning" title="Multiple kernel learning">
             Multiple kernel learning
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           N
          </h3>
          <ul>
           <li>
            <a href="/wiki/Non-negative_matrix_factorization" title="Non-negative matrix factorization">
             Non-negative matrix factorization
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           O
          </h3>
          <ul>
           <li>
            <a href="/wiki/Online_machine_learning" title="Online machine learning">
             Online machine learning
            </a>
           </li>
           <li>
            <a href="/wiki/Out-of-bag_error" title="Out-of-bag error">
             Out-of-bag error
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           P
          </h3>
          <ul>
           <li>
            <a href="/wiki/Prefrontal_cortex_basal_ganglia_working_memory" title="Prefrontal cortex basal ganglia working memory">
             Prefrontal cortex basal ganglia working memory
            </a>
           </li>
           <li>
            <a href="/wiki/PVLV" title="PVLV">
             PVLV
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           Q
          </h3>
          <ul>
           <li>
            <a href="/wiki/Q-learning" title="Q-learning">
             Q-learning
            </a>
           </li>
           <li>
            <a href="/wiki/Quadratic_unconstrained_binary_optimization" title="Quadratic unconstrained binary optimization">
             Quadratic unconstrained binary optimization
            </a>
           </li>
           <li>
            <a href="/wiki/Query_level_feature" title="Query level feature">
             Query level feature
            </a>
           </li>
           <li>
            <a href="/wiki/Quickprop" title="Quickprop">
             Quickprop
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           R
          </h3>
          <ul>
           <li>
            <a href="/wiki/Radial_basis_function_network" title="Radial basis function network">
             Radial basis function network
            </a>
           </li>
           <li>
            <a href="/wiki/Randomized_weighted_majority_algorithm" title="Randomized weighted majority algorithm">
             Randomized weighted majority algorithm
            </a>
           </li>
           <li>
            <a href="/wiki/Reinforcement_learning" title="Reinforcement learning">
             Reinforcement learning
            </a>
           </li>
           <li>
            <a href="/wiki/Rprop" title="Rprop">
             Rprop
            </a>
           </li>
           <li>
            <a href="/wiki/Rule-based_machine_learning" title="Rule-based machine learning">
             Rule-based machine learning
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           S
          </h3>
          <ul>
           <li>
            <a href="/wiki/Skill_chaining" title="Skill chaining">
             Skill chaining
            </a>
           </li>
           <li>
            <a href="/wiki/Sparse_PCA" title="Sparse PCA">
             Sparse PCA
            </a>
           </li>
           <li>
            <a href="/wiki/State-Action-Reward-State-Action" title="State-Action-Reward-State-Action">
             State-Action-Reward-State-Action
            </a>
           </li>
           <li>
            <a href="/wiki/Stochastic_gradient_descent" title="Stochastic gradient descent">
             Stochastic gradient descent
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           T
          </h3>
          <ul>
           <li>
            <a href="/wiki/T-distributed_stochastic_neighbor_embedding" title="T-distributed stochastic neighbor embedding">
             T-distributed stochastic neighbor embedding
            </a>
           </li>
           <li>
            <a href="/wiki/Temporal_difference_learning" title="Temporal difference learning">
             Temporal difference learning
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           W
          </h3>
          <ul>
           <li>
            <a href="/wiki/Wake-sleep_algorithm" title="Wake-sleep algorithm">
             Wake-sleep algorithm
            </a>
           </li>
           <li>
            <a href="/wiki/Weighted_Majority_Algorithm" title="Weighted Majority Algorithm">
             Weighted Majority Algorithm
            </a>
           </li>
          </ul>
         </div>
        </div>
       </div>
      </div>
     </div>
     <noscript>
      <img alt="" height="1" src="//en.wikipedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" style="border: none; position: absolute;" title="" width="1"/>
     </noscript>
    </div>
    <div class="printfooter">
     Retrieved from "
     <a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Category:Machine_learning_algorithms&amp;oldid=675167466">
      https://en.wikipedia.org/w/index.php?title=Category:Machine_learning_algorithms&amp;oldid=675167466
     </a>
     "
    </div>
    <div class="catlinks" data-mw="interface" id="catlinks">
     <div class="mw-normal-catlinks" id="mw-normal-catlinks">
      <a href="/wiki/Help:Category" title="Help:Category">
       Categories
      </a>
      :
      <ul>
       <li>
        <a href="/wiki/Category:Machine_learning" title="Category:Machine learning">
         Machine learning
        </a>
       </li>
       <li>
        <a href="/wiki/Category:Algorithms" title="Category:Algorithms">
         Algorithms
        </a>
       </li>
      </ul>
     </div>
     <div class="mw-hidden-catlinks mw-hidden-cats-ns-shown" id="mw-hidden-catlinks">
      Hidden categories:
      <ul>
       <li>
        <a href="/wiki/Category:Commons_category_without_a_link_on_Wikidata" title="Category:Commons category without a link on Wikidata">
         Commons category without a link on Wikidata
        </a>
       </li>
      </ul>
     </div>
    </div>
    <div class="visualClear">
    </div>
   </div>
  </div>
  <div id="mw-navigation">
   <h2>
    Navigation menu
   </h2>
   <div id="mw-head">
    <div aria-labelledby="p-personal-label" class="" id="p-personal" role="navigation">
     <h3 id="p-personal-label">
      Personal tools
     </h3>
     <ul>
      <li id="pt-anonuserpage">
       Not logged in
      </li>
      <li id="pt-anontalk">
       <a accesskey="n" href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]">
        Talk
       </a>
      </li>
      <li id="pt-anoncontribs">
       <a accesskey="y" href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]">
        Contributions
       </a>
      </li>
      <li id="pt-createaccount">
       <a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Category%3AMachine+learning+algorithms" title="You are encouraged to create an account and log in; however, it is not mandatory">
        Create account
       </a>
      </li>
      <li id="pt-login">
       <a accesskey="o" href="/w/index.php?title=Special:UserLogin&amp;returnto=Category%3AMachine+learning+algorithms" title="You're encouraged to log in; however, it's not mandatory. [o]">
        Log in
       </a>
      </li>
     </ul>
    </div>
    <div id="left-navigation">
     <div aria-labelledby="p-namespaces-label" class="vectorTabs" id="p-namespaces" role="navigation">
      <h3 id="p-namespaces-label">
       Namespaces
      </h3>
      <ul>
       <li class="selected" id="ca-nstab-category">
        <span>
         <a accesskey="c" href="/wiki/Category:Machine_learning_algorithms" title="View the category page [c]">
          Category
         </a>
        </span>
       </li>
       <li class="new" id="ca-talk">
        <span>
         <a accesskey="t" href="/w/index.php?title=Category_talk:Machine_learning_algorithms&amp;action=edit&amp;redlink=1" rel="discussion" title="Discussion about the content page [t]">
          Talk
         </a>
        </span>
       </li>
      </ul>
     </div>
     <div aria-labelledby="p-variants-label" class="vectorMenu emptyPortlet" id="p-variants" role="navigation">
      <h3 id="p-variants-label">
       <span>
        Variants
       </span>
       <a href="#">
       </a>
      </h3>
      <div class="menu">
       <ul>
       </ul>
      </div>
     </div>
    </div>
    <div id="right-navigation">
     <div aria-labelledby="p-views-label" class="vectorTabs" id="p-views" role="navigation">
      <h3 id="p-views-label">
       Views
      </h3>
      <ul>
       <li class="selected" id="ca-view">
        <span>
         <a href="/wiki/Category:Machine_learning_algorithms">
          Read
         </a>
        </span>
       </li>
       <li id="ca-edit">
        <span>
         <a accesskey="e" href="/w/index.php?title=Category:Machine_learning_algorithms&amp;action=edit" title="Edit this page [e]">
          Edit
         </a>
        </span>
       </li>
       <li class="collapsible" id="ca-history">
        <span>
         <a accesskey="h" href="/w/index.php?title=Category:Machine_learning_algorithms&amp;action=history" title="Past revisions of this page [h]">
          View history
         </a>
        </span>
       </li>
      </ul>
     </div>
     <div aria-labelledby="p-cactions-label" class="vectorMenu emptyPortlet" id="p-cactions" role="navigation">
      <h3 id="p-cactions-label">
       <span>
        More
       </span>
       <a href="#">
       </a>
      </h3>
      <div class="menu">
       <ul>
       </ul>
      </div>
     </div>
     <div id="p-search" role="search">
      <h3>
       <label for="searchInput">
        Search
       </label>
      </h3>
      <form action="/w/index.php" id="searchform">
       <div id="simpleSearch">
        <input accesskey="f" id="searchInput" name="search" placeholder="Search Wikipedia" title="Search Wikipedia [f]" type="search"/>
        <input name="title" type="hidden" value="Special:Search"/>
        <input class="searchButton mw-fallbackSearchButton" id="mw-searchButton" name="fulltext" title="Search Wikipedia for this text" type="submit" value="Search"/>
        <input class="searchButton" id="searchButton" name="go" title="Go to a page with this exact name if it exists" type="submit" value="Go"/>
       </div>
      </form>
     </div>
    </div>
   </div>
   <div id="mw-panel">
    <div id="p-logo" role="banner">
     <a class="mw-wiki-logo" href="/wiki/Main_Page" title="Visit the main page">
     </a>
    </div>
    <div aria-labelledby="p-navigation-label" class="portal" id="p-navigation" role="navigation">
     <h3 id="p-navigation-label">
      Navigation
     </h3>
     <div class="body">
      <ul>
       <li id="n-mainpage-description">
        <a accesskey="z" href="/wiki/Main_Page" title="Visit the main page [z]">
         Main page
        </a>
       </li>
       <li id="n-contents">
        <a href="/wiki/Portal:Contents" title="Guides to browsing Wikipedia">
         Contents
        </a>
       </li>
       <li id="n-featuredcontent">
        <a href="/wiki/Portal:Featured_content" title="Featured content – the best of Wikipedia">
         Featured content
        </a>
       </li>
       <li id="n-currentevents">
        <a href="/wiki/Portal:Current_events" title="Find background information on current events">
         Current events
        </a>
       </li>
       <li id="n-randompage">
        <a accesskey="x" href="/wiki/Special:Random" title="Load a random article [x]">
         Random article
        </a>
       </li>
       <li id="n-sitesupport">
        <a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en" title="Support us">
         Donate to Wikipedia
        </a>
       </li>
       <li id="n-shoplink">
        <a href="//shop.wikimedia.org" title="Visit the Wikipedia store">
         Wikipedia store
        </a>
       </li>
      </ul>
     </div>
    </div>
    <div aria-labelledby="p-interaction-label" class="portal" id="p-interaction" role="navigation">
     <h3 id="p-interaction-label">
      Interaction
     </h3>
     <div class="body">
      <ul>
       <li id="n-help">
        <a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia">
         Help
        </a>
       </li>
       <li id="n-aboutsite">
        <a href="/wiki/Wikipedia:About" title="Find out about Wikipedia">
         About Wikipedia
        </a>
       </li>
       <li id="n-portal">
        <a href="/wiki/Wikipedia:Community_portal" title="About the project, what you can do, where to find things">
         Community portal
        </a>
       </li>
       <li id="n-recentchanges">
        <a accesskey="r" href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]">
         Recent changes
        </a>
       </li>
       <li id="n-contactpage">
        <a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia">
         Contact page
        </a>
       </li>
      </ul>
     </div>
    </div>
    <div aria-labelledby="p-tb-label" class="portal" id="p-tb" role="navigation">
     <h3 id="p-tb-label">
      Tools
     </h3>
     <div class="body">
      <ul>
       <li id="t-whatlinkshere">
        <a accesskey="j" href="/wiki/Special:WhatLinksHere/Category:Machine_learning_algorithms" title="List of all English Wikipedia pages containing links to this page [j]">
         What links here
        </a>
       </li>
       <li id="t-recentchangeslinked">
        <a accesskey="k" href="/wiki/Special:RecentChangesLinked/Category:Machine_learning_algorithms" rel="nofollow" title="Recent changes in pages linked from this page [k]">
         Related changes
        </a>
       </li>
       <li id="t-upload">
        <a accesskey="u" href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]">
         Upload file
        </a>
       </li>
       <li id="t-specialpages">
        <a accesskey="q" href="/wiki/Special:SpecialPages" title="A list of all special pages [q]">
         Special pages
        </a>
       </li>
       <li id="t-permalink">
        <a href="/w/index.php?title=Category:Machine_learning_algorithms&amp;oldid=675167466" title="Permanent link to this revision of the page">
         Permanent link
        </a>
       </li>
       <li id="t-info">
        <a href="/w/index.php?title=Category:Machine_learning_algorithms&amp;action=info" title="More information about this page">
         Page information
        </a>
       </li>
       <li id="t-wikibase">
        <a accesskey="g" href="https://www.wikidata.org/wiki/Q8592571" title="Link to connected data repository item [g]">
         Wikidata item
        </a>
       </li>
      </ul>
     </div>
    </div>
    <div aria-labelledby="p-coll-print_export-label" class="portal" id="p-coll-print_export" role="navigation">
     <h3 id="p-coll-print_export-label">
      Print/export
     </h3>
     <div class="body">
      <ul>
       <li id="coll-create_a_book">
        <a href="/w/index.php?title=Special:Book&amp;bookcmd=book_creator&amp;referer=Category%3AMachine+learning+algorithms">
         Create a book
        </a>
       </li>
       <li id="coll-download-as-rdf2latex">
        <a href="/w/index.php?title=Special:Book&amp;bookcmd=render_article&amp;arttitle=Category%3AMachine+learning+algorithms&amp;returnto=Category%3AMachine+learning+algorithms&amp;oldid=675167466&amp;writer=rdf2latex">
         Download as PDF
        </a>
       </li>
       <li id="t-print">
        <a accesskey="p" href="/w/index.php?title=Category:Machine_learning_algorithms&amp;printable=yes" title="Printable version of this page [p]">
         Printable version
        </a>
       </li>
      </ul>
     </div>
    </div>
    <div aria-labelledby="p-lang-label" class="portal" id="p-lang" role="navigation">
     <h3 id="p-lang-label">
      Languages
     </h3>
     <div class="body">
      <ul>
       <li class="interlanguage-link interwiki-fa">
        <a class="interlanguage-link-target" href="https://fa.wikipedia.org/wiki/%D8%B1%D8%AF%D9%87:%D8%A7%D9%84%DA%AF%D9%88%D8%B1%DB%8C%D8%AA%D9%85%E2%80%8C%D9%87%D8%A7%DB%8C_%DB%8C%D8%A7%D8%AF%DA%AF%DB%8C%D8%B1%DB%8C_%D9%85%D8%A7%D8%B4%DB%8C%D9%86%DB%8C" hreflang="fa" lang="fa" title="رده:الگوریتم‌های یادگیری ماشینی – Persian">
         فارسی
        </a>
       </li>
       <li class="interlanguage-link interwiki-ko">
        <a class="interlanguage-link-target" href="https://ko.wikipedia.org/wiki/%EB%B6%84%EB%A5%98:%EA%B8%B0%EA%B3%84_%ED%95%99%EC%8A%B5_%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98" hreflang="ko" lang="ko" title="분류:기계 학습 알고리즘 – Korean">
         한국어
        </a>
       </li>
       <li class="interlanguage-link interwiki-ja">
        <a class="interlanguage-link-target" href="https://ja.wikipedia.org/wiki/Category:%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92%E3%82%A2%E3%83%AB%E3%82%B4%E3%83%AA%E3%82%BA%E3%83%A0" hreflang="ja" lang="ja" title="Category:機械学習アルゴリズム – Japanese">
         日本語
        </a>
       </li>
       <li class="interlanguage-link interwiki-sr">
        <a class="interlanguage-link-target" href="https://sr.wikipedia.org/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:%D0%90%D0%BB%D0%B3%D0%BE%D1%80%D0%B8%D1%82%D0%BC%D0%B8_%D0%BC%D0%B0%D1%88%D0%B8%D0%BD%D1%81%D0%BA%D0%BE%D0%B3_%D1%83%D1%87%D0%B5%D1%9A%D0%B0" hreflang="sr" lang="sr" title="Категорија:Алгоритми машинског учења – Serbian">
         Српски / srpski
        </a>
       </li>
       <li class="interlanguage-link interwiki-sh">
        <a class="interlanguage-link-target" href="https://sh.wikipedia.org/wiki/Kategorija:Algoritmi_ma%C5%A1inskog_u%C4%8Denja" hreflang="sh" lang="sh" title="Kategorija:Algoritmi mašinskog učenja – Serbo-Croatian">
         Srpskohrvatski / српскохрватски
        </a>
       </li>
       <li class="interlanguage-link interwiki-uk">
        <a class="interlanguage-link-target" href="https://uk.wikipedia.org/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D1%96%D1%8F:%D0%90%D0%BB%D0%B3%D0%BE%D1%80%D0%B8%D1%82%D0%BC%D0%B8_%D0%BC%D0%B0%D1%88%D0%B8%D0%BD%D0%BD%D0%BE%D0%B3%D0%BE_%D0%BD%D0%B0%D0%B2%D1%87%D0%B0%D0%BD%D0%BD%D1%8F" hreflang="uk" lang="uk" title="Категорія:Алгоритми машинного навчання – Ukrainian">
         Українська
        </a>
       </li>
       <li class="interlanguage-link interwiki-zh">
        <a class="interlanguage-link-target" href="https://zh.wikipedia.org/wiki/Category:%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92%E6%BC%94%E7%AE%97%E6%B3%95" hreflang="zh" lang="zh" title="Category:機器學習演算法 – Chinese">
         中文
        </a>
       </li>
       <li class="uls-p-lang-dummy">
        <a href="#">
        </a>
       </li>
      </ul>
      <div class="after-portlet after-portlet-lang">
       <span class="wb-langlinks-edit wb-langlinks-link">
        <a class="wbc-editpage" href="https://www.wikidata.org/wiki/Q8592571#sitelinks-wikipedia" title="Edit interlanguage links">
         Edit links
        </a>
       </span>
      </div>
     </div>
    </div>
   </div>
  </div>
  <div id="footer" role="contentinfo">
   <ul id="footer-info">
    <li id="footer-info-lastmod">
     This page was last modified on 8 August 2015, at 18:42.
    </li>
    <li id="footer-info-copyright">
     Text is available under the
     <a href="//en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License" rel="license">
      Creative Commons Attribution-ShareAlike License
     </a>
     <a href="//creativecommons.org/licenses/by-sa/3.0/" rel="license" style="display:none;">
     </a>
     ;
additional terms may apply.  By using this site, you agree to the
     <a href="//wikimediafoundation.org/wiki/Terms_of_Use">
      Terms of Use
     </a>
     and
     <a href="//wikimediafoundation.org/wiki/Privacy_policy">
      Privacy Policy
     </a>
     . Wikipedia® is a registered trademark of the
     <a href="//www.wikimediafoundation.org/">
      Wikimedia Foundation, Inc.
     </a>
     , a non-profit organization.
    </li>
   </ul>
   <ul id="footer-places">
    <li id="footer-places-privacy">
     <a class="extiw" href="https://wikimediafoundation.org/wiki/Privacy_policy" title="wmf:Privacy policy">
      Privacy policy
     </a>
    </li>
    <li id="footer-places-about">
     <a href="/wiki/Wikipedia:About" title="Wikipedia:About">
      About Wikipedia
     </a>
    </li>
    <li id="footer-places-disclaimer">
     <a href="/wiki/Wikipedia:General_disclaimer" title="Wikipedia:General disclaimer">
      Disclaimers
     </a>
    </li>
    <li id="footer-places-contact">
     <a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">
      Contact Wikipedia
     </a>
    </li>
    <li id="footer-places-developers">
     <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/How_to_contribute">
      Developers
     </a>
    </li>
    <li id="footer-places-cookiestatement">
     <a href="https://wikimediafoundation.org/wiki/Cookie_statement">
      Cookie statement
     </a>
    </li>
    <li id="footer-places-mobileview">
     <a class="noprint stopMobileRedirectToggle" href="//en.m.wikipedia.org/w/index.php?title=Category:Machine_learning_algorithms&amp;mobileaction=toggle_view_mobile">
      Mobile view
     </a>
    </li>
   </ul>
   <ul class="noprint" id="footer-icons">
    <li id="footer-copyrightico">
     <a href="https://wikimediafoundation.org/">
      <img alt="Wikimedia Foundation" height="31" src="/static/images/wikimedia-button.png" srcset="/static/images/wikimedia-button-1.5x.png 1.5x, /static/images/wikimedia-button-2x.png 2x" width="88"/>
     </a>
    </li>
    <li id="footer-poweredbyico">
     <a href="//www.mediawiki.org/">
      <img alt="Powered by MediaWiki" height="31" src="/static/images/poweredby_mediawiki_88x31.png" srcset="/static/images/poweredby_mediawiki_132x47.png 1.5x, /static/images/poweredby_mediawiki_176x62.png 2x" width="88"/>
     </a>
    </li>
   </ul>
   <div style="clear:both">
   </div>
  </div>
  <script>
   (window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":85,"wgHostname":"mw1181"});});
  </script>
 </body>
</html>

Зададим функцию для печати значений нужного тега:


In [95]:
def print_tags(parser, key='h1'):
    for tag in parser.find_all(key):
        print tag.text

Так как из текста задания не совсем понятно, какие заголовки считать заголовками верхнего уровня, выведем отдельно все заголовки для первого, второго и третьего уровней.

Заголовки первого уровня:


In [96]:
print_tags(parser, 'h1')


Bias–variance tradeoff

Заголовки второго уровня:


In [130]:
for t in parser.find_all('h2'):
    if t.span is not None and 'class' in t.span.attrs  and 'mw-headline' in t.span.attrs['class']:
        print t.span.text


Motivation
Bias–variance decomposition of squared error
Application to regression
Application to classification
Approaches
Application to human learning
See also
References
External links

Заголовки третьего уровня


In [131]:
for t in parser.find_all('h3'):
    if t.span is not None and 'class' in t.span.attrs and 'mw-headline' in t.span.attrs['class']:
        print t.span.text


Derivation
K-nearest neighbors

3b. Парсинг названий всех статей в категории Machine Learning Algorithms со страницы https://en.wikipedia.org/wiki/Category:Machine_learning_algorithms

Выполним запрос указанной страницы и проверим, что она доступна


In [132]:
req = requests.get('https://en.wikipedia.org/wiki/Category:Machine_learning_algorithms')
print req


<Response [200]>

Создадим парсер для страницы и выведем содержимое страницы


In [133]:
parser = BeautifulSoup(req.text, 'lxml')
print parser.prettify()


<!DOCTYPE html>
<html class="client-nojs" dir="ltr" lang="en">
 <head>
  <meta charset="utf-8"/>
  <title>
   Category:Machine learning algorithms - Wikipedia
  </title>
  <script>
   document.documentElement.className = document.documentElement.className.replace( /(^|\s)client-nojs(\s|$)/, "$1client-js$2" );
  </script>
  <script>
   (window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgCanonicalNamespace":"Category","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":14,"wgPageName":"Category:Machine_learning_algorithms","wgTitle":"Machine learning algorithms","wgCurRevisionId":675167466,"wgRevisionId":675167466,"wgArticleId":33547228,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Commons category without a link on Wikidata","Machine learning","Algorithms"],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgMonthNamesShort":["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"wgRelevantPageName":"Category:Machine_learning_algorithms","wgRelevantArticleId":33547228,"wgRequestId":"WGfJTQpAIDMAAHejR-YAAAAJ","wgIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgFlaggedRevsParams":{"tags":{}},"wgStableRevisionId":null,"wgWikiEditorEnabledModules":{"toolbar":true,"dialogs":true,"preview":false,"publish":false},"wgBetaFeaturesFeatures":[],"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","usePageImages":true,"usePageDescriptions":true},"wgPreferredVariant":"en","wgMFDisplayWikibaseDescriptions":{"search":true,"nearby":true,"watchlist":true,"tagline":false},"wgRelatedArticles":null,"wgRelatedArticlesUseCirrusSearch":true,"wgRelatedArticlesOnlyUseCirrusSearch":false,"wgULSCurrentAutonym":"English","wgNoticeProject":"wikipedia","wgCentralNoticeCookiesToDelete":[],"wgCentralNoticeCategoriesUsingLegacy":["Fundraising","fundraising"],"wgCategoryTreePageCategoryOptions":"{\"mode\":0,\"hideprefix\":20,\"showcount\":true,\"namespaces\":false}","wgWikibaseItemId":"Q8592571","wgCentralAuthMobileDomain":false,"wgVisualEditorToolbarScrollOffset":0,"wgEditSubmitButtonLabelPublish":false});mw.loader.state({"ext.globalCssJs.user.styles":"ready","ext.globalCssJs.site.styles":"ready","site.styles":"ready","noscript":"ready","user.styles":"ready","user":"ready","user.options":"loading","user.tokens":"loading","mediawiki.action.view.categoryPage.styles":"ready","ext.categoryTree.css":"ready","mediawiki.helplink":"ready","wikibase.client.init":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","ext.tmh.thumbnail.styles":"ready","ext.wikimediaBadges":"ready","mediawiki.legacy.shared":"ready","mediawiki.legacy.commonPrint":"ready","mediawiki.sectionAnchor":"ready","mediawiki.skinning.interface":"ready","skins.vector.styles":"ready","ext.globalCssJs.user":"ready","ext.globalCssJs.site":"ready"});mw.loader.implement("user.options@0j3lz3q",function($,jQuery,require,module){mw.user.options.set({"variant":"en"});});mw.loader.implement("user.tokens@1dqfd7l",function ( $, jQuery, require, module ) {
mw.user.tokens.set({"editToken":"+\\","patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"});/*@nomin*/;

});mw.loader.load(["mediawiki.action.view.postEdit","ext.categoryTree","site","mediawiki.page.startup","mediawiki.user","mediawiki.hidpi","mediawiki.page.ready","mediawiki.legacy.wikibits","mediawiki.searchSuggest","ext.gadget.teahouse","ext.gadget.ReferenceTooltips","ext.gadget.watchlist-notice","ext.gadget.DRN-wizard","ext.gadget.charinsert","ext.gadget.refToolbar","ext.gadget.extra-toolbar-buttons","ext.gadget.switcher","ext.gadget.featured-articles-links","ext.centralauth.centralautologin","mmv.head","mmv.bootstrap.autostart","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.eventLogging.subscriber","ext.wikimediaEvents","ext.navigationTiming","ext.uls.eventlogger","ext.uls.init","ext.uls.interface","ext.centralNotice.geoIP","ext.centralNotice.startUp","mw.MediaWikiPlayer.loader","mw.PopUpMediaTransform","skins.vector.js"]);});
  </script>
  <link href="/w/load.php?debug=false&amp;lang=en&amp;modules=ext.categoryTree.css%7Cext.tmh.thumbnail.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cmediawiki.action.view.categoryPage.styles%7Cmediawiki.helplink%2CsectionAnchor%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cskins.vector.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector" rel="stylesheet"/>
  <script async="" src="/w/load.php?debug=false&amp;lang=en&amp;modules=startup&amp;only=scripts&amp;skin=vector">
  </script>
  <meta content="" name="ResourceLoaderDynamicStyles"/>
  <link href="/w/load.php?debug=false&amp;lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector" rel="stylesheet"/>
  <meta content="MediaWiki 1.29.0-wmf.6" name="generator"/>
  <meta content="origin-when-cross-origin" name="referrer"/>
  <link href="/w/index.php?title=Category:Machine_learning_algorithms&amp;action=edit" rel="alternate" title="Edit this page" type="application/x-wiki"/>
  <link href="/w/index.php?title=Category:Machine_learning_algorithms&amp;action=edit" rel="edit" title="Edit this page"/>
  <link href="/static/apple-touch/wikipedia.png" rel="apple-touch-icon"/>
  <link href="/static/favicon/wikipedia.ico" rel="shortcut icon"/>
  <link href="/w/opensearch_desc.php" rel="search" title="Wikipedia (en)" type="application/opensearchdescription+xml"/>
  <link href="//en.wikipedia.org/w/api.php?action=rsd" rel="EditURI" type="application/rsd+xml"/>
  <link href="//creativecommons.org/licenses/by-sa/3.0/" rel="copyright"/>
  <link href="/w/index.php?title=Special:RecentChanges&amp;feed=atom" rel="alternate" title="Wikipedia Atom feed" type="application/atom+xml"/>
  <link href="https://en.wikipedia.org/wiki/Category:Machine_learning_algorithms" rel="canonical"/>
  <link href="//login.wikimedia.org" rel="dns-prefetch"/>
  <link href="//meta.wikimedia.org" rel="dns-prefetch"/>
 </head>
 <body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-14 ns-subject page-Category_Machine_learning_algorithms rootpage-Category_Machine_learning_algorithms skin-vector action-view">
  <div class="noprint" id="mw-page-base">
  </div>
  <div class="noprint" id="mw-head-base">
  </div>
  <div class="mw-body" id="content" role="main">
   <a id="top">
   </a>
   <div id="siteNotice">
    <!-- CentralNotice -->
   </div>
   <div class="mw-indicators">
    <div class="mw-indicator" id="mw-indicator-mw-helplink">
     <a class="mw-helplink" href="//www.mediawiki.org/wiki/Special:MyLanguage/Help:Categories" target="_blank">
      Help
     </a>
    </div>
   </div>
   <h1 class="firstHeading" id="firstHeading" lang="en">
    Category:Machine learning algorithms
   </h1>
   <div class="mw-body-content" id="bodyContent">
    <div id="siteSub">
     From Wikipedia, the free encyclopedia
    </div>
    <div id="contentSub">
    </div>
    <div class="mw-jump" id="jump-to-nav">
     Jump to:
     <a href="#mw-head">
      navigation
     </a>
     ,
     <a href="#p-search">
      search
     </a>
    </div>
    <div class="mw-content-ltr" dir="ltr" id="mw-content-text" lang="en">
     <script>
      function mfTempOpenSection(id){var block=document.getElementById("mf-section-"+id);block.className+=" open-block";block.previousSibling.className+=" open-block";}
     </script>
     <div class="hatnote selfreference">
      See also: the categories
      <wbr>
      </wbr>
      <a href="/wiki/Category:Data_mining" title="Category:Data mining">
       Data mining
      </a>
      ,
      <wbr>
      </wbr>
      <a href="/wiki/Category:Classification_algorithms" title="Category:Classification algorithms">
       Classification algorithms
      </a>
      , and
      <wbr>
      </wbr>
      <a href="/wiki/Category:Decision_trees" title="Category:Decision trees">
       Decision trees
      </a>
      .
     </div>
     <table class="mbox-small plainlinks sistersitebox" role="presentation" style="border:1px solid #aaa;background-color:#f9f9f9">
      <tr>
       <td class="mbox-image">
        <a class="image" href="/wiki/File:Commons-logo.svg">
         <img alt="" class="noviewer" data-file-height="1376" data-file-width="1024" height="40" src="//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/30px-Commons-logo.svg.png" srcset="//upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/45px-Commons-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/4/4a/Commons-logo.svg/59px-Commons-logo.svg.png 2x" width="30"/>
        </a>
       </td>
       <td class="mbox-text plainlist">
        Wikimedia Commons has media related to
        <i>
         <b>
          <a class="extiw" href="https://commons.wikimedia.org/wiki/Category:Machine_learning_algorithms" title="commons:Category:Machine learning algorithms">
           Machine learning algorithms
          </a>
         </b>
        </i>
        .
       </td>
      </tr>
     </table>
     <!-- 
NewPP limit report
Parsed by mw1214
Cached time: 20161224134034
Cache expiry: 2592000
Dynamic content: false
CPU time usage: 0.028 seconds
Real time usage: 0.042 seconds
Preprocessor visited node count: 193/1000000
Preprocessor generated node count: 0/1500000
Post‐expand include size: 3261/2097152 bytes
Template argument size: 390/2097152 bytes
Highest expansion depth: 9/40
Expensive parser function count: 0/500
Lua time usage: 0.005/10.000 seconds
Lua memory usage: 612 KB/50 MB
-->
     <!-- 
Transclusion expansion time report (%,ms,calls,template)
100.00%   35.540      1 - -total
 53.02%   18.844      1 - Template:Cat_see_also
 46.82%   16.639      1 - Template:Commons_category
 42.68%   15.169      1 - Template:Pagelist
 23.69%    8.418      1 - Template:Commons
 20.36%    7.237      1 - Template:Sister_project
 15.29%    5.434      1 - Template:Side_box
-->
     <!-- Saved in parser cache with key enwiki:pcache:idhash:33547228-0!*!0!*!*!4!* and timestamp 20161224134034 and revision id 675167466
 -->
     <div class="mw-category-generated" dir="ltr" lang="en">
      <div id="mw-subcategories">
       <h2>
        Subcategories
       </h2>
       <p>
        This category has only the following subcategory.
       </p>
       <div class="mw-content-ltr" dir="ltr" lang="en">
        <h3>
         G
        </h3>
        <ul>
         <li>
          <div class="CategoryTreeSection">
           <div class="CategoryTreeItem">
            <span class="CategoryTreeBullet">
             <span class="CategoryTreeToggle" data-ct-state="collapsed" data-ct-title="Genetic_algorithms" style="display: none;" title="expand">
              ►
             </span>
            </span>
            <a class="CategoryTreeLabel CategoryTreeLabelNs14 CategoryTreeLabelCategory" href="/wiki/Category:Genetic_algorithms">
             Genetic algorithms
            </a>
            ‎
            <span dir="ltr" title="Contains 2 subcategories, 41 pages, and 0 files">
             (2 C, 41 P)
            </span>
           </div>
           <div class="CategoryTreeChildren" style="display:none">
           </div>
          </div>
         </li>
        </ul>
       </div>
      </div>
      <div id="mw-pages">
       <h2>
        <span id="Pages_in_category">
        </span>
        Pages in category "Machine learning algorithms"
       </h2>
       <p>
        The following 55 pages are in this category, out of 55 total. This list may not reflect recent changes (
        <a href="/wiki/Wikipedia:FAQ/Categorization#Why_might_a_category_list_not_be_up_to_date.3F" title="Wikipedia:FAQ/Categorization">
         learn more
        </a>
        ).
       </p>
       <div class="mw-content-ltr" dir="ltr" lang="en">
        <div class="mw-category">
         <div class="mw-category-group">
          <h3>
           *
          </h3>
          <ul>
           <li>
            <a href="/wiki/List_of_machine_learning_concepts" title="List of machine learning concepts">
             List of machine learning concepts
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           A
          </h3>
          <ul>
           <li>
            <a href="/wiki/Almeida%E2%80%93Pineda_recurrent_backpropagation" title="Almeida–Pineda recurrent backpropagation">
             Almeida–Pineda recurrent backpropagation
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           B
          </h3>
          <ul>
           <li>
            <a href="/wiki/Backpropagation" title="Backpropagation">
             Backpropagation
            </a>
           </li>
           <li>
            <a href="/wiki/Bootstrap_aggregating" title="Bootstrap aggregating">
             Bootstrap aggregating
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           C
          </h3>
          <ul>
           <li>
            <a href="/wiki/CN2_algorithm" title="CN2 algorithm">
             CN2 algorithm
            </a>
           </li>
           <li>
            <a href="/wiki/Constructing_skill_trees" title="Constructing skill trees">
             Constructing skill trees
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           D
          </h3>
          <ul>
           <li>
            <a href="/wiki/Dehaene%E2%80%93Changeux_model" title="Dehaene–Changeux model">
             Dehaene–Changeux model
            </a>
           </li>
           <li>
            <a href="/wiki/Diffusion_map" title="Diffusion map">
             Diffusion map
            </a>
           </li>
           <li>
            <a href="/wiki/Dominance-based_rough_set_approach" title="Dominance-based rough set approach">
             Dominance-based rough set approach
            </a>
           </li>
           <li>
            <a href="/wiki/Dynamic_time_warping" title="Dynamic time warping">
             Dynamic time warping
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           E
          </h3>
          <ul>
           <li>
            <a href="/wiki/Error-driven_learning" title="Error-driven learning">
             Error-driven learning
            </a>
           </li>
           <li>
            <a href="/wiki/Evolutionary_multimodal_optimization" title="Evolutionary multimodal optimization">
             Evolutionary multimodal optimization
            </a>
           </li>
           <li>
            <a href="/wiki/Expectation%E2%80%93maximization_algorithm" title="Expectation–maximization algorithm">
             Expectation–maximization algorithm
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           F
          </h3>
          <ul>
           <li>
            <a href="/wiki/FastICA" title="FastICA">
             FastICA
            </a>
           </li>
           <li>
            <a href="/wiki/Forward%E2%80%93backward_algorithm" title="Forward–backward algorithm">
             Forward–backward algorithm
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           G
          </h3>
          <ul>
           <li>
            <a href="/wiki/GeneRec" title="GeneRec">
             GeneRec
            </a>
           </li>
           <li>
            <a href="/wiki/Genetic_Algorithm_for_Rule_Set_Production" title="Genetic Algorithm for Rule Set Production">
             Genetic Algorithm for Rule Set Production
            </a>
           </li>
           <li>
            <a href="/wiki/Growing_self-organizing_map" title="Growing self-organizing map">
             Growing self-organizing map
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           H
          </h3>
          <ul>
           <li>
            <a href="/wiki/HEXQ" title="HEXQ">
             HEXQ
            </a>
           </li>
           <li>
            <a href="/wiki/Hyper_basis_function_network" title="Hyper basis function network">
             Hyper basis function network
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           I
          </h3>
          <ul>
           <li>
            <a href="/wiki/IDistance" title="IDistance">
             IDistance
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           K
          </h3>
          <ul>
           <li>
            <a href="/wiki/K-nearest_neighbors_algorithm" title="K-nearest neighbors algorithm">
             K-nearest neighbors algorithm
            </a>
           </li>
           <li>
            <a href="/wiki/Kernel_methods_for_vector_output" title="Kernel methods for vector output">
             Kernel methods for vector output
            </a>
           </li>
           <li>
            <a href="/wiki/Kernel_principal_component_analysis" title="Kernel principal component analysis">
             Kernel principal component analysis
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           L
          </h3>
          <ul>
           <li>
            <a href="/wiki/Leabra" title="Leabra">
             Leabra
            </a>
           </li>
           <li>
            <a href="/wiki/Linde%E2%80%93Buzo%E2%80%93Gray_algorithm" title="Linde–Buzo–Gray algorithm">
             Linde–Buzo–Gray algorithm
            </a>
           </li>
           <li>
            <a href="/wiki/Local_outlier_factor" title="Local outlier factor">
             Local outlier factor
            </a>
           </li>
           <li>
            <a href="/wiki/Logic_learning_machine" title="Logic learning machine">
             Logic learning machine
            </a>
           </li>
           <li>
            <a href="/wiki/LogitBoost" title="LogitBoost">
             LogitBoost
            </a>
           </li>
           <li>
            <a href="/wiki/Loss_functions_for_classification" title="Loss functions for classification">
             Loss functions for classification
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           M
          </h3>
          <ul>
           <li>
            <a href="/wiki/Manifold_alignment" title="Manifold alignment">
             Manifold alignment
            </a>
           </li>
           <li>
            <a href="/wiki/Minimum_redundancy_feature_selection" title="Minimum redundancy feature selection">
             Minimum redundancy feature selection
            </a>
           </li>
           <li>
            <a href="/wiki/Multiple_kernel_learning" title="Multiple kernel learning">
             Multiple kernel learning
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           N
          </h3>
          <ul>
           <li>
            <a href="/wiki/Non-negative_matrix_factorization" title="Non-negative matrix factorization">
             Non-negative matrix factorization
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           O
          </h3>
          <ul>
           <li>
            <a href="/wiki/Online_machine_learning" title="Online machine learning">
             Online machine learning
            </a>
           </li>
           <li>
            <a href="/wiki/Out-of-bag_error" title="Out-of-bag error">
             Out-of-bag error
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           P
          </h3>
          <ul>
           <li>
            <a href="/wiki/Prefrontal_cortex_basal_ganglia_working_memory" title="Prefrontal cortex basal ganglia working memory">
             Prefrontal cortex basal ganglia working memory
            </a>
           </li>
           <li>
            <a href="/wiki/PVLV" title="PVLV">
             PVLV
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           Q
          </h3>
          <ul>
           <li>
            <a href="/wiki/Q-learning" title="Q-learning">
             Q-learning
            </a>
           </li>
           <li>
            <a href="/wiki/Quadratic_unconstrained_binary_optimization" title="Quadratic unconstrained binary optimization">
             Quadratic unconstrained binary optimization
            </a>
           </li>
           <li>
            <a href="/wiki/Query_level_feature" title="Query level feature">
             Query level feature
            </a>
           </li>
           <li>
            <a href="/wiki/Quickprop" title="Quickprop">
             Quickprop
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           R
          </h3>
          <ul>
           <li>
            <a href="/wiki/Radial_basis_function_network" title="Radial basis function network">
             Radial basis function network
            </a>
           </li>
           <li>
            <a href="/wiki/Randomized_weighted_majority_algorithm" title="Randomized weighted majority algorithm">
             Randomized weighted majority algorithm
            </a>
           </li>
           <li>
            <a href="/wiki/Reinforcement_learning" title="Reinforcement learning">
             Reinforcement learning
            </a>
           </li>
           <li>
            <a href="/wiki/Rprop" title="Rprop">
             Rprop
            </a>
           </li>
           <li>
            <a href="/wiki/Rule-based_machine_learning" title="Rule-based machine learning">
             Rule-based machine learning
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           S
          </h3>
          <ul>
           <li>
            <a href="/wiki/Skill_chaining" title="Skill chaining">
             Skill chaining
            </a>
           </li>
           <li>
            <a href="/wiki/Sparse_PCA" title="Sparse PCA">
             Sparse PCA
            </a>
           </li>
           <li>
            <a href="/wiki/State-Action-Reward-State-Action" title="State-Action-Reward-State-Action">
             State-Action-Reward-State-Action
            </a>
           </li>
           <li>
            <a href="/wiki/Stochastic_gradient_descent" title="Stochastic gradient descent">
             Stochastic gradient descent
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           T
          </h3>
          <ul>
           <li>
            <a href="/wiki/T-distributed_stochastic_neighbor_embedding" title="T-distributed stochastic neighbor embedding">
             T-distributed stochastic neighbor embedding
            </a>
           </li>
           <li>
            <a href="/wiki/Temporal_difference_learning" title="Temporal difference learning">
             Temporal difference learning
            </a>
           </li>
          </ul>
         </div>
         <div class="mw-category-group">
          <h3>
           W
          </h3>
          <ul>
           <li>
            <a href="/wiki/Wake-sleep_algorithm" title="Wake-sleep algorithm">
             Wake-sleep algorithm
            </a>
           </li>
           <li>
            <a href="/wiki/Weighted_Majority_Algorithm" title="Weighted Majority Algorithm">
             Weighted Majority Algorithm
            </a>
           </li>
          </ul>
         </div>
        </div>
       </div>
      </div>
     </div>
     <noscript>
      <img alt="" height="1" src="//en.wikipedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" style="border: none; position: absolute;" title="" width="1"/>
     </noscript>
    </div>
    <div class="printfooter">
     Retrieved from "
     <a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=Category:Machine_learning_algorithms&amp;oldid=675167466">
      https://en.wikipedia.org/w/index.php?title=Category:Machine_learning_algorithms&amp;oldid=675167466
     </a>
     "
    </div>
    <div class="catlinks" data-mw="interface" id="catlinks">
     <div class="mw-normal-catlinks" id="mw-normal-catlinks">
      <a href="/wiki/Help:Category" title="Help:Category">
       Categories
      </a>
      :
      <ul>
       <li>
        <a href="/wiki/Category:Machine_learning" title="Category:Machine learning">
         Machine learning
        </a>
       </li>
       <li>
        <a href="/wiki/Category:Algorithms" title="Category:Algorithms">
         Algorithms
        </a>
       </li>
      </ul>
     </div>
     <div class="mw-hidden-catlinks mw-hidden-cats-ns-shown" id="mw-hidden-catlinks">
      Hidden categories:
      <ul>
       <li>
        <a href="/wiki/Category:Commons_category_without_a_link_on_Wikidata" title="Category:Commons category without a link on Wikidata">
         Commons category without a link on Wikidata
        </a>
       </li>
      </ul>
     </div>
    </div>
    <div class="visualClear">
    </div>
   </div>
  </div>
  <div id="mw-navigation">
   <h2>
    Navigation menu
   </h2>
   <div id="mw-head">
    <div aria-labelledby="p-personal-label" class="" id="p-personal" role="navigation">
     <h3 id="p-personal-label">
      Personal tools
     </h3>
     <ul>
      <li id="pt-anonuserpage">
       Not logged in
      </li>
      <li id="pt-anontalk">
       <a accesskey="n" href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]">
        Talk
       </a>
      </li>
      <li id="pt-anoncontribs">
       <a accesskey="y" href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]">
        Contributions
       </a>
      </li>
      <li id="pt-createaccount">
       <a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Category%3AMachine+learning+algorithms" title="You are encouraged to create an account and log in; however, it is not mandatory">
        Create account
       </a>
      </li>
      <li id="pt-login">
       <a accesskey="o" href="/w/index.php?title=Special:UserLogin&amp;returnto=Category%3AMachine+learning+algorithms" title="You're encouraged to log in; however, it's not mandatory. [o]">
        Log in
       </a>
      </li>
     </ul>
    </div>
    <div id="left-navigation">
     <div aria-labelledby="p-namespaces-label" class="vectorTabs" id="p-namespaces" role="navigation">
      <h3 id="p-namespaces-label">
       Namespaces
      </h3>
      <ul>
       <li class="selected" id="ca-nstab-category">
        <span>
         <a accesskey="c" href="/wiki/Category:Machine_learning_algorithms" title="View the category page [c]">
          Category
         </a>
        </span>
       </li>
       <li class="new" id="ca-talk">
        <span>
         <a accesskey="t" href="/w/index.php?title=Category_talk:Machine_learning_algorithms&amp;action=edit&amp;redlink=1" rel="discussion" title="Discussion about the content page [t]">
          Talk
         </a>
        </span>
       </li>
      </ul>
     </div>
     <div aria-labelledby="p-variants-label" class="vectorMenu emptyPortlet" id="p-variants" role="navigation">
      <h3 id="p-variants-label">
       <span>
        Variants
       </span>
       <a href="#">
       </a>
      </h3>
      <div class="menu">
       <ul>
       </ul>
      </div>
     </div>
    </div>
    <div id="right-navigation">
     <div aria-labelledby="p-views-label" class="vectorTabs" id="p-views" role="navigation">
      <h3 id="p-views-label">
       Views
      </h3>
      <ul>
       <li class="selected" id="ca-view">
        <span>
         <a href="/wiki/Category:Machine_learning_algorithms">
          Read
         </a>
        </span>
       </li>
       <li id="ca-edit">
        <span>
         <a accesskey="e" href="/w/index.php?title=Category:Machine_learning_algorithms&amp;action=edit" title="Edit this page [e]">
          Edit
         </a>
        </span>
       </li>
       <li class="collapsible" id="ca-history">
        <span>
         <a accesskey="h" href="/w/index.php?title=Category:Machine_learning_algorithms&amp;action=history" title="Past revisions of this page [h]">
          View history
         </a>
        </span>
       </li>
      </ul>
     </div>
     <div aria-labelledby="p-cactions-label" class="vectorMenu emptyPortlet" id="p-cactions" role="navigation">
      <h3 id="p-cactions-label">
       <span>
        More
       </span>
       <a href="#">
       </a>
      </h3>
      <div class="menu">
       <ul>
       </ul>
      </div>
     </div>
     <div id="p-search" role="search">
      <h3>
       <label for="searchInput">
        Search
       </label>
      </h3>
      <form action="/w/index.php" id="searchform">
       <div id="simpleSearch">
        <input accesskey="f" id="searchInput" name="search" placeholder="Search Wikipedia" title="Search Wikipedia [f]" type="search"/>
        <input name="title" type="hidden" value="Special:Search"/>
        <input class="searchButton mw-fallbackSearchButton" id="mw-searchButton" name="fulltext" title="Search Wikipedia for this text" type="submit" value="Search"/>
        <input class="searchButton" id="searchButton" name="go" title="Go to a page with this exact name if it exists" type="submit" value="Go"/>
       </div>
      </form>
     </div>
    </div>
   </div>
   <div id="mw-panel">
    <div id="p-logo" role="banner">
     <a class="mw-wiki-logo" href="/wiki/Main_Page" title="Visit the main page">
     </a>
    </div>
    <div aria-labelledby="p-navigation-label" class="portal" id="p-navigation" role="navigation">
     <h3 id="p-navigation-label">
      Navigation
     </h3>
     <div class="body">
      <ul>
       <li id="n-mainpage-description">
        <a accesskey="z" href="/wiki/Main_Page" title="Visit the main page [z]">
         Main page
        </a>
       </li>
       <li id="n-contents">
        <a href="/wiki/Portal:Contents" title="Guides to browsing Wikipedia">
         Contents
        </a>
       </li>
       <li id="n-featuredcontent">
        <a href="/wiki/Portal:Featured_content" title="Featured content – the best of Wikipedia">
         Featured content
        </a>
       </li>
       <li id="n-currentevents">
        <a href="/wiki/Portal:Current_events" title="Find background information on current events">
         Current events
        </a>
       </li>
       <li id="n-randompage">
        <a accesskey="x" href="/wiki/Special:Random" title="Load a random article [x]">
         Random article
        </a>
       </li>
       <li id="n-sitesupport">
        <a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en" title="Support us">
         Donate to Wikipedia
        </a>
       </li>
       <li id="n-shoplink">
        <a href="//shop.wikimedia.org" title="Visit the Wikipedia store">
         Wikipedia store
        </a>
       </li>
      </ul>
     </div>
    </div>
    <div aria-labelledby="p-interaction-label" class="portal" id="p-interaction" role="navigation">
     <h3 id="p-interaction-label">
      Interaction
     </h3>
     <div class="body">
      <ul>
       <li id="n-help">
        <a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia">
         Help
        </a>
       </li>
       <li id="n-aboutsite">
        <a href="/wiki/Wikipedia:About" title="Find out about Wikipedia">
         About Wikipedia
        </a>
       </li>
       <li id="n-portal">
        <a href="/wiki/Wikipedia:Community_portal" title="About the project, what you can do, where to find things">
         Community portal
        </a>
       </li>
       <li id="n-recentchanges">
        <a accesskey="r" href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]">
         Recent changes
        </a>
       </li>
       <li id="n-contactpage">
        <a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia">
         Contact page
        </a>
       </li>
      </ul>
     </div>
    </div>
    <div aria-labelledby="p-tb-label" class="portal" id="p-tb" role="navigation">
     <h3 id="p-tb-label">
      Tools
     </h3>
     <div class="body">
      <ul>
       <li id="t-whatlinkshere">
        <a accesskey="j" href="/wiki/Special:WhatLinksHere/Category:Machine_learning_algorithms" title="List of all English Wikipedia pages containing links to this page [j]">
         What links here
        </a>
       </li>
       <li id="t-recentchangeslinked">
        <a accesskey="k" href="/wiki/Special:RecentChangesLinked/Category:Machine_learning_algorithms" rel="nofollow" title="Recent changes in pages linked from this page [k]">
         Related changes
        </a>
       </li>
       <li id="t-upload">
        <a accesskey="u" href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]">
         Upload file
        </a>
       </li>
       <li id="t-specialpages">
        <a accesskey="q" href="/wiki/Special:SpecialPages" title="A list of all special pages [q]">
         Special pages
        </a>
       </li>
       <li id="t-permalink">
        <a href="/w/index.php?title=Category:Machine_learning_algorithms&amp;oldid=675167466" title="Permanent link to this revision of the page">
         Permanent link
        </a>
       </li>
       <li id="t-info">
        <a href="/w/index.php?title=Category:Machine_learning_algorithms&amp;action=info" title="More information about this page">
         Page information
        </a>
       </li>
       <li id="t-wikibase">
        <a accesskey="g" href="https://www.wikidata.org/wiki/Q8592571" title="Link to connected data repository item [g]">
         Wikidata item
        </a>
       </li>
      </ul>
     </div>
    </div>
    <div aria-labelledby="p-coll-print_export-label" class="portal" id="p-coll-print_export" role="navigation">
     <h3 id="p-coll-print_export-label">
      Print/export
     </h3>
     <div class="body">
      <ul>
       <li id="coll-create_a_book">
        <a href="/w/index.php?title=Special:Book&amp;bookcmd=book_creator&amp;referer=Category%3AMachine+learning+algorithms">
         Create a book
        </a>
       </li>
       <li id="coll-download-as-rdf2latex">
        <a href="/w/index.php?title=Special:Book&amp;bookcmd=render_article&amp;arttitle=Category%3AMachine+learning+algorithms&amp;returnto=Category%3AMachine+learning+algorithms&amp;oldid=675167466&amp;writer=rdf2latex">
         Download as PDF
        </a>
       </li>
       <li id="t-print">
        <a accesskey="p" href="/w/index.php?title=Category:Machine_learning_algorithms&amp;printable=yes" title="Printable version of this page [p]">
         Printable version
        </a>
       </li>
      </ul>
     </div>
    </div>
    <div aria-labelledby="p-lang-label" class="portal" id="p-lang" role="navigation">
     <h3 id="p-lang-label">
      Languages
     </h3>
     <div class="body">
      <ul>
       <li class="interlanguage-link interwiki-fa">
        <a class="interlanguage-link-target" href="https://fa.wikipedia.org/wiki/%D8%B1%D8%AF%D9%87:%D8%A7%D9%84%DA%AF%D9%88%D8%B1%DB%8C%D8%AA%D9%85%E2%80%8C%D9%87%D8%A7%DB%8C_%DB%8C%D8%A7%D8%AF%DA%AF%DB%8C%D8%B1%DB%8C_%D9%85%D8%A7%D8%B4%DB%8C%D9%86%DB%8C" hreflang="fa" lang="fa" title="رده:الگوریتم‌های یادگیری ماشینی – Persian">
         فارسی
        </a>
       </li>
       <li class="interlanguage-link interwiki-ko">
        <a class="interlanguage-link-target" href="https://ko.wikipedia.org/wiki/%EB%B6%84%EB%A5%98:%EA%B8%B0%EA%B3%84_%ED%95%99%EC%8A%B5_%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98" hreflang="ko" lang="ko" title="분류:기계 학습 알고리즘 – Korean">
         한국어
        </a>
       </li>
       <li class="interlanguage-link interwiki-ja">
        <a class="interlanguage-link-target" href="https://ja.wikipedia.org/wiki/Category:%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92%E3%82%A2%E3%83%AB%E3%82%B4%E3%83%AA%E3%82%BA%E3%83%A0" hreflang="ja" lang="ja" title="Category:機械学習アルゴリズム – Japanese">
         日本語
        </a>
       </li>
       <li class="interlanguage-link interwiki-sr">
        <a class="interlanguage-link-target" href="https://sr.wikipedia.org/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:%D0%90%D0%BB%D0%B3%D0%BE%D1%80%D0%B8%D1%82%D0%BC%D0%B8_%D0%BC%D0%B0%D1%88%D0%B8%D0%BD%D1%81%D0%BA%D0%BE%D0%B3_%D1%83%D1%87%D0%B5%D1%9A%D0%B0" hreflang="sr" lang="sr" title="Категорија:Алгоритми машинског учења – Serbian">
         Српски / srpski
        </a>
       </li>
       <li class="interlanguage-link interwiki-sh">
        <a class="interlanguage-link-target" href="https://sh.wikipedia.org/wiki/Kategorija:Algoritmi_ma%C5%A1inskog_u%C4%8Denja" hreflang="sh" lang="sh" title="Kategorija:Algoritmi mašinskog učenja – Serbo-Croatian">
         Srpskohrvatski / српскохрватски
        </a>
       </li>
       <li class="interlanguage-link interwiki-uk">
        <a class="interlanguage-link-target" href="https://uk.wikipedia.org/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D1%96%D1%8F:%D0%90%D0%BB%D0%B3%D0%BE%D1%80%D0%B8%D1%82%D0%BC%D0%B8_%D0%BC%D0%B0%D1%88%D0%B8%D0%BD%D0%BD%D0%BE%D0%B3%D0%BE_%D0%BD%D0%B0%D0%B2%D1%87%D0%B0%D0%BD%D0%BD%D1%8F" hreflang="uk" lang="uk" title="Категорія:Алгоритми машинного навчання – Ukrainian">
         Українська
        </a>
       </li>
       <li class="interlanguage-link interwiki-zh">
        <a class="interlanguage-link-target" href="https://zh.wikipedia.org/wiki/Category:%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92%E6%BC%94%E7%AE%97%E6%B3%95" hreflang="zh" lang="zh" title="Category:機器學習演算法 – Chinese">
         中文
        </a>
       </li>
       <li class="uls-p-lang-dummy">
        <a href="#">
        </a>
       </li>
      </ul>
      <div class="after-portlet after-portlet-lang">
       <span class="wb-langlinks-edit wb-langlinks-link">
        <a class="wbc-editpage" href="https://www.wikidata.org/wiki/Q8592571#sitelinks-wikipedia" title="Edit interlanguage links">
         Edit links
        </a>
       </span>
      </div>
     </div>
    </div>
   </div>
  </div>
  <div id="footer" role="contentinfo">
   <ul id="footer-info">
    <li id="footer-info-lastmod">
     This page was last modified on 8 August 2015, at 18:42.
    </li>
    <li id="footer-info-copyright">
     Text is available under the
     <a href="//en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License" rel="license">
      Creative Commons Attribution-ShareAlike License
     </a>
     <a href="//creativecommons.org/licenses/by-sa/3.0/" rel="license" style="display:none;">
     </a>
     ;
additional terms may apply.  By using this site, you agree to the
     <a href="//wikimediafoundation.org/wiki/Terms_of_Use">
      Terms of Use
     </a>
     and
     <a href="//wikimediafoundation.org/wiki/Privacy_policy">
      Privacy Policy
     </a>
     . Wikipedia® is a registered trademark of the
     <a href="//www.wikimediafoundation.org/">
      Wikimedia Foundation, Inc.
     </a>
     , a non-profit organization.
    </li>
   </ul>
   <ul id="footer-places">
    <li id="footer-places-privacy">
     <a class="extiw" href="https://wikimediafoundation.org/wiki/Privacy_policy" title="wmf:Privacy policy">
      Privacy policy
     </a>
    </li>
    <li id="footer-places-about">
     <a href="/wiki/Wikipedia:About" title="Wikipedia:About">
      About Wikipedia
     </a>
    </li>
    <li id="footer-places-disclaimer">
     <a href="/wiki/Wikipedia:General_disclaimer" title="Wikipedia:General disclaimer">
      Disclaimers
     </a>
    </li>
    <li id="footer-places-contact">
     <a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">
      Contact Wikipedia
     </a>
    </li>
    <li id="footer-places-developers">
     <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/How_to_contribute">
      Developers
     </a>
    </li>
    <li id="footer-places-cookiestatement">
     <a href="https://wikimediafoundation.org/wiki/Cookie_statement">
      Cookie statement
     </a>
    </li>
    <li id="footer-places-mobileview">
     <a class="noprint stopMobileRedirectToggle" href="//en.m.wikipedia.org/w/index.php?title=Category:Machine_learning_algorithms&amp;mobileaction=toggle_view_mobile">
      Mobile view
     </a>
    </li>
   </ul>
   <ul class="noprint" id="footer-icons">
    <li id="footer-copyrightico">
     <a href="https://wikimediafoundation.org/">
      <img alt="Wikimedia Foundation" height="31" src="/static/images/wikimedia-button.png" srcset="/static/images/wikimedia-button-1.5x.png 1.5x, /static/images/wikimedia-button-2x.png 2x" width="88"/>
     </a>
    </li>
    <li id="footer-poweredbyico">
     <a href="//www.mediawiki.org/">
      <img alt="Powered by MediaWiki" height="31" src="/static/images/poweredby_mediawiki_88x31.png" srcset="/static/images/poweredby_mediawiki_132x47.png 1.5x, /static/images/poweredby_mediawiki_176x62.png 2x" width="88"/>
     </a>
    </li>
   </ul>
   <div style="clear:both">
   </div>
  </div>
  <script>
   (window.RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgBackendResponseTime":85,"wgHostname":"mw1181"});});
  </script>
 </body>
</html>

Изучив структуру верстки страницы, определим тег, содержащий интересующие нас заголовки


In [134]:
pages = parser.find(string='Pages in category "Machine learning algorithms"')
data_parent = pages.parent.parent.div.div

Названия статей в категории "Machine Learning"


In [135]:
print_tags(data_parent, 'a')


List of machine learning concepts
Almeida–Pineda recurrent backpropagation
Backpropagation
Bootstrap aggregating
CN2 algorithm
Constructing skill trees
Dehaene–Changeux model
Diffusion map
Dominance-based rough set approach
Dynamic time warping
Error-driven learning
Evolutionary multimodal optimization
Expectation–maximization algorithm
FastICA
Forward–backward algorithm
GeneRec
Genetic Algorithm for Rule Set Production
Growing self-organizing map
HEXQ
Hyper basis function network
IDistance
K-nearest neighbors algorithm
Kernel methods for vector output
Kernel principal component analysis
Leabra
Linde–Buzo–Gray algorithm
Local outlier factor
Logic learning machine
LogitBoost
Loss functions for classification
Manifold alignment
Minimum redundancy feature selection
Multiple kernel learning
Non-negative matrix factorization
Online machine learning
Out-of-bag error
Prefrontal cortex basal ganglia working memory
PVLV
Q-learning
Quadratic unconstrained binary optimization
Query level feature
Quickprop
Radial basis function network
Randomized weighted majority algorithm
Reinforcement learning
Rprop
Rule-based machine learning
Skill chaining
Sparse PCA
State-Action-Reward-State-Action
Stochastic gradient descent
T-distributed stochastic neighbor embedding
Temporal difference learning
Wake-sleep algorithm
Weighted Majority Algorithm

In [ ]: