Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What is the network classification method of matlab vector quantization?

Shulou Source: shulou.com Published: 2022-06-01 03:19:30 09月26日 Update

In this article Xiaobian introduces in detail "what is the method of matlab vector quantization network classification", the content is detailed, the steps are clear, and the details are handled properly. I hope this article "what is the method of matlab vector quantization network classification" can help you solve your doubts.

Lvqnet is the creation function of learning vector quantization network to solve supervised classification problems.

[XMagi t] = iris_dataset

% load data, x is the input sample, t is the expected output

Rng (0)

Ri=randperm (150)

% partition training and test set

X1roomx (:, ri (1:50))

T1 ri (:, T1 (1:50))

X2roomx (:, ri (51Plus 150))

T2roomt (:, ri (51lav 150))

Net = lvqnet (20)

% create a network for training

Net = train (net,x1,t1)

Y = net (x2)

% Test

Yy=vec2ind (y)

Ty=vec2ind (T2)

Sum (yy==ty) / length (yy)

Read here, this "what is the method of matlab vector quantization network classification" article has been introduced, want to master the knowledge of this article also need to practice and use in order to understand, if you want to know more related articles, welcome to pay attention to the industry information channel.

Tags: Networks vectors classifications methods articles content learning testing training appropriateness functions ideas data new knowledge more samples steps knowledge knowledge points articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi MySQL NVidia Shulou Tech Info Linux