Repository files navigation
main.cpp - Parallel runner for computing Canonical Basis
lib - Library for computing canonicalc basis
toCXT.cpp - Code to convert a Context in the format accepted by main.cpp to the cxt format
fromCXT.cpp - Code to convert a Context in cxt format to the format accepted by main.cpp
StandardDS - Contains some real-world contexts
StandardDSCXT - Contains some real-world contexts in cxt format
ArtificialDS - Contains some artificial contexts
ArtificialDSCXT - Contains some artificial contexts in cxt format
Compilation:
make derictory for cmake (recommend: ./build, you can use your own)
Running:
build/algo.out <path/to/context.txt> <Epsilon> <Delta> <strong/weak> <uniform/frequent/area-based/squared-frequency> <number of threads> none <print-format:csv/csv-with-header/readable>
build/algo.out datasets/StandardDS/mushroom.txt 0.01 0.1 weak uniform 40 none readable
You can also use python script runner.py to run for every dataset in folder, every distribution and store result into file
python3 runner.py build/algo.out <path/to/context.txt> <path/to/output/file.csv> <Epsilon> <Delta> <number of threads>
python3 runner.py build/algo.out datasets/StandardDS out.csv 0.1 0.1 8
Compilation - g++ -o toCXT toCXT.cpp
Running - ./toCXT <Input> > <Output>
Compilation - g++ -o fromCXT fromCXT.cpp
Running - ./fromCXT < <Input> > <Output>
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Languages
Jupyter Notebook
90.7%
C++
8.8%
Other
0.5%
You can’t perform that action at this time.