tyMadara / ILS-CSL

Supplementary materials and codes for the paper "Causal Structure Learning Supervised by Large Language Model"
10 stars 3 forks source link

Causal Structure Learning Supervised by Large Language Model

Welcome to the repository of code and materials of the research on Causal Structure Learning Supervised by Large Language Model.

Installation

Follow these steps to install and set up the necessary environments for running the project:

  1. Download repository: Download all the necessary files to your local machine.

  2. Install Graphviz: If not installed, run the following command:

    sudo apt-get install graphviz libgraphviz-dev gcc
  3. Navigate to the project folder:

    cd ./ILS-CSL
  4. Install the required packages: Run the installation script with the following command:

    sh install.sh
  5. Run the main code: Execute the primary script by running:

    python main.py

Project Structure

Here's an explanation of key directories and files in this repository:

Code Overview

Running the Core Experiment

Quick Start

To run the core ILS-CSL code, execute the following command:

python main.py --dataset=asia --alg=HC --score=bdeu --data_index=1 --datasize_index=0

This command saves the raw output in the out/ folder and figures in the img/ folder. Further process more statistics by running:

python statics_plot.py

Configuration Options