-
As per the response to my previously requested feature #1043 , I understand to get Intermidiate results of the selector's attributes (feature evolution, scoring, etc) one has to wait for process to complete or issues a trigger a KeyboardInterrupt. In both cases, terminating the selection process. Can you please guide me what section of the code should I change to continuously write the attributes values to a txt file that I can keep updating as the selection process proceeds? Suppose those attributes are written to a file, I can do some anoalysis of the results during feature evolution (e.g. for the long run example below that took over 2 weeks, and still running)
What section of the code should I change, to have these written to file? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think you could replace the Then, you could could insert |
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
I think you could replace the
sys.stderr.write
lines withf.write(...)
's wheref
is a file object open for writing. Or, you could redirect the stderr out in your terminal to a file.Then, you could could insert
self.finalize_fit()
calls in thefit
method; maybe here would be a good point: https://github.com/rasbt/mlxtend/blob/master/mlxtend/feature_selection/sequential_feature_selector.py#LL534C2-L536C40