필터 지우기
필터 지우기

Use only the first 100 entries (the first 2 classes)

조회 수: 4 (최근 30일)
G. Nardi
G. Nardi 2019년 2월 7일
댓글: G. Nardi 2019년 2월 7일
I have this homework assignment, I asked for help but I am a bit embarassed that I still don't know what to do.
I am loading 'fisheris'. I know how to parition the dataset into 60% training partition and 40% test partition
but it says to use only the first 100 etnries (the first 2 classes) for the remianing part of the assignment.
  1. species (1:100)
  2. meas (1:100,:)
If anybody can break down what this mean and how to approach this I would really appreciate it.
I know this must be a tall ask.
  댓글 수: 4
Geoff Hayes
Geoff Hayes 2019년 2월 7일
You say that I have no idea if it would work because meas and species would be different sizes. But isn't that still true if you use all of the entries/rows? How would you solve this problem if you use all of the data? Why should using all or a subset of the data be different?
G. Nardi
G. Nardi 2019년 2월 7일
Partitioning the data set. I think I have it done correctly but not sure.
commandwindow;
load ('fisheriris');
training = (1:60);
test = (61:100);
speciesSubset = species(1:100, :);
measSubset = meas(1:100, :);
function.png

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Support Vector Machine Regression에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by