Home > other >  Machine learning linear classifier
Machine learning linear classifier

Time:10-31

(1) set up random of the four categories of 2 d data (500) each type of data produced, such as:
Category 1 x coordinate data of the mean to 0, the standard deviation of 1, y coordinates of the mean to 0, the standard deviation of 1
Class 2 x coordinate data of average is 1, the standard deviation of 1, y coordinates of the mean is 4, the standard deviation of 1.5
Class 3 x coordinate data of average of 8, the standard deviation of 2, y coordinates of the mean of 5, the standard deviation of 1
Class 4 x coordinate data of the average of 3, the standard deviation is 0.5, the average at the y coordinates 3, the standard deviation of 0.5
Draw the scatter diagram of several data (scatter)

Modelled on the textbook bayesian method code, write a function, a 2 d point belongs to what kind of? For example, a given point (1.5, 0.7) (2.1, 6.1) (6.5, 7.3) (3.2, 3.3) try your bayesian decision classification? Confused and output matrix (see below),

You draw the figure should be similar to the following figure:
  • Related