Simple linear regression is one of the most important types of data analysis which models the relationship between two variables. A special case of supervised learning, it is one of the simplest tasks that can be performed using TensorFlow.js.
A regular ML-based solution typically includes the following steps:
In a TensorFlow.js-based application, those steps correspond to the following sections of the code:
In the case of simple linear regression, the model architecture can be defined as follows:
The Wine Quality Data Set is a popular dataset describing vinho verde wine variants. It contains various features such as acidity, density, alcohol content, etc. about each given wine sample.
One of the observations that can be made from the dataset is that alcohol and density are negatively correlated.