1 / 5

KDD CUP 2007

KDD CUP 2007. 機械系碩一丁組 M9603416 吳韋霆. 程式碼. clear all load transfer.txt; load tran.txt; transfer(:,[1 2])=[]; Targetset=transfer; [r_tran, c_tran]=size(tran); Dataset=tran; ind_train=1:3:(r_tran); ind_val=2:3:(r_tran); ind_test=3:3:(r_tran);. 程式碼.

reilly
Download Presentation

KDD CUP 2007

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. KDD CUP 2007 機械系碩一丁組 M9603416 吳韋霆

  2. 程式碼 • clear all • load transfer.txt; • load tran.txt; • transfer(:,[1 2])=[]; • Targetset=transfer; • [r_tran, c_tran]=size(tran); • Dataset=tran; • ind_train=1:3:(r_tran); • ind_val=2:3:(r_tran); • ind_test=3:3:(r_tran);

  3. 程式碼 • data_train=Dataset(ind_train,:); tar_train=Targetset(ind_train,:); • dtmn=min(data_train)'; dtmx=max(data_train)'; • net01 = newff([dtmn dtmx],[10 1],{'tansig' 'purelin'},'trainlm'); • data_val.P=Dataset(ind_val,:)'; data_val.T=Targetset(ind_val,:)'; • data_test.P=Dataset(ind_val,:)'; data_test.T=Targetset(ind_val,:)'; • [net02,tr]=train(net01, data_train', tar_train',[],[],data_val,data_test);

  4. 證實 • Yt = sim(net02,Set03'); • plot(Yt)

More Related