IBM Quest Market-Basket Synthetic Data Generator

April 27, 2010 at 4:14 pm 15 comments


I recently need IBM Quest Market-Basket Synthetic Data Generator for my study on association rule mining. After a lot of web search effort, I finally found the program source code at the project’s website. There are also many instructions available here. The link to this website has broken recently and I could not find where the site moved to. However, the compling of original source code was failed on my Red Hat 4.1 box. These code was written around 1996 for IBM compliler so some small changes are needed to make it work such as replacing complier  by g++ in Makefile, revising code in gen.h file. You can download the converted code at the link

http://www.cs.indiana.edu/~cgiannel/assoc_gen.html

However, this code still did not work on my machine. It produced a lot of  errors while compliling gen object.

gen.h:185: error: ‘StringSet’ has not been declared
gen.C: In member function ‘void Taxonomy::write_asc(std::ofstream&)’:
gen.C:183: error: ‘setw’ was not declared in this scope
gen.C: In member function ‘void ItemSet::display(std::ofstream&)’:
gen.C:334: error: ‘setprecision’ was not declared in this scope
gen.C: In member function ‘void String::display(std::ofstream&,LINT)’:
gen.C:380: error: ‘setw’ was not declared in this scope
gen.C: At global scope:
gen.C:387: error: prototype for ‘void String::display(std::ofstream&,StringSet&, LINT)’ does not match any in class ‘String’
gen.h:185: error: candidates are: void String::display(std::ofstream&,int&, LINT)
gen.C:378: error: void String::display(std::ofstream&,LINT)
gen.C: In member function ‘void String::display(std::ofstream&,StringSet&, LINT)’:
gen.C:392: error: ‘setw’ was not declared in this scope
gen.C: In member function ‘void StringSet::display(std::ofstream&)’:
gen.C:580: error: ‘setprecision’ was not declared in this scope
gen.C:584: error: call of overloaded ‘display(std::basic_ofstream<char, std::char_traits<char> >&, LINT&)’
is ambiguous
gen.C:378: note: candidates are: void String::display(std::ofstream&,LINT)
gen.h:185: note:  void String::display(std::ofstream&,int&, LINT)
gen.C:587: error: call of overloaded ‘display(std::basic_ofstream<char, std::char_traits<char> >&, LINT&)’
is ambiguous
gen.C:378: note: candidates are: void String::display(std::ofstream&, LINT)
gen.h:185: note:                 void String::display(std::ofstream&,int&, LINT)
gen.C: In member function ‘void StringSet::display(std::ofstream&,StringSet&)’:
gen.C:597: error: ‘setprecision’ was not declared in this scope
gen.C: In member function ‘void Transaction::write_asc(std::ofstream&,LINT)’:
gen.C:775: error: ‘setw’ was not declared in this scope
make.exe: *** [gen.o] Error 1

To fix this issue, I simply added the missing include instructions and declared StringSet class at the top of gen.h file. And now compliling worked well on my machine.

#include “glob.h”
#include “dist.h”
#include <stream.h>
#include <fstream>
#include <iostream>
#include <string>
#include <iomanip> //for settw
using namespace std;
class StringSet;
 
Advertisements

Entry filed under: Association Rule Mining. Tags: , , , , , , , , , , , , , , , , , , , , , , , .

How to know which Linux Distribution you are using? Linux log files location

15 Comments Add your own

  • 1. Arthur Pitman  |  May 10, 2010 at 10:37 am

    I’m also trying to get this working. I made the changes you described and got it to compile, but get access violations (crashes) when I try to actually use it to generate sequences with “gen seq -fname test”

    Reply
  • 2. Sarah  |  July 26, 2010 at 12:26 pm

    Hello. I am working on a project which would greatly benefit from this software. However, the only links to it that I can find all lead to page not found, including the one in your entry.

    Do you, or anyone else reading this blog, have any idea where I might find a download for this system?

    Thanks!!

    Reply
  • 4. sreeji ks  |  August 21, 2010 at 2:52 am

    i need th e data genrator for rule mininng to work on windowsxp and turboc++ can I

    Reply
    • 5. lanvu  |  August 23, 2010 at 11:44 am

      I have not tested these source codes on Windows but I think you can compile to the program on Windows platform with small adjustments. Let’s try and let me know if there is any compiling errors.

      Reply
  • 6. Delphimus  |  September 6, 2010 at 2:15 am

    Thanks a lot.

    Can i ask you a favor?
    i still don’t understand about different between lit, tax, or seq.
    (in the argument of gen)

    …^(^ ^)^…

    Reply
  • 7. Delphimus  |  September 6, 2010 at 2:32 am

    And when i generate it with “gen lit -fname foobar”, the data is unreadable.( Maybe it’s binary? )

    …^(^ ^)^…

    Reply
  • 8. zenn  |  September 12, 2010 at 5:24 am

    Can someone describe what arguments to use to generate sequences? I have it compiled. Thanks!

    Reply
    • 9. lanvu  |  September 12, 2010 at 1:11 pm

      You can use “-help” option in the command program to see the arguments

      Reply
  • 10. André  |  October 15, 2010 at 3:03 pm

    Well, before finding this post I try of many ways compile this generator. Finale I found this page, but I’am having the same problem before, I use Linux Ubuntu and don’t have the file stream.h. I download some versions, but nothing.

    Plz, someone can upload this file and post the link here, or send to my e-mail?

    Thanks!

    Reply
  • 11. Poornima  |  January 24, 2011 at 9:15 am

    Is Systhetic data generator is work for windows? and i found the sorce code from the link above u provide.
    hw to run this source code?
    i need procedure or steps to run this tool. help me. This tool helps me to do my project

    Reply
    • 12. lanvu  |  January 25, 2011 at 11:47 am

      The source is to run on Linux/Unix. I think it will work on Windows with minor adjustments on code. Why don’t try to create a Emtry Project of Visual C++, add all files into project, complile it and let me know if it work?

      Reply
  • 13. kik  |  February 8, 2011 at 3:05 am

    I try to run “IBM synthetic data generator” on windowXP with visual C++, i think it work but i don’t know what argument to use

    Reply
    • 14. lanvu  |  February 8, 2011 at 5:55 am

      Arguments include type of rule and options

      lit|tax|seq [options]

      or

      lit|tax|seq -help For more detailed list of options

      lit: For Rules
      seq: For Sequences
      tax: For Rules with Taxonomies

      Reply
  • 15. Arthur Pitman  |  February 9, 2011 at 3:55 am

    I have just completed a C# rework of this application, if anyone is interested. It’s open source (GPLv2) and available on CodePlex.

    Check out http://synthdatagen.codeplex.com/

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent Posts

/openmp AMD app fixing dead pixel iphone C++ cmd program CPU C sharp dead pixels directory download ibm synthetic data generator Dynamic Dynamic Memory Allocation Edit Environment Variables in Windows Environment Variables error lnk2019: unresolved external symbol _getprocessmemoryinfo@12 referenced in function error lnk2019: unresolved external symbol _ getprocessmemoryinfo@12 referenced in function "void __cdecl printmemoryinfo(unsigned long example code Fixing Dead Pixels and Gray Lines on the iPhone Screen Fixing Dead Pixels on the iPhone Screen Fixing Gray Lines on the iPhone Screen Fix iPhone getprocessmemoryinfo GPU Gray Line iPhone Screen gray lines gray pixels green pixels GUI how to "new" a two-dimension array in C++ how to use ibm quest synthetic data generator ibm data generator ibm quest data generator ibm quest data generator exe ibm quest data mining project ibm quest market-basket synthetic data generator ibm quest market basket market-basket synthetic data generator ibm quest synthetic data generator ibm quest synthetic data generator linux ibm synthetic data generator ibm synthetic generator Intel iPhone Iphone 3G iPhone 3GS iPhone 4 iphone gray lines on startup iphone pixel damage iPhone Screen iPhone screen damage Linux market-basket synthetic data generator Memory Allocation Multicore multithread multi thread multi threaded multithreading mysql extract data into file new OpenCL Path processor quest data generator quest synthetic data generator R SAS Set Environment Variables Set Environment Variables in Windows souce code source code stuck pixels system file two dimension array Windows 7 Windows Vista

%d bloggers like this: