PMML Export using Java and ODM 10.2

I'm attempting to export a model I've built in ODM using Java and the example code in dmexpimpdemo.java. I'm getting an error when trying to set an additional attribute to export the data as PMML.
exportTask.setFormat(ImportExportFormat.PMML2_1);
If I call this method (with any ImportExportFormat) I get the exception:
javax.datamining.JDMUnsupportedFeatureException: Unsupported ExportTask for PMML2_1
What is the proper way to export a model as PMML using the JAVA APIs?

PMML Export is not supported by the ODM 10.2. Hence you see unsupported exception.
ODM 10.2 supports only Oracle native format support for the mining model export and import. For more details about the usage refer to the demo program dmexpimpdemo.java.
To download sample programs from OTN http://www.oracle.com/technology/products/bi/odm/samples/odm_sample_code_0805.zip
For decision tree model you can export the model details in PMML format using the DBMS_DATA_MINING.get_model_details_xml. For example, the following query returns the PMML format decision tree model as an Oracle Database XMLType
select dbms_data_mining.get_model_details_xml('TREE_MODEL').extract('/') AS DT_DETAILS FROM dual
Regards
Sunil

Similar Messages

  • Re user tip: How can I import a homemade DVD into iMovie for editing? - I've followed instructions so far so good, until I get to "You can then FILE/EXPORT USING QUICKTIME and choose Apple Intermediate Codec as your video codec. "  How do I do that?

    Re AppleMan 1958 excellent user tip: How can I import a homemade DVD into iMovie for editing? -
    I've followed instructions with success until  "You can then FILE/EXPORT USING QUICKTIME and choose Apple Intermediate Codec as your video codec. "  How do I do that?
    I installed MGEG Streamclip 193b8 and used their utility to install quicktimempeg2 and got a message stating it was successfully installed.  (I'm on latest Maverick 10.9.2 on iMac)  Then I dragged the VIDEO_TS file from my home DVD into the streamclip app.  It asked which of 4 files to use, and I selected the first one.  Streamclip played the video with the sound.  so far so good. but now I cannot figure how to use quicktime player 10.3 to export this vob file out of streamclip.

    Thank you for your quick reply and for clearing up my confusion.  I'm exporting the first section now.  I choose the smallest size, 3x4 but I'd prefer to go higher as this DVD was originally a VHS home movie.  I'm wondering if after three conversions (VHS,->DVD->MPEG) the resolution will be so poor as to not support a larger size frame?  If it can, what size should I select when I export? 

  • Sending udp packets using java and receiving it using c

    hi,
    Is it possible to send udp packets using java and receive the same using c??????? if yes.... plz help immediately.

    The biggest issue is data format. The JVM is big endian, with 16-bit characters. The machine running 'C' could be almost anything. A (signed!) byte array is probably the easiest unit of exchange.
    The Java program has its own techniques for storing/retrieving data to/from the byte array - and the C program has its own techniques. ASCII Strings are often the easiest to exchange - just convert the java String objects to byte array and send them.
    apaliwal1 has already given the UDP calls to send/receive the data.

  • Want To create Zip file  using java,And Unzip without Java Program

    I want to create a zip text file using java, I know Using ZipOutputStream , we can create a zip file, , But i want to open that zip file without java program. suppose i use ZipOutputStream , then zip file is created But for unZip also difftrent program require. We cant open that zip file without writing diff java program.
    Actually i have one text file of big size want to create zip file using java , and unzip simply without java program.Its Possible??
    Here is one answer But I want to open that file normal way(
    For Exp. using winzip we can create a zip file and also open simply)
    http://forum.java.sun.com/thread.jspa?threadID=5182691&tstart=0

    Thanks for your Reply,
    I m creating a zip file using this program, Zip file Created successfully But when im trying to open .zip file i m getting error like "Canot open a zip file, it does not appear to be valid Archive"
    import java.io.*;
    import java.util.zip.*;
    public class ZipFileCreation
         public static void main (String argv[])
         try {
         FileOutputStream fos = new FileOutputStream ( "c:/a.zip" );
         ZipOutputStream zip = new ZipOutputStream ( fos );
         zip.setLevel( 9 );
         zip.setMethod( ZipOutputStream.DEFLATED );
    //     get the element file we are going to add, using slashes in name.
         String elementName = "c:/kalpesh/GetSigRoleInfo092702828.txt";
         File elementFile = new File ( elementName );
    //     create the entry
         ZipEntry entry = new ZipEntry( elementName );
         entry.setTime( elementFile.lastModified() );
    //     read contents of file we are going to put in the zip
         int fileLength = (int)elementFile.length();
         System.out.println("fileLength = " +fileLength);
         FileInputStream fis = new FileInputStream ( elementFile );
         byte[] wholeFile = new byte [fileLength];
         int bytesRead = fis.read( wholeFile , 0 /* offset */ , fileLength );
    //     checking bytesRead not shown.
         fis.close();
    //     no need to setCRC, or setSize as they are computed automatically.
         zip.putNextEntry( entry );
    //     write the contents into the zip element
         zip.write( wholeFile , 0, fileLength );
         zip.closeEntry(); System.out.println("Completed");
    //     close the entire zip
         catch(Exception e) {
    e.printStackTrace();
    }

  • Difference between using Java and Non-Java in Webi.

    Hi ,
    I have one more question requesting for an answer.
    Would like to know what is the Difference between using Java and Non-Java in Webi.
    Thank You in advance.
    Appana Ganesh.

    Hi,
    check the Information in following post, the differences are discussed there:
    http://scn.sap.com/thread/3295306
    best regards,
    Victor

  • Cannot export in TXT formate using java and getting UnknownExportFormat exc

    I am using latest jars fro java and i could create report in the following formats
    u2022 _crystalReports
    u2022 _MSWord
    u2022 _MSExcel
    u2022 _RTF
    u2022 _editableRTF
    but when i try to create in any of these formates hereunder
    u2022 _text
    u2022 _characterSeparatedValues
    u2022 _tabSeparatedText
    u2022 _XML
    i am getting the following error
    2010-05-26 10:36:25,534,,ERROR,com.crystaldecisions.reports.common Failed to load the resource 'UnknownExportFormat' from the bundle java.util.PropertyResourceBundle@39826.
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key UnknownExportFormat
    at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
    at java.util.ResourceBundle.getString(ResourceBundle.java:285)
    at com.crystaldecisions.reports.common.CrystalResources.loadString(Unknown Source)
    at com.crystaldecisions.reports.common.CrystalResources.loadMessage(Unknown Source)
    at com.crystaldecisions.reports.common.CrystalResourcesFactory.getLocalizedMessage(Unknown Source)
    at com.crystaldecisions.reports.common.CrystalException.getLocalizedMessage(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(Unknown Source)
    at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.businessobjects.sdk.erom.jrc.a.a(Unknown Source)
    at com.businessobjects.sdk.erom.jrc.a.execute(Unknown Source)
    Could anybody please advise me this is not supported or if i am missing something.
    Thanks in advance

    This is expected behavior; the formats that do not work for you are unavailable in Crystal Reports for Eclipse.  To get access to those formats you will need to use the managed version of the Report Application Server API; this is available in Crystal Reports Server, Business Objects Edge and Business Objects Enterprise.

  • Query resultset to xml using java and XML schema

    Hi,
    I query data using JDBC and I want to store it to an XML file which has a well defined XML schema. I searched a lot in the forum but did not find an answer. Please guide me to create this program.
    I have managed to use JDBC to get result set but I do not know how to export is to XML using XSD and Java.
    Please help.
    Regards,
    Ravi

    I have managed to use JDBC to get result set but I do
    not know how to export is to XML using XSD and Java.Export using XSD? Schemas are for validation.
    Iterate through the result set, and build up the XML stream by creating an entry for each row.
    Another way to do it is to load the ResultSet into a Java object and serialize that to XML using something like XStream.
    %

  • Exporting using exp and TRIGGERS=N doesn't  work

    Exporting using exp on version Export: Release 8.1.6.0.0 - with the option TRIGGERS=N stills exports with triggers. is it a bug ?
    Any sugesttions ?

    This is actually a known behaviour.
    As of table level export, all the dependent objects are exported and is expected namely, indexes, constraints, triggers... and even restricting with other parameters set to n will not disable their export.
    As of schema level export, the whole schema is exported and with this we can pose our restrictions like no constraints, no rows, no indexes, no triggers etc.. which will work because we have control.
    For table level export we dont have control on individual objects. 10g solves your problem.

  • Error using java and javascript

    I have a jsp page that links to a bean and is working fine (getting data from the database).
    On a html form I have a button with a picture that fires off javascript when clicked:
    <BUTTON TYPE=reset onclick=showinfo('<%=index%>')>
    <IMG SRC="http://localhost:8080/Portal/Images/q2.bmp" ALT="Info">
    </BUTTON>
    The javascript function just opens a new window and displays the text sent in:
    <Script Language=JavaScript>
    function showinfo(arrayindex)
    InfoWin=window.open("","InfoWin","width=345,height=220");
    InfoWin.document.write(arrayindex);
    return false;
    </Script>
    Well in the above example index is a number (pulled from the database using a java bean and javascript converts it into a string then the function displays it correctly. If I replace <%=index%> with regular text it works fine as well(because java isn't used to pull data)! The problem occurs when I retrieve text data from the database and send it to the function. The web page gives errors about a nonterminating string. But I can move the code to somewhere else on the form(as long as I don't send it to java script) and it will print the text to the screen. I can also view the source of the web page and the html shows the text from the data base as if I hard coded the text into the javascript!!!!!!!!!!!!!!!!!
    This must be a bug between java and javascript!
    -can pass numbers(from a database) between the two
    -can't pass text (from a database)between the two
    Any info would help!

    Found the problem myself!
    I am using an odbc connection to msaccess and the spaces in the text was messing things up!
    After taking out the spaces it worked again.

  • How can I open a program using Java and then perform certain tasks with it?

    For example, and this is just an example, I want to write a Java program that opens MS Paint and then manipulates that program. This can be useful to automate certain tasks.
    My question is whether this can be done writing Java code and if so how? If not possible, would I need to use a scripting language instead?

    write a Java program that opens MS Paint and then
    manipulates that program. This can be useful to
    automate certain tasks."manipulates" is a too wide term. Let me narrow down:
    1. If you want to open (run) the program and then shut (kill) it down it is possible and fairly trivial to do in java. Look up Runtime and Process classes in java.lang package
    2. If you want to open the program and edit some image/document in the opened program. It is very difficult in java. May be possible... using some Java/COM bridge, assuming your native program is COM/Active-x compliant. Note: these things go beyond the boundary of JVM and needs to interact with host OS and involves shared memory, ipc and all "low level" stuffs.
    If you want to be able to play around with these COM/Activex apps- choose .NET instead :-)
    3) You can open the program from java and pass it some command line arg as in (1) above and then the program will load that document/image at startup automatically. You may then edit the doc/image thru that program itself. However, Java is not doing anything for you here, other than just starting off your native mspaint.exe ot notepad.exe.
    -BJ
    Message was edited by:
    Bimalesh

  • How to write from database to XML file using JAVA and back..

    Hi....
    I am strugling for a code to write from database to xml output instead of what i have written in flat file....could anyone please help me out...to do this and again read the same back to the database using java...

    Hi,
    In java world, there is a tutorial on what you are looking for :
    http://www.javaworld.com/javaworld/jw-01-2000/jw-01-dbxml_p.html
    It uses SAX/DOM parsers to translate XML data into the appropriate fields of the database and visa-versa.
    Hope it helps.

  • I export using quicktime and it loads and acts like its working then when it is finished there is no exported file. It's as if nothing happened!

    I have used imovie in the past for editing gaming videos but due to a software issue i have had to make a return to imovie. The issue is when i try to export either just by exporting movie or exporting using quicktime, it acts like it is working then at the end it finishes and there is no sign it worked at all. no exported file in any folder and no error message. also there is an error when i try to optimize but i can do without that if need be. Thanks!

    I have used imovie in the past for editing gaming videos but due to a software issue i have had to make a return to imovie. The issue is when i try to export either just by exporting movie or exporting using quicktime, it acts like it is working then at the end it finishes and there is no sign it worked at all. no exported file in any folder and no error message. also there is an error when i try to optimize but i can do without that if need be. Thanks!

  • Store XML data as relational data into Oracle tables using Java and XMLType

    I want to store xml data into an Oracle 11g table as relational storage, not as CLOB or Binary storage. Then I should also be able to query and fetch this data from table into an XML file.
    Any hint on how to write java code using XMLType to achieve this?
    Any help would be appreciated.

    Thanks for the explanation. I still have few confusions. I will try to elaborate my requirement with a simple example...
    I have the following xsd and xml files. "note" would be the table in database and "to", "from", "heading" and "body" would be the columns of note table. "Tove", "Jan", "Reminder" and "Don't forget me this weekend!" would go as data in one row of note table.
    How do I create note table with the xml schema (xsd file)?
    Should the note table be of XMLType or the columns?
    How do I load the XML data into the columns of note table?
    How do I retrieve the row of note table as XML file?
    XML Schema:
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.xxxxx.com"
    xmlns="http://www.xxxxx.com"
    elementFormDefault="qualified">
    <xs:element name="note">
      <xs:complexType>
        <xs:sequence>
          <xs:element name="to" type="xs:string"/>
          <xs:element name="from" type="xs:string"/>
          <xs:element name="heading" type="xs:string"/>
          <xs:element name="body" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    XML Data:
    <?xml version="1.0"?>
    <note>
      <to>Tove</to>
      <from>Jan</from>
      <heading>Reminder</heading>
      <body>Don't forget me this weekend!</body>
    </note>

  • Selective member import/export using dllexport and default constructor

    We can only export some methods in the class(https://msdn.microsoft.com/es-es/library/8d7d1303-b9e9-47ca-96cc-67bf444a08a9%28v=vs.100%29)
    What if we export only some methods in the class and not exported the default constructor(Will it get generated by the compiler in external app which use this dll?).The class may have some private data member as well which are not exposed in the published
    header file(Which we distribute with DLL).
    How the memory gets allocated to those private data members which are not exposed as the default constructor is not exported? 
    Niranjan

    We can only export some methods in the class(https://msdn.microsoft.com/es-es/library/8d7d1303-b9e9-47ca-96cc-67bf444a08a9%28v=vs.100%29)
    What if we export only some methods in the class and not exported the default constructor(Will it get generated by the compiler in external app which use this dll?).The class may have some private data member as well which are not exposed in the published
    header file(Which we distribute with DLL).
    How the memory gets allocated to those private data members which are not exposed as the default constructor is not exported? 
    Niranjan

  • Using Java and EditRocket with iMac?

    I am trying to compile a program on my iMac using EditRocket. I have to write programs in Java. I am having no luck on my own and AppleCare couldn't help me either. I cannot locate the Java in my computer and in order to use Editrocket I have to link the compiler to the Javac which I have not been able to figure out how to do. I am having dificulty locating the JDK on my computer and I am having difficulty downloading JDK from java.sun.com as well.
    Am I going about this totally wrong? Can someone help direct me to stpe by step instructions so I can get up and running for my class? No one at the college seems to be able to help because everything they use is PC based, however my professor told me that I could use a MAC to do this work because the information is out there.
    Is there another program I should be using or something?

    its not only possible but easy
    http://weblog.raganwald.com/2007/07/javascript-on-jvm-
    in-fifteen-minutes.html?retitled
    Google:
    Java + bsf (bean scripting framework) + scripting
    http://today.java.net/pub/a/today/2006/04/11/scripting
    -for-java-platform.htmlIam not sure if you are pointing to the same thing; but, Java now supports embedding script, one (only?) being Javascript. I believe this is in version 6.
    I don't have access to Sun's site right now but here is a short article on it:
    http://www.javabeat.net/javabeat/java6/articles/2007/06/java-6-0-new-features-part-1/2
    Message was edited by:
    jbish

Maybe you are looking for

  • Canon iR C3220 with EFI Fiery C1 Unit

    Hi, This is driving me crazy, I am trying to be able to print A3 on the aboe printer. First I had to learn about the iR C1 unit and finally got some drivers for it and not the Canon ones. This is what I have done. I am assuming I have the C1 unit bec

  • Toplink - Many-to-Many Mapping issue

    Hi I have the following tables User Place Team User : uid , name (where uid is primay key) Place : uid , pid( where uid and pid are composite primary keys) Team : tid , name , pid( where tid is primary key) Here the following mappings : one user is b

  • Script to collect all fonts throw an assert in CS5 Debug. Have someone an idea to find the solution?

    Hello forum members, Sorry for my english, this is not my native language. I use a Script from http://www.typomedia.org/adobe/indesign/fontcatalog/ to get all fonts from %Systemroot%/Fonts and the font folder of InDesign and write a simple text with

  • I can't find my photos i just edited in iPhoto

    I AM SOOO FRUSRATED ...I AM AVID APPLE FOR OVER 20 YEARS ..THIS NEW OS IS COMPLETELY WACKED ..I JUST IMPORTED PHOTOS FROM IPHONE THEN EDITED THEM , ADDED TO AN ALBUM .....NOW IMMEDIATELY AFTER , AS I TRY TO PUT IN A NEW FOLDER ( NOT DONE )...I CAN'T

  • Outgoing Payments

    Hi SAP Gurus, 1)  I have created Vendor Invoice F-43 for Rs.10000/- 2)  Settled the amount in two instalments in F-53 Manual Payment. I have entered      in First Instalment of Rs.500/- But the system will not taken. The error Shows:The difference is