⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 convert_data_to_ranking_format.html

📁 RankBoost算法实现
💻 HTML
字号:
<html xmlns:mwsh="http://www.mathworks.com/namespace/mcode/v1/syntaxhighlight.dtd">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
      <!--
This HTML is auto-generated from an M-file.
To make changes, update the M-file and republish this document.
      -->
      <title>convert_data_to_ranking_format</title>
      <meta name="generator" content="MATLAB 7.2">
      <meta name="date" content="2006-10-08">
      <meta name="m-file" content="script_convert_data_to_ranking_format"><style>

body {
  background-color: white;
  margin:10px;
}

h1 {
  color: #990000; 
  font-size: x-large;
}

h2 {
  color: #990000;
  font-size: medium;
}

/* Make the text shrink to fit narrow windows, but not stretch too far in 
wide windows.  On Gecko-based browsers, the shrink-to-fit doesn't work. */ 
p,h1,h2,div.content div {
  /* for MATLAB's browser */
  width: 600px;
  /* for Mozilla, but the "width" tag overrides it anyway */
  max-width: 600px;
  /* for IE */
  width:expression(document.body.clientWidth > 620 ? "600px": "auto" );
}

pre.codeinput {
  background: #EEEEEE;
  padding: 10px;
}
@media print {
  pre.codeinput {word-wrap:break-word; width:100%;}
} 

span.keyword {color: #0000FF}
span.comment {color: #228B22}
span.string {color: #A020F0}
span.untermstring {color: #B20000}
span.syscmd {color: #B28C00}

pre.codeoutput {
  color: #666666;
  padding: 10px;
}

pre.error {
  color: red;
}

p.footer {
  text-align: right;
  font-size: xx-small;
  font-weight: lighter;
  font-style: italic;
  color: gray;
}

  </style></head>
   <body>
      <div class="content">
         <h1>convert_data_to_ranking_format</h1>
         <introduction>
            <p>Converts the data to a format suitable for my ranking experiments.</p>
         </introduction>
         <h2>Contents</h2>
         <div>
            <ul>
               <li><a href="#1">Syntax</a></li>
               <li><a href="#2">Description</a></li>
               <li><a href="#3">Input</a></li>
               <li><a href="#5">Ouput</a></li>
               <li><a href="#13">Signature</a></li>
            </ul>
         </div>
         <h2>Syntax<a name="1"></a></h2><pre>[data]=convert_data_to_ranking_format(X,y,graph_type)</pre><h2>Description<a name="2"></a></h2>
         <h2>Input<a name="3"></a></h2>
         <div>
            <ul>
               <li>X ... d x N matrix, each column is one input.</li>
               <li>y ... 1 x N vector of the corresponding class which each input belongs to.</li>
               <li>graph_type ... can be either 'full' or 'chain'</li>
            </ul>
         </div>
         <h2>Ouput<a name="5"></a></h2>
         <div>
            <ul>
               <li>data ... structure containing the various information regarding the ranking task at hand.</li>
            </ul>
         </div>
         <p>Basic information---</p>
         <div>
            <ul>
               <li>data.N ... number of data points</li>
               <li>data.d ... data dimensionality</li>
               <li>data.S ... number of classes</li>
               <li>data.m ... number of inputs in each class</li>
            </ul>
         </div>
         <p>Actual data---</p>
         <div>
            <ul>
               <li>data.labels ... vector of class labels</li>
               <li>data.X ... cell array where each cell contains the data belonging to one class</li>
               <li>data.index ... index of the data belonging to one class</li>
               <li>data.X_raw ... d x N original data matrix</li>
               <li>data.y_raw ... 1 x N vector of the class labels</li>
            </ul>
         </div>
         <p>Preference graph---</p>
         <div>
            <ul>
               <li>data.graph_type ... graph type</li>
               <li>data.C ... number of edges in the preference graph</li>
               <li>data.G ... data.C x 2 matrix encoding the preference relations. The class in the second column is preferred over that in the
                  first column.
               </li>
               <li>data.num_of_pairs ... total number of pairwise preference realtions</li>
            </ul>
         </div>
         <h2>Signature<a name="13"></a></h2>
         <div>
            <ul>
               <li><b>Author:</b> Vikas Chandrakant Raykar
               </li>
               <li><b>E-Mail:</b> <a href="mailto:vikas@cs.umd.edu">vikas@cs.umd.edu</a> Date: September 24, 2006
               </li>
            </ul>
         </div>
         <p class="footer"><br>
            Published with wg_publish; V1.0<br></p>
      </div>
      <!--
##### SOURCE BEGIN #####
%% convert_data_to_ranking_format
% Converts the data to a format suitable for my ranking experiments.
%% Syntax
%  [data]=convert_data_to_ranking_format(X,y,graph_type)
%% Description
%%
%% Input
%%
%%
% * X ... d x N matrix, each column is one input.
% * y ... 1 x N vector of the corresponding class which each input belongs to.
% * graph_type ... can be either 'full' or 'chain'
%%
%% Ouput
%%
%%
% * data ... structure containing the various information regarding the ranking task at hand.
%%
% Basic informationREPLACE_WITH_DASH_DASH-
%%
%%
% * data.N ... number of data points
% * data.d ... data dimensionality
% * data.S ... number of classes
% * data.m ... number of inputs in each class
%%
% Actual dataREPLACE_WITH_DASH_DASH-
%%
%%
% * data.labels ... vector of class labels
% * data.X ... cell array where each cell contains the data belonging to one class
% * data.index ... index of the data belonging to one class
% * data.X_raw ... d x N original data matrix
% * data.y_raw ... 1 x N vector of the class labels
%%
% Preference graphREPLACE_WITH_DASH_DASH-
%%
%%
% * data.graph_type ... graph type
% * data.C ... number of edges in the preference graph
% * data.G ... data.C x 2 matrix encoding the preference relations. The class in the second column is preferred over that in the first column.
% * data.num_of_pairs ... total number of pairwise preference realtions
%%
%% Signature
%%
%%
% * *Author:* Vikas Chandrakant Raykar
% * *E-Mail:* vikas@cs.umd.edu
% Date: September 24, 2006
%%
%%
%%
%

##### SOURCE END #####
-->
   </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -