Calling a Function specific from a ToolBox
22 次查看(过去 30 天)
显示 更早的评论
Hi again Mathworks people. :)
I am attempting to use the function classify() from the Deep Learning Toolbox, however it seems to call instead on the Statistic and Machine Learning function with the same name.
My question is: is there a way to specify where the function/which toolbox the function is called from?
this is the function I wish to use:
this is the function it is currently calling (which I do not want to use):
Thanks in advance!
Miller
0 个评论
采纳的回答
Steven Lord
2022-8-23
The function you indicated you wanted to call is only called in the event that the first input argument is either "a SeriesNetwork or a DAGNetwork object". Is it? Let's see which version of the train function you're calling.
compnet = competlayer(3);
which -all train(compnet, rand(3))
This function returns a "Trained network, returned as a network object." A network object is neither a SeriesNetwork nor a DAGNetwork. What can you do with a network object?
methods network
What happens when you try to classify a network?
which -all classify(network)
If you want to use the classify function you need to work with a deep neural network, not a shallow neural network.
2 个评论
Steven Lord
2022-8-23
I don't know exactly what you're trying to do, so the links to the SeriesNetwork and DAGNetwork pages in the first paragraph of my answer would probably be my first stop.
Alternately look for the sub-category on the list of functions in Deep Learning Toolbox to find the one that closest describes the application you're working on (processing image data, processing time series data, approximating a function, etc.) and see if there are pretrained networks or network creation functions in that sub-category.
更多回答(2 个)
Chunru
2022-8-23
seriesnetwork is a calss. It has a method of "classify". In order to use the method, you need to create the network and train it. Then can call classify by
classify(net, ...) % where net is the network trained
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!