[ 
https://issues.apache.org/jira/browse/MAHOUT-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830741#action_12830741
 ] 

Jeff Eastman commented on MAHOUT-270:
-------------------------------------

I'd like to deprecate the asFormatString() methods in Vector, Matrix and 
elsewhere, replacing instead with a new interface:

{code}
public interface Printable {

  /**
   * Produce a custom, printable representation of the receiver.
   * 
   * @param bindings an optional String[] containing label bindings used to 
format the primary 
   *    Vector/s of this implementation.
   * @return a String
   */
  public String asFormatString(String[] bindings);

  /**
   * Produce a printable representation of the receiver using Json. (Label 
bindings
   * are transient and not part of the Json representation)
   * 
   * @return a Json String
   */
  public String asJsonString();

}
{code}

This interface would be implemented by all classes that currently implement 
Writable and which need to be dumped by the cluster dumper. This includes 
ClusterBase and DirichletCluster and Model. Implementing these changes would 
allow the cluster dumper to dump both species of clusters.


> Make ClusterDumper dump Dirichlet clusters too
> ----------------------------------------------
>
>                 Key: MAHOUT-270
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-270
>             Project: Mahout
>          Issue Type: Improvement
>          Components: Clustering
>    Affects Versions: 0.2
>            Reporter: Jeff Eastman
>            Assignee: Jeff Eastman
>
> Given the binary representation of models/clusters in Dirichlet, extend the 
> ClusterDumper utility to dump out a printable representation of them too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to