Hi,
I have several records from each day and I'm trying to learn a network from the past seven days of data. The goal is to perform inference on the 8-th day. However, every day the training window advances by one day. I don't want to recreate the DataSet object from scratch every time the training window changes - ideally it would be nice if I could delete the records from the first day from the training data and append records from the last day. The other option is to create separate DataSet objects for each day and learn a network from multiple DataSet objects. I appreciate any advice if I can do either of these.
Thanks!
jSmile - learning network from multiple DataSet objects
Re: jSmile - learning network from multiple DataSet objects
In DSL_dataset class there is a methodshashanka wrote:Hi,
I have several records from each day and I'm trying to learn a network from the past seven days of data. The goal is to perform inference on the 8-th day. However, every day the training window advances by one day. I don't want to recreate the DataSet object from scratch every time the training window changes - ideally it would be nice if I could delete the records from the first day from the training data and append records from the last day. The other option is to create separate DataSet objects for each day and learn a network from multiple DataSet objects. I appreciate any advice if I can do either of these.
Thanks!
Code: Select all
int RemoveRecord(int rec);
To add a record You can use the following:
Code: Select all
void AddEmptyRecord();
//...
void SetInt(int var, int rec, int value)
{
DS_VALIDATE_IDX(var, rec);
assert(IsDiscrete(var));
(*static_cast<std::vector<int> *>(data[var]))[RealIdx(rec)] = value;
}
void SetFloat(int var, int rec, float value)
{
DS_VALIDATE_IDX(var, rec);
assert(!IsDiscrete(var));
(*static_cast<std::vector<float> *>(data[var]))[RealIdx(rec)] = value;
}
Re: jSmile - learning network from multiple DataSet objects
Thanks Marcin!
Re: jSmile - learning network from multiple DataSet objects
MarcinK,MarcinK wrote: In DSL_dataset class there is a method
It is not described in the documentation, but it appears in header (dataset.h) file so it is available.Code: Select all
int RemoveRecord(int rec);
I'm using jSmile and the method is not there.
-
- Site Admin
- Posts: 1422
- Joined: Mon Nov 26, 2007 5:51 pm
Re: jSmile - learning network from multiple DataSet objects
Unfortunately, we do not expose the RemoveRecord in jSMILE. If you want to run learning using a subset of rows from existing DataSet, your only option is to create new DataSet object and fill its content programatically.shashanka wrote:I'm using jSmile and the method is not there.
Re: jSmile - learning network from multiple DataSet objects
Thanks! Are there any future plans to expand the set of methods exposed in jSMILE?
-
- Site Admin
- Posts: 1422
- Joined: Mon Nov 26, 2007 5:51 pm
Re: jSmile - learning network from multiple DataSet objects
There are plans, but we do not have any realistic time estimates at this point.shashanka wrote:Thanks! Are there any future plans to expand the set of methods exposed in jSMILE?