Find a weight matrix and bias which performs the following binary classification

1 回表示 (過去 30 日間)
kamogelo
kamogelo 2024 年 3 月 1 日
回答済み: the cyclist 2024 年 3 月 1 日
hello
i am working on a problem and i am using matlab to find hardlim but it keeps on telling me hardlim requires Deep learning toolbox so how can i solve this

回答 (2 件)

Torsten
Torsten 2024 年 3 月 1 日
編集済み: Torsten 2024 年 3 月 1 日
Write your own hardlim function (see below) or license the Deep Learning Toolbox.
N = -1+2*rand(10,5)
S1 = my_hardlim(N)
function S = my_hardlim(N)
S = zeros(size(N));
S(N>=0) = 1;
end

the cyclist
the cyclist 2024 年 3 月 1 日
Some MATLAB functionality is not included in basic MATLAB, and you need to purchase a separate "toolbox". The hardlim function is in the Deep Learning Toolbox.
If you don't have this toolbox installed, you don't have access to that function. Do you think you have it? What do you get if you type
ver
at the command line?

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by