oss-slu/ml_code_generator
Avoid duplicated generated code when splitting dataset
Offen
#50 geöffnet am 09.10.2022
buggood first issue
Repository-Metriken
- Stars
- (2 Sterne)
- PR-Merge-Metriken
- (PR-Metriken ausstehend)
Beschreibung
When a user executes the Split Data feature more than once, the code generation repeats the X.sample and X.drop lines. This behavior might not be desired in the final Python code.
Possible solutions:
- Implement an application state to check if code was generated with the split method already.
- Implement a find and update method at the
CodeBlockclass. - Simply clear the
CodeBlockstate after each code generation.
Example:
