AAAI 2021
[Benchmark Code and Dataset] by McNally et al.
To run the original code (CE) with noise level (n) on split (s), (default: n=0, s=1):
python original_train.py $n $s
python original_eval.py $n $s
To run either the classical one-sided-smoothing (classic=True) or our SoftLoc approach (classic=False) with noise level (n) on split (s), (default: n=0, s=1, SoftLoc loss):
python soft_train.py $n $s $classic
python soft_eval.py $n $s $classic
The results are then save in .txt file in /results.
For the causal experiments, manually change the bidirectional argument in the EventDetect defintion to False (soft_train.py (l.69), soft_eval.py (l.92), original_train.py (l.42), and original_eval.py (l.80)).
[Benchmark Code] by Adams and Marlin
[Dataset Request] The dataset has to be requested from the authors of puffMarker: A Multi-Sensor Approach for Pinpointing the Timing of First Lapse in Smoking Cessation.
To run the experiment on split (s) with noise level (n):
python PuffDetection.py $loss_id $s $n $distribution_id
-
loss_id: SoftLoc (loss_id=0), cross-entropy (loss_id=1), one-sided-smoothing (loss_id=2)
-
distribution_id: normal (distribution_id=0), binary (distribution_id=1), skew normal (distribution_id=2)
[Benchmark Code] by Hawthorne et al.
[Dataset Request] for MAPS Database.
To run the SoftLoc pipeline (to modify the noise level, change value in bash):
bash piepline.sh
Modify the oneSided variable in pipeline.sh in order to run the one-sided smoothing benchmark.
The project is structured as follows:
- pipeline.sh (Full pipeline)
- SoftNetworkModel.py (Tensorflow model with SoftLoc loss)
- main.py (Main script that runs the training)
- createDataset.py and google_create_dataset.py (dataset creation)
- infer.py and final_score.py (inference)
- config.py (Configuration file)
In addition, subfolders contains all utility functions used throughout the project.
[Benchmark Code] by Schroeter et al.
[Dataset Request] for IDMT-SMT-Drums.
In order to compute and add one random point to the heatmap (Figure 6), run the following line:
python multi_main.py
This will run a single run of the experiment with random softness and noise level.
- The results are computed and added to a results file in addSweep.py.
- The heatmap is generated with sweepVisualization.py