How to train a time series dataset ?

조회 수: 5 (최근 30일)
Sara
Sara 2018년 5월 23일
댓글: Majid Farzaneh 2018년 5월 23일
I have a data set with 2 columns (the first column is related to currents of a battery and the second column indicates the time seconds correspond to the current). what I want to do is training the currents data according to the time (second columns).I convert my data set in form of time-series object:
(ts = timeseries(datavals,timevals)). And now I want to train this object. However I am not sure whether it is possible or not and how can I do it.
I would appreciate any further help.

채택된 답변

Majid Farzaneh
Majid Farzaneh 2018년 5월 23일
The attached file may help you.
  댓글 수: 2
Sara
Sara 2018년 5월 23일
Dear Majid,
I appreciate your help.
Majid Farzaneh
Majid Farzaneh 2018년 5월 23일
You're welcome

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

추가 답변 (3개)

Majid Farzaneh
Majid Farzaneh 2018년 5월 23일
편집: Majid Farzaneh 2018년 5월 23일
Hi, what's your purpose for training this data? A neural network can predict something for you. For example you can train the network by current as input and time as output, then use the network, give a current to it and it provides a time for you. This is a single input/ single output network and you can use a feedforwardnet like this:
net=feedforwardnet(10); % 10 is number of neurons in the first layer
net=train(net,inputs,targets);
Now you have a trained network and you can use it like this:
out=net(test_data)

Sara
Sara 2018년 5월 23일
Hello Majid, thanks for your answer, I just want to train current's behavior according to the corresponding time. So that in case of new data the system would recognize this data is current not for example voltage.
  댓글 수: 4
Sara
Sara 2018년 5월 23일
Yes I can understand Persian. I would appreciate your help.
Majid Farzaneh
Majid Farzaneh 2018년 5월 23일
편집: Majid Farzaneh 2018년 5월 23일
My comment in Persian considered as spam! Send your data if it's possible. I'll try to write a code for your purpose.

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


Greg Heath
Greg Heath 2018년 5월 23일
편집: Greg Heath 2018년 5월 23일
Consider current as a function of time.
The rest should be straightforward using FITNET.
HOWEVER, YOU HAVE USED THE TERM TIMESERIES. THIS COULD IMPLY THAT EACH POINT BEYOND THE ITH DEPENDS ON THE PREVIOUS I VALUES AND NOT NECESSARILY EXPLICITLY ON TIME.
Thank you for formally accepting my answer
Greg
  댓글 수: 1
Sara
Sara 2018년 5월 23일
Thanks for you answer. could you please explain how should I consider it as a time function. the main problem I've faced is that considering current as time function. probably my problem is not time series, and I am in mistake.
Thank you in advance.

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

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by