Using Deep learning for non image classification

5 ビュー (過去 30 日間)
crixus
crixus 2017 年 3 月 12 日
コメント済み: Sai 2020 年 8 月 2 日
Hi,
Can I know is there any example to follow on how to use deep learning for non image classification ? Example using deep learning to classify fisher iris data
Thanks.
  2 件のコメント
ahmed ismail
ahmed ismail 2017 年 3 月 12 日
waiting answer
Laurence Mailaender
Laurence Mailaender 2019 年 9 月 25 日
I'm new at Machine Learning and had a lot of trouble finding examples in the documentation also... but it's there. Do 'help patternnet.' For simple classifiers, you can use train(), instead of trainNetwork. Try this:
load fisheriris
%contains 'meas' 150x4 and species 150x1
%set target (brute force)
target=[repmat([1;0;0],1,50),repmat([0;1;0],1,50),repmat([0;0;1],1,50)];
%randomize order
neworder=randsample(150,150);
measTrain=meas(neworder(1:100),:);
measTest=meas(neworder(101:end),:);
targetTrain=target(:,neworder(1:100));
targetTest=target(:,neworder(101:end));
%define and train shallow NN
snet=patternnet(10);
snet=train(snet,measTrain',targetTrain);
%test in sample
snn_in=sim(snet,measTrain');
perf_best=perform(snet,targetTrain,snn_in)
%outside training
snn_out=sim(snet,measTest');
perf_out=perform(snet,targetTest,snn_out)
Not sure I'm doing the inside/outside training in the best way, maybe you can repeat/extend the data in random order and improve the network..

サインインしてコメントする。

回答 (1 件)

Johanna Pingel
Johanna Pingel 2019 年 2 月 6 日
  2 件のコメント
Marius Facktor
Marius Facktor 2020 年 4 月 24 日
編集済み: Marius Facktor 2020 年 4 月 24 日
How about a 1D non-sequence Neural Network? It should take input X (samples by features) and labels y.
These are the available input layers for trainNetwork:
imageInputLayer, image3dInputLayer, sequenceInputLayer, roiInputLayer
These are ALL for images or sequences. Why is there no generic "InputLayer" where you can specify the number of features?
How is this not a thing? Come on Matlab.
Sai
Sai 2020 年 8 月 2 日
Matlab seems to focus more on the 'hot' deep neural network applications. Research community looks at python for a reason.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by