How do i get three colums as output?

2 ビュー (過去 30 日間)
Michelle H
Michelle H 2021 年 3 月 26 日
コメント済み: Michelle H 2021 年 3 月 26 日
Hello, I am new to machine learning and matlab and i was wondering if someone could help me with an issue. I want to get three outputs in my NN. The data is one hot encoded and therefore needs three outputs.
This is how i divided up the dataset for inputs and outputs:
data = csvread('datasetNY.csv');
x = data(:,1:92);
t = data(:,93);
But i also have tried t = data(:,93,92,91); to make the three last rows in the dataset the outputs. And the error i get is:
Index in position 3 exceeds array bounds (must not exceed 1).
How do i change it so it allows three colums to be the output?

採用された回答

the cyclist
the cyclist 2021 年 3 月 26 日
t = data(:,[93,92,91]);
will be the the last three columns from data, in reverse order.
  1 件のコメント
Michelle H
Michelle H 2021 年 3 月 26 日
Thank you.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Data Preparation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by