Java Doc for TLDSimple.java in  » Science » weka » weka » classifiers » mi » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » weka » weka.classifiers.mi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


weka.classifiers.RandomizableClassifier
   weka.classifiers.mi.TLDSimple

TLDSimple
public class TLDSimple extends RandomizableClassifier implements OptionHandler,MultiInstanceCapabilitiesHandler,TechnicalInformationHandler(Code)
A simpler version of TLD, mu random but sigma^2 fixed and estimated via data.

For more information see:

Xin Xu (2003). Statistical learning in multiple instance problem. Hamilton, NZ.

BibTeX:

 @mastersthesis{Xu2003,
 address = {Hamilton, NZ},
 author = {Xin Xu},
 note = {0657.594},
 school = {University of Waikato},
 title = {Statistical learning in multiple instance problem},
 year = {2003}
 }
 

Valid options are:

 -C
 Set whether or not use empirical
 log-odds cut-off instead of 0
 -R <numOfRuns>
 Set the number of multiple runs 
 needed for searching the MLE.
 -S <num>
 Random number seed.
 (default 1)
 -D
 If set, classifier is run in debug mode and
 may output additional info to the console

author:
   Eibe Frank (eibe@cs.waikato.ac.nz)
author:
   Xin Xu (xx5@cs.waikato.ac.nz)
version:
   $Revision: 1.5 $


Field Summary
public static  doubleZERO
    
protected  double[]m_Class
    
protected  doublem_Cutoff
    
protected  intm_Dimension
     The dimension of each exemplar, i.e.
protected  double[][]m_MeanN
    
protected  double[][]m_MeanP
    
protected  intm_NumClasses
    
protected  double[]m_ParamsN
    
protected  double[]m_ParamsP
    
protected  intm_Run
    
protected  double[]m_SgmSqN
    
protected  double[]m_SgmSqP
    
protected  double[][]m_SumN
    
protected  double[][]m_SumP
    
protected  booleanm_UseEmpiricalCutOff
    
final static  longserialVersionUID
    


Method Summary
public  voidbuildClassifier(Instances exs)
    
public  doubleclassifyInstance(Instance ex)
    
public  double[]distributionForInstance(Instance ex)
    
public  CapabilitiesgetCapabilities()
     Returns default capabilities of the classifier.
public  CapabilitiesgetMultiInstanceCapabilities()
     Returns the capabilities of this multi-instance classifier for the relational data.
public  intgetNumRuns()
     Returns the number of runs to perform.
public  String[]getOptions()
     Gets the current settings of the Classifier.
public  TechnicalInformationgetTechnicalInformation()
     Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
public  booleangetUsingCutOff()
    
public  StringglobalInfo()
    
public  EnumerationlistOptions()
    
public static  voidmain(String[] args)
     Main method for testing.
public  StringnumRunsTipText()
    
public  voidsetNumRuns(int numRuns)
     Sets the number of runs to perform.
public  voidsetOptions(String[] options)
     Parses a given list of options.
public  voidsetUsingCutOff(boolean cutOff)
     Sets whether to use an empirical cutoff.
public  StringtoString()
     Gets a string describing the classifier.
public  StringusingCutOffTipText()
    

Field Detail
ZERO
public static double ZERO(Code)
The very small number representing zero



m_Class
protected double[] m_Class(Code)
The class label of each exemplar



m_Cutoff
protected double m_Cutoff(Code)



m_Dimension
protected int m_Dimension(Code)
The dimension of each exemplar, i.e. (numAttributes-2)



m_MeanN
protected double[][] m_MeanN(Code)
The mean for each attribute of each negative exemplar



m_MeanP
protected double[][] m_MeanP(Code)
The mean for each attribute of each positive exemplar



m_NumClasses
protected int m_NumClasses(Code)
The number of class labels in the data



m_ParamsN
protected double[] m_ParamsN(Code)
The parameters to be estimated for each negative exemplar



m_ParamsP
protected double[] m_ParamsP(Code)
The parameters to be estimated for each positive exemplar



m_Run
protected int m_Run(Code)



m_SgmSqN
protected double[] m_SgmSqN(Code)
Estimated sigma^2 in negative bags



m_SgmSqP
protected double[] m_SgmSqP(Code)
Estimated sigma^2 in positive bags



m_SumN
protected double[][] m_SumN(Code)
The effective sum of weights of each negative exemplar in each dimension



m_SumP
protected double[][] m_SumP(Code)
The effective sum of weights of each positive exemplar in each dimension



m_UseEmpiricalCutOff
protected boolean m_UseEmpiricalCutOff(Code)



serialVersionUID
final static long serialVersionUID(Code)
for serialization





Method Detail
buildClassifier
public void buildClassifier(Instances exs) throws Exception(Code)

Parameters:
  exs - the training exemplars
throws:
  Exception - if the model cannot be built properly



classifyInstance
public double classifyInstance(Instance ex) throws Exception(Code)

Parameters:
  ex - the given test exemplar the classification
throws:
  Exception - if the exemplar could not be classifiedsuccessfully



distributionForInstance
public double[] distributionForInstance(Instance ex) throws Exception(Code)
Computes the distribution for a given exemplar
Parameters:
  ex - the exemplar for which distribution is computed the distribution
throws:
  Exception - if the distribution can't be computed successfully



getCapabilities
public Capabilities getCapabilities()(Code)
Returns default capabilities of the classifier. the capabilities of this classifier



getMultiInstanceCapabilities
public Capabilities getMultiInstanceCapabilities()(Code)
Returns the capabilities of this multi-instance classifier for the relational data. the capabilities of this object
See Also:   Capabilities



getNumRuns
public int getNumRuns()(Code)
Returns the number of runs to perform. the number of runs to perform



getOptions
public String[] getOptions()(Code)
Gets the current settings of the Classifier. an array of strings suitable for passing to setOptions



getTechnicalInformation
public TechnicalInformation getTechnicalInformation()(Code)
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on. the technical information about this class



getUsingCutOff
public boolean getUsingCutOff()(Code)
Returns whether an empirical cutoff is used true if an empirical cutoff is used



globalInfo
public String globalInfo()(Code)
Returns a string describing this filter a description of the filter suitable fordisplaying in the explorer/experimenter gui



listOptions
public Enumeration listOptions()(Code)
Returns an enumeration describing the available options an enumeration of all the available options



main
public static void main(String[] args)(Code)
Main method for testing.
Parameters:
  args - the options for the classifier



numRunsTipText
public String numRunsTipText()(Code)
Returns the tip text for this property tip text for this property suitable fordisplaying in the explorer/experimenter gui



setNumRuns
public void setNumRuns(int numRuns)(Code)
Sets the number of runs to perform.
Parameters:
  numRuns - the number of runs to perform



setOptions
public void setOptions(String[] options) throws Exception(Code)
Parses a given list of options.

Valid options are:

 -C
 Set whether or not use empirical
 log-odds cut-off instead of 0
 -R <numOfRuns>
 Set the number of multiple runs 
 needed for searching the MLE.
 -S <num>
 Random number seed.
 (default 1)
 -D
 If set, classifier is run in debug mode and
 may output additional info to the console

Parameters:
  options - the list of options as an array of strings
throws:
  Exception - if an option is not supported



setUsingCutOff
public void setUsingCutOff(boolean cutOff)(Code)
Sets whether to use an empirical cutoff.
Parameters:
  cutOff - whether to use an empirical cutoff



toString
public String toString()(Code)
Gets a string describing the classifier. a string describing the classifer built.



usingCutOffTipText
public String usingCutOffTipText()(Code)
Returns the tip text for this property tip text for this property suitable fordisplaying in the explorer/experimenter gui



Fields inherited from weka.classifiers.RandomizableClassifier
protected int m_Seed(Code)(Java Doc)

Methods inherited from weka.classifiers.RandomizableClassifier
public String[] getOptions()(Code)(Java Doc)
public int getSeed()(Code)(Java Doc)
public Enumeration listOptions()(Code)(Java Doc)
public String seedTipText()(Code)(Java Doc)
public void setOptions(String[] options) throws Exception(Code)(Java Doc)
public void setSeed(int seed)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.