Tabnine Logo
Characteristic.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.dmg.pmml.pmml_4_2.descr.Characteristic
constructor

Best Java code snippets using org.dmg.pmml.pmml_4_2.descr.Characteristic.<init> (Showing top 9 results out of 315)

origin: stackoverflow.com

 @XmlRegistry
public class ObjectFactory {

  @XmlElementDecl(name = "characteristic")
  public JAXBElement<String> createCharacteristic(String value) {
    return new Characteristic(value);
  }

}
origin: org.drools/kie-pmml

/**
 * Create an instance of {@link Characteristic }
 * 
 */
public Characteristic createCharacteristic() {
  return new Characteristic();
}
origin: stackoverflow.com

Characteristic c1 = new Characteristic("Description"); // Using constructor with one String.
origin: stackoverflow.com

 Characteristic client1 = new Characteristic("Dark Hair", 7);
Characteristic client2 = new Characteristic("Dark Hair", 4);
Characteristic client3 = new Characteristic("Light Hair", 6);
client1.getCompatability(client2); // Returns non-zero compatability since descriptions are the same
client1.getCompatability(client3); // Returns zero compatability since descriptions are different
client2.getCompatability(client3); // Returns zero compatability since descriptions are different
origin: stackoverflow.com

 @Test
public void marshallsDynamicElementName() throws JAXBException {
  JAXBContext context = JAXBContext.newInstance(ObjectFactory.class);
  final Characteristics characteristics = new Characteristics();
  final Characteristic characteristic = new Characteristic(
      "store_capacity", "40");
  characteristics.getCharacteristics().add(characteristic);
  context.createMarshaller().marshal(characteristics, System.out);
}
origin: stackoverflow.com

public Characteristic unmarshal(Object v) throws Exception {
  Element element = (Element) v;
  Characteristic characteristic = new Characteristic();
  characteristic.characteristic = element.getLocalName();
  characteristic.value = element.getTextContent();
origin: org.drools/drools-workbench-models-guided-scorecard

  private void checkCharacteristics(PMML pmml) {
    if (pmml != null
        && pmml.getAssociationModelsAndBaselineModelsAndClusteringModels() != null
        && !pmml.getAssociationModelsAndBaselineModelsAndClusteringModels().isEmpty()) {
      for (Serializable s : pmml.getAssociationModelsAndBaselineModelsAndClusteringModels()) {
        if (s instanceof Scorecard) {
          Scorecard scard = (Scorecard) s;
          if (scard.getExtensionsAndCharacteristicsAndMiningSchemas() != null
              && !scard.getExtensionsAndCharacteristicsAndMiningSchemas().isEmpty()) {
            for (Serializable sz : scard.getExtensionsAndCharacteristicsAndMiningSchemas()) {
              if (sz instanceof Characteristics) {
                Characteristics characteristics = (Characteristics) sz;
                if (characteristics.getCharacteristics() == null
                    || characteristics.getCharacteristics().isEmpty()) {
                  Characteristic ch = new Characteristic();
                  ch.setBaselineScore(0.0);
                  ch.setName("placeholder");
                  Attribute attr = new Attribute();
                  attr.setFalse(new False());
                  ch.getAttributes().add(attr);
                  characteristics.getCharacteristics().add(ch);
                }
              }
            }
          }
        }
      }
    }
  }
}
origin: org.drools/drools-scorecards

_characteristic = new Characteristic();
characteristics.getCharacteristics().add(_characteristic);
addExpectation(currentRowCtr + 1, currentColCtr, "name", _characteristic, "Characteristic (Property) Display Name is missing.");
origin: org.drools/drools-workbench-models-guided-scorecard

final Characteristic _characteristic = new Characteristic();
characteristics.getCharacteristics().add(_characteristic);
org.dmg.pmml.pmml_4_2.descrCharacteristic<init>

Popular methods of Characteristic

  • getAttributes
    Gets the value of the attributes property. This accessor method returns a reference to the live list
  • getExtensions
    Gets the value of the extensions property. This accessor method returns a reference to the live list
  • getName
    Gets the value of the name property.
  • getBaselineScore
    Gets the value of the baselineScore property.
  • getCompatability
  • getReasonCode
    Gets the value of the reasonCode property.
  • setBaselineScore
    Sets the value of the baselineScore property.
  • setName
    Sets the value of the name property.
  • setReasonCode
    Sets the value of the reasonCode property.

Popular in Java

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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