MATLAB Answers

Translated by

このページのコンテンツは英語から自動翻訳されています。自動翻訳をオフにする場合は「<a class="turn_off_mt" href="#">ここ</a>」をクリックしてください。

G. Nardi
0

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

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
2019 年 2 月 7 日
G's answer moved here
I am super new to matlab but yes, it is the standard fisheries in matlab data set. I have no idea if it would work because meas and species would be different sizes.
After I input what you suggested, this is what it shows.
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
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

サインイン to comment.

タグ

製品


リリース

R2018b

0 件の回答


Translated by