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

Uso do offset com o pre.fillMissingData #2

Open
Crissky opened this issue Apr 2, 2021 · 0 comments
Open

Uso do offset com o pre.fillMissingData #2

Crissky opened this issue Apr 2, 2021 · 0 comments

Comments

@Crissky
Copy link

Crissky commented Apr 2, 2021

Lucas, eu não entendi porque está usando um offset na função preprocessData da classe ClassificationModel quando você usa o pre.fillMissingData, pois a pre.fillMissingData não acrescenta colunas ao conjunto de dados. Dessa forma a função não seria usada em colunas erradas se precisar preencher mais de uma coluna?

Não sei se mudou posteriormente, pois ainda estou na aula 20:

def preprocessData(args, use_scaling):
X, y, csv = pre.loadDataset(args.dataset, args.delimiter)
if(args.fill_missing_data_columns is not None):
columns = str(args.fill_missing_data_columns).split(',')
columns = [ int(x) for x in columns ]
offset = 0
for n in columns:
X = pre.fillMissingData(X, n + offset)
offset += n

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