i have dataset of Earthquake , which has 295 rows and 9 columns.i have made input as DataSetIn which has 295 rows and 8 columns whie Output as DataSetOut 295 rows and 1 columns .Code gives error on newrb.Code is as follow
inputs = DataSetIn'; % 8x295
outputs = DataSetOut; % 295x1
newrb(inputs,outputs);
error "internal dimentions must agree".

 채택된 답변

Geoff Hayes
Geoff Hayes 2015년 6월 22일

0 개 추천

Seemab - according to the documentation for newrb, the input matrices P and T (your inputs and outputs) must be a R-by-Q matrix of Q input vectors and a S-by-Q matrix of Q target class vectors respectively. You may want to transpose the outputs array so that it has the same number of columns as inputs
inputs = DataSetIn'; % 8x295
outputs = DataSetOut'; % 1x295
newrb(inputs,outputs);

댓글 수: 1

Seemab  Janjua
Seemab Janjua 2015년 6월 22일
thanks Sir Geoff Hayes.. Error has removed

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Seismology에 대해 자세히 알아보기

태그

질문:

2015년 6월 21일

댓글:

2015년 6월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by