Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TonyBagnall opened this issue Mar 16, 2021 · 0 comments
Open

Comments

@TonyBagnall
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant