oss-slu/ml_code_generator

Avoid duplicated generated code when splitting dataset

オープン

#50 opened on 2022/10/09

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Python (25 件のフォーク)auto 404
buggood first issue

Repository metrics

Stars
 (2 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド