Tabnine Logo
EM.pad
Code IndexAdd Tabnine to your IDE (free)

How to use
pad
method
in
weka.clusterers.EM

Best Java code snippets using weka.clusterers.EM.pad (Showing top 2 results out of 315)

origin: nz.ac.waikato.cms.weka/weka-stable

temp.append(pad("Cluster", " ",
 (maxAttWidth + maxWidth + 1) - "Cluster".length(), true));
.append(pad("Attribute", " ", maxAttWidth - "Attribute".length(), false));
 temp.append(pad(classL, " ", maxWidth + 1 - classL.length(), true));
temp.append(pad("", " ", maxAttWidth, true));
for (int i = 0; i < m_num_clusters; i++) {
 String priorP = Utils.doubleToString(m_priors[i], maxWidth, 2).trim();
 priorP = "(" + priorP + ")";
 temp.append(pad(priorP, " ", maxWidth + 1 - priorP.length(), true));
temp.append(pad("", "=", maxAttWidth + (maxWidth * m_num_clusters)
 + m_num_clusters + 1, true));
temp.append("\n");
  temp.append(pad(meanL, " ", maxAttWidth + 1 - meanL.length(), false));
  for (int j = 0; j < m_num_clusters; j++) {
   temp.append(pad(mean, " ", maxWidth + 1 - mean.length(), true));
  .append(pad(stdDevL, " ", maxAttWidth + 1 - stdDevL.length(), false));
  for (int j = 0; j < m_num_clusters; j++) {
   String stdDev = Utils.doubleToString(m_modelNormal[j][i][1],
    maxWidth, 4).trim();
   temp.append(pad(stdDev, " ", maxWidth + 1 - stdDev.length(), true));
  for (int j = 0; j < a.numValues(); j++) {
origin: Waikato/weka-trunk

temp.append(pad("Cluster", " ",
 (maxAttWidth + maxWidth + 1) - "Cluster".length(), true));
.append(pad("Attribute", " ", maxAttWidth - "Attribute".length(), false));
 temp.append(pad(classL, " ", maxWidth + 1 - classL.length(), true));
temp.append(pad("", " ", maxAttWidth, true));
for (int i = 0; i < m_num_clusters; i++) {
 String priorP = Utils.doubleToString(m_priors[i], maxWidth, 2).trim();
 priorP = "(" + priorP + ")";
 temp.append(pad(priorP, " ", maxWidth + 1 - priorP.length(), true));
temp.append(pad("", "=", maxAttWidth + (maxWidth * m_num_clusters)
 + m_num_clusters + 1, true));
temp.append("\n");
  temp.append(pad(meanL, " ", maxAttWidth + 1 - meanL.length(), false));
  for (int j = 0; j < m_num_clusters; j++) {
   temp.append(pad(mean, " ", maxWidth + 1 - mean.length(), true));
  .append(pad(stdDevL, " ", maxAttWidth + 1 - stdDevL.length(), false));
  for (int j = 0; j < m_num_clusters; j++) {
   String stdDev = Utils.doubleToString(m_modelNormal[j][i][1],
    maxWidth, 4).trim();
   temp.append(pad(stdDev, " ", maxWidth + 1 - stdDev.length(), true));
  for (int j = 0; j < a.numValues(); j++) {
weka.clusterersEMpad

Popular methods of EM

  • <init>
    Constructor.
  • setNumClusters
    Set the number of clusters (-1 to select by CV).
  • CVClusters
    estimate the number of clusters by cross validation on the training data.
  • E
    The E step of the EM algorithm. Estimate cluster membership probabilities.
  • EM_Init
    Initialize the global aggregated estimators and storage.
  • EM_Report
    verbose output for debugging
  • M
    The M step of the EM algorithm.
  • M_reEstimate
  • buildClusterer
    Generates a clusterer. Has to initialize all fields of the clusterer that are not being set via opti
  • distributionForInstance
  • doEM
    Perform the EM algorithm
  • estimate_priors
    calculate prior probabilites for the clusters
  • doEM,
  • estimate_priors,
  • getCapabilities,
  • getMaximumNumberOfClusters,
  • getMinLogLikelihoodImprovementCV,
  • getMinLogLikelihoodImprovementIterating,
  • getMinStdDev,
  • getNumClusters,
  • getNumExecutionSlots,
  • getNumFolds

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • addToBackStack (FragmentTransaction)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now