how to take just 10% of my whole data and then train it?

조회 수: 1 (최근 30일)
fatemeh p
fatemeh p 2021년 12월 31일
편집: fatemeh p 2021년 12월 31일
Hi
i have a 500*10 matrix of data and now i want to use just first 10% of rows. how can i do this?
  댓글 수: 1
Adam Danz
Adam Danz 2021년 12월 31일
10% of all elements in the matrix?
10% of the columns or rows?
I also recomment using cvpartition as Cris LaPierre recommended. If you do not have the Stats & ML toolbox, use randperm to select indices of the matrix.

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

채택된 답변

Cris LaPierre
Cris LaPierre 2021년 12월 31일
I suggest looking into cvpartition.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Gaussian Process Regression에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by