how do i generate samples of two input xor gate for neural networks

3 ビュー (過去 30 日間)
Thirunavukkarasu
Thirunavukkarasu 2014 年 8 月 24 日
コメント済み: Andy L 2014 年 8 月 28 日
how do i generate 32 samples for two input xor gate

採用された回答

Greg Heath
Greg Heath 2014 年 8 月 25 日
You mean 32 examples (a single sample is a set of multiple examples).
There are only 4 possible inputs. They are obvious.
Hope this helps.
Thank you for formally accepting my answer
Greg
  4 件のコメント
Andy L
Andy L 2014 年 8 月 28 日
75% + 15% + 15%... I'll assume a typo
Andy L
Andy L 2014 年 8 月 28 日
Then it is not clear what you are asking - the question you posed is asking how to generate samples you now say you have done!

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

その他の回答 (1 件)

Andy L
Andy L 2014 年 8 月 28 日
To generate a "random" binary sequence check out this similar thread! http://www.mathworks.co.uk/matlabcentral/answers/114656-random-binary-sequence-generator. You need to do it twice (one per input) and specify the number number of samples in each sequence (32). I hope this is helpful.

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by