oss-slu/ml_code_generator

Avoid duplicated generated code when splitting dataset

开放

#50 创建于 2022年10月9日

 (2 条评论) (0 个反应) (0 位负责人)Python (25 个派生)auto 404
buggood first issue

仓库指标

星标
 (2 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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:

  1. Implement an application state to check if code was generated with the split method already.
  2. Implement a find and update method at the CodeBlock class.
  3. Simply clear the CodeBlock state after each code generation.

Example: Captura de Tela 2022-10-09 às 01 17 02

贡献者指南