@@ -3,22 +3,28 @@ This repository contains data and code to generate results from the paper
...
@@ -3,22 +3,28 @@ This repository contains data and code to generate results from the paper
_Residual Selection for Consistency Based Diagnosis Using Machine Learning Models_
_Residual Selection for Consistency Based Diagnosis Using Machine Learning Models_
by Erik Frisk and Mattias Krysander, Department of Electrical Engineering, Linköping University, Sweden
by Erik Frisk and Mattias Krysander, Department of Electrical Engineering, Linköping University, Sweden
The repository includes code in both Matlab and Python (in the form of a Jupyter notebook).
presented at Safeprocess-2018, Warszaw, Poland.
Note that the generated plots are not identical to the results in the paper where a specific Matlab implementation of the machine learning algorithms were used. However, the methodology is the same and the results are similar.
The repository includes code in Matlab and Python. Note that the generated plots are not identical to the results in the paper where a specific Matlab implementation of the machine learning algorithms were used. However, the methodology is the same and the results are similar.
If you have any questions, you are welcome to contact any of the authors
If you have any questions, you are welcome to contact any of the authors<br>
Erik Frisk (erik.frisk@lliu.se) or
Erik Frisk (erik.frisk@lliu.se) or
Mattias Krysander (mattias.krysander@liu.se)
Mattias Krysander (mattias.krysander@liu.se)
# Matlab installation instructions
# Get files
Clone the git repository and run the file ```main.m``` in the ```code``` directory.
To get the files, either download the zip-archive or clone the git repository by
Run the file ```main.m``` in the ```code``` directory.
# Python installation instructions
# Python instructions
You must pick the mechanism by which you install packages, here the Virtualenv approach is described. Below is a generic approach that should work on linux, MacOS, or Windows.
You must choose the mechanism by which you install packages, here the [Virtualenv](https://virtualenv.pypa.io/) approach is described but it should be straightforward to modify for, e.g., [conda](https://www.continuum.io/downloads) or other python package managers. Below is a generic approach that should work on linux, MacOS, or Windows.
First, clone the git repository. Then, create a virtual environment
First, after getting the files, create a virtual environment
```bash
```bash
% python3 -m venv env
% python3 -m venv env
```
```
...
@@ -28,13 +34,14 @@ and activate the virtual environment
...
@@ -28,13 +34,14 @@ and activate the virtual environment