Tabnine Logo
InstanceQueryAdapter
Code IndexAdd Tabnine to your IDE (free)

How to use
InstanceQueryAdapter
in
weka.experiment

Best Java code snippets using weka.experiment.InstanceQueryAdapter (Showing top 2 results out of 315)

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

public static Instances retrieveInstances(InstanceQueryAdapter adapter,
 ResultSet rs) throws Exception {
 if (adapter.getDebug()) {
  System.err.println("Getting metadata...");
 if (adapter.getDebug()) {
  System.err.println("Completed getting metadata...");
  switch (adapter.translateDBColumnType(md.getColumnTypeName(i))) {
 if (adapter.getDebug()) {
  System.err.println("Creating instances...");
 while (rs.next()) {
  if (rowCount % 100 == 0) {
   if (adapter.getDebug()) {
    System.err.print("read " + rowCount + " instances \r");
    System.err.flush();
   switch (adapter.translateDBColumnType(md.getColumnTypeName(i))) {
   case STRING:
    String str = rs.getString(i);
  if (adapter.getSparseData()) {
   newInst = new SparseInstance(1.0, vals);
  } else {
 if (adapter.getDebug()) {
  System.err.println("Creating header...");
origin: Waikato/weka-trunk

public static Instances retrieveInstances(InstanceQueryAdapter adapter,
 ResultSet rs) throws Exception {
 if (adapter.getDebug()) {
  System.err.println("Getting metadata...");
 if (adapter.getDebug()) {
  System.err.println("Completed getting metadata...");
  switch (adapter.translateDBColumnType(md.getColumnTypeName(i))) {
 if (adapter.getDebug()) {
  System.err.println("Creating instances...");
 while (rs.next()) {
  if (rowCount % 100 == 0) {
   if (adapter.getDebug()) {
    System.err.print("read " + rowCount + " instances \r");
    System.err.flush();
   switch (adapter.translateDBColumnType(md.getColumnTypeName(i))) {
   case STRING:
    String str = rs.getString(i);
  if (adapter.getSparseData()) {
   newInst = new SparseInstance(1.0, vals);
  } else {
 if (adapter.getDebug()) {
  System.err.println("Creating header...");
weka.experimentInstanceQueryAdapter

Javadoc

An interface implemented by InstanceQuery and any user class that is to be passed as the first argument to InstanceQuery.retrieveInstances(InstanceQueryAdapter, ResultSet).

Most used methods

  • attributeCaseFix
    returns key column headings in their original case. Used for those databases that create uppercase c
  • getDebug
    Gets whether there should be printed some debugging output to stderr or not.
  • getSparseData
    Gets whether data is to be returned as a set of sparse instances
  • translateDBColumnType
    translates the column data type string to an integer value that indicates which data type / get()-Me

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • Menu (java.awt)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • String (java.lang)
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JLabel (javax.swing)
  • Best plugins for Eclipse
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