Python libraries for building a decision system
In this section, we explore some Python libraries to build our decision system. I focus on Bayesian and fuzzy logic models for implementing the decision system.
Bayesian
We can implement Bayesian probability using Python. For our demo, we generate output values from two independent variables, x1 and x2. The output model is defined as follows:
c is a random value. We define α, β1, β2, and σ as 0.5, 1, 2.5, and 0.5.
These independent variables are generated using a random object from the NumPy library. After that, we compute the model with these variables.
We can implement this case with the following scripts: ...
Get Smart Internet of Things Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.