1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class MatSeqDataSet</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class <A HREF="#DOC.DOCU">MatSeqDataSet</A></H2></H2><BLOCKQUOTE>This class enable to read sequences (hence inherits from <TT>SeqDataSet</TT>) from the classical Torch data format.</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=125>
<param name=classes value="CObject,MObject.html,CDataSet,MDataSet.html,CSeqDataSet,MSeqDataSet.html,CMatSeqDataSet,MMatSeqDataSet.html">
<param name=before value="M,M,M,M">
<param name=after value="Md_SPSP,Md_SP,Md_,M">
<param name=indent value="0,1,2,3">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.101.1">examples_from_stddataset</A></B>
<DD><I>this boolean is used to know if the data has already been read by a <TT>StdDataSet</TT> and hence do not need to be freed at the end</I>
</DL></P>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.101.2">MatSeqDataSet</A></B>( <!1><A HREF="StdDataSet.html">StdDataSet</A>* <!1><A HREF="SVM.html#DOC.42.1">data</A>, int n_inputs_, int n_observations_)
<DD><I>puts a data set in the Sequence framework</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.101.4">readMat</A></B>( char* <!1><A HREF="Measurer.html#DOC.30.2">file</A>, bool bin=false, int max_load=-1 )
<DD><I>reads the data into the <TT>all_inputs</TT> structure which will be transfered in the <TT>examples</TT> structure in <TT>createData</TT></I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.101.5">lines</A></B>( char*, bool bin )
<DD><I>finds the number of lines in all of the given files </I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.101.6">columns</A></B>( char*, bool bin )
<DD><I>finds the number of columns in a file </I>
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.101.3">the following method is inherited from <TT>SeqDataSet</TT> </A></B>
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="SeqDataSet.html">SeqDataSet</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Fields</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="SeqExample.html">SeqExample</A>* <B>examples</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>char** <B>file_names</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>n_file_names</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>bool <B>norm_inputs</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>bool <B>norm_observations</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>real* <B>mean_in</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>real* <B>mean_ob</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>real* <B>stdv_in</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>real* <B>stdv_ob</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>current_frame</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>n_frames</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>n_observations</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>tot_n_frames</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>char* <B>kind</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>n_seqtargets</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>real** <B>seqtargets</B>
</DL></P>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>freeMemory</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>removeUnlikelyFrames</B>(<!1><A HREF="Distribution.html">Distribution</A>* likely_distr, <!1><A HREF="Distribution.html">Distribution</A>* unlikely_distr, int obs_offset = 0, int range=5)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>removeUnusedData</B>(bool* mask)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>normalizeUsingDataSet</B>( <!1><A HREF="SeqDataSet.html">SeqDataSet</A>* )
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>normalize</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setFrame</B>( int )
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>totNFrames</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>toOneFramePerExample</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>readTargets</B>(char* <!1><A HREF="Measurer.html#DOC.30.2">file</A>)
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>readAlignments</B>(char* <!1><A HREF="Measurer.html#DOC.30.2">file</A>, bool needs_all_examples = false)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setSelectedFrames</B>( int* <!1><A HREF="SeqExample.html#DOC.107.10">selected_frames</A>, int n_selected_frames )
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>unsetSelectedFrames</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>display</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>loadFILE</B>(FILE* <!1><A HREF="Measurer.html#DOC.30.2">file</A>)
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>saveFILE</B>(FILE* <!1><A HREF="Measurer.html#DOC.30.2">file</A>)
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="DataSet.html">DataSet</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Fields</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>int* <B>selected_examples</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>current_example</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>n_targets</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>void* <B>targets</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>n_inputs</B>
<DT>
<IMG ALT="o" SRC=icon2.gif><!1><A HREF="List.html">List</A>* <B>inputs</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>n_examples</B>
<DT>
<IMG ALT="o" SRC=icon2.gif>int <B>n_real_examples</B>
</DL></P>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setExample</B>(int t)
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>setRealExample</B>(int t)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>pushSubset</B>(int* subset_, int n_examples_)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>popSubset</B>()
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Object.html">Object</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>init</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>addOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, int size, void* <!1><A HREF="Vec.html#DOC.81.3">ptr</A>, const char* <!1><A HREF="CmdLine.html#DOC.7.3">help</A>="", bool is_allowed_after_init=false)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>addIOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, int* <!1><A HREF="Vec.html#DOC.81.3">ptr</A>, int init_value, const char* <!1><A HREF="CmdLine.html#DOC.7.3">help</A>="", bool is_allowed_after_init=false)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>addROption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, real* <!1><A HREF="Vec.html#DOC.81.3">ptr</A>, real init_value, const char* <!1><A HREF="CmdLine.html#DOC.7.3">help</A>="", bool is_allowed_after_init=false)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>addBOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, bool* <!1><A HREF="Vec.html#DOC.81.3">ptr</A>, bool init_value, const char* <!1><A HREF="CmdLine.html#DOC.7.3">help</A>="", bool is_allowed_after_init=false)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, void* <!1><A HREF="Vec.html#DOC.81.3">ptr</A>)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setIOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, int option)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setROption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, real option)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setBOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, bool option)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>load</B>(const char* filename)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>save</B>(const char* filename)
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>This class enable to read sequences (hence inherits from <TT>SeqDataSet</TT>)
from the classical Torch data format. Depending on the options, it
can read one sequence per line (thus having sequences of size 1)
or one sequence per file (then having sequences of size the size of
the files). One can specify the number of inputs, observations and
targets in the given file.
<P></BLOCKQUOTE>
<DL>
<A NAME="examples_from_stddataset"></A>
<A NAME="DOC.101.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool examples_from_stddataset</B></TT>
<DD>this boolean is used to know if the data has already been read
by a <TT>StdDataSet</TT> and hence do not need to be freed at the end
<DL><DT><DD></DL><P>
<A NAME="MatSeqDataSet"></A>
<A NAME="DOC.101.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> MatSeqDataSet( <!1><A HREF="StdDataSet.html">StdDataSet</A>* <!1><A HREF="SVM.html#DOC.42.1">data</A>, int n_inputs_, int n_observations_)</B></TT>
<DD>puts a data set in the Sequence framework
<DL><DT><DD></DL><P>
<A NAME="the following method is inherited from #SeqDataSet# "></A>
<A NAME="DOC.101.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> the following method is inherited from <TT>SeqDataSet</TT> </B></TT>
<DD>the following method is inherited from <TT>SeqDataSet</TT>
<DL><DT><DD></DL><P>
<A NAME="readMat"></A>
<A NAME="DOC.101.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void readMat( char* <!1><A HREF="Measurer.html#DOC.30.2">file</A>, bool bin=false, int max_load=-1 )</B></TT>
<DD>reads the data into the <TT>all_inputs</TT> structure which
will be transfered in the <TT>examples</TT> structure in
<TT>createData</TT>
<DL><DT><DD></DL><P>
<A NAME="lines"></A>
<A NAME="DOC.101.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int lines( char*, bool bin )</B></TT>
<DD>finds the number of lines in all of the given files
<DL><DT><DD></DL><P>
<A NAME="columns"></A>
<A NAME="DOC.101.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int columns( char*, bool bin )</B></TT>
<DD>finds the number of columns in a file
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
<DL><DT><DT><B>Author:</B><DD>Bison Ravi (francois.belisle@idiap.ch)
Samy Bengio (samy.bengio@idiap.ch)
<DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
|