time-series-machine-learning/tsml-java

Feature request: all some form of automatic processing of line 2

Opened this issue · 0 comments

I was thinking that we could generalise the line 2 processing for line 2 of the files, define an interface and then maybe add in processing capabilities when required? I want to summarise some shapelet parameters, it would be nice if it was done in a structured way

One way is to have a generic write file Parameters.csv which is written to if an instance of the interface is provided. So input the line, return a string

interface ParameterFormat{
String process(String str);
}
or a built in functional interface if preferred. Then if I want to say get number of shaplets, I just implement a functor say
ParameterFormat para=str -> return str.split(",")[22]
and it will put them in the parameters file, or something like this anyway, not sure, just wanting to get out all number of shapelets at the moment, and want to avoid a complete bespoke app.