ML4CPS¶
ML4CPS is a Python package for learning and analysis of the behavior of hybrid dynamical systems, with the focus on Cyber-Physical Systems (CPS). The code was developed for several research publications (bibtex).
- Website (ml4cps.ai4cps.com)
- Contact (contact@ai4cps.com)
Simple example¶
import ml4cps as at
A = at.Automaton()
A.add_states_from(["s1", "s2", "s3"])
A.add_transitions_from([("s1", "s2", "e1"),
("s2", "s3", "e1"),
("s3", "s1", "e2")])
print(A)
A.view_plotly().show()
```
## Jupyter notebook examples
- [Conveyor system SFOWL discrete data analysis](notebooks/Conveyors_SFOWL_discrete.ipynb)
- [Conveyor system SFOWL continuous data analysis](notebooks/Conveyors_SFOWL_cont.ipynb)
## Install
To install ML4CPS:
pip install git+https://github.com/ai4cps-com/ml4cps.git
to specify the version:
pip install git+https://github.com/ai4cps-com/ml4cps.git@0.1.12
## Data
In folder "data" there are several datasets which can be easily loaded using examples module.
E.g.
```python
from ml4cps import examples
discrete_data, timestamp_col, discrete_vars = examples.conveyor_system_sfowl("discrete")
will load a dataset of a conveyor system from the SFOWL.
Bugs¶
If you find any bugs, please contact us at bugs@ai4cps.com.
License¶
See LICENSE.
If you use this code in your research please cite our work.