% Experiment Script
% 
% Walk Generation with Valence/Arousal Control
%
% Version 2.0
%
% By: Omid Alemi
%
% Train a Factored Conditional RBM with real style values on MovingStories
% VA MOCAP Walks
%

clear all; close all;
more off;   %turn off paging
%
addpath('Libs/FCRBM') %fcrbm routines (original Taylor's)
addpath('Libs/Scripts/') %pre/post scripts
addpath('Libs/DataHandling/') %pre/post scripts
addpath('Libs/TaylorScripts') %play data


%set up training data
%make_labels_avwalk_sean
%load Sean-opp.mat
%load Mered-segmented.mat
%skel.type = 'ms2.5';
load sean_rc_120;

%Motion_s = Motion;
%Labels_s = Labels;

%load mered_rc;
%Motion = [Motion_s Motion];
%Labels = [Labels_s Labels];


%%%%%%%%%%%%%%%%%%%%%%% %Training properties
ExpTitle = 'av_8walk_sean_60fps'

downsample = 2;

%how-many timesteps do we look back for directed connections
%this is what we call the "order" of the model 
n1 = 6; 

numhid1 = 600;
%There are three types of factors
%But for now, we will set them all to be size numfac
numfac = 300; 
realfeat = 1; %real-valued featues = 1; binary features = 0
numfeat = 2; %number of distributed "style" features
maxepoch = 1500;
cdsteps = 10;
pastnoise = 1;

snapshot_path = ['WalkGen_VA/Snapshots/',ExpTitle,'_',int2str(numhid1),'hid_',int2str(numfac),'fac_',int2str(numfeat),'feat_cd',int2str(cdsteps),'_',int2str(n1),'taps_sharefeatfac'];
%%%%%%%%%%%%%%%%%%%%%%%

train_fcrbm;

