Grab a “regression” dataset from the UCI archive:

Grab a “regression” dataset from the UCI archive: (Links to an external site.) or these datasets: (Links to an external site.) Do not use the same dataset as anyone else, i.e., pick randomly.Choose a single input variable and output variable, and graph their relationship (scatter plot). The plot does not need to look “linear,” since we can find a linear regression line for any data.Then create a single-neuron network (Linear type neuron) and train the network on the data. Also use the linear regression function of sklearn to find the actual best regression line. Then plot the network’s predictions and sklearn’s predictions on a scatter plot with the original data.
Requirements: full answer

Categorized as Python

Leave a comment

Your email address will not be published. Required fields are marked *