Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the network classification method of matlab vector quantization?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report