You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: