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

Adding query 2, 4 and 5 #243

Closed
wants to merge 1 commit into from
Closed

Adding query 2, 4 and 5 #243

wants to merge 1 commit into from

Conversation

DaceT
Copy link
Contributor

@DaceT DaceT commented Mar 8, 2022

No description provided.

Copy link
Member

@VibhuJawa VibhuJawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont see any changes to Q02, Q04, Q05. Am i missing something?

@DaceT
Copy link
Contributor Author

DaceT commented Mar 14, 2022

I dont see any changes to Q02, Q04, Q05. Am i missing something?

I've added the changes now

Copy link
Member

@VibhuJawa VibhuJawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have requested changes.

  1. We should use sklearn/dask-mll CPU models for CPU backend
  2. The check should be appropriate for cuDF and dask-cudf
  3. We should test success on both CPU and GPU backends for success.

@@ -84,7 +87,11 @@ def main(data_dir, client, c, config):
result = result.persist()

result = result.compute()
result_df = cudf.DataFrame({"sum(pagecount)/count(*)": [result]})

if isinstance(merged_df, cudf.DataFrame):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merged_df is a dask_cudf.DataFrame no , so below check is invalid.

I would suggest testing with both backed=GPU/CPU both so that we dont run into issues as were pointed out in PR #244

@@ -94,11 +97,16 @@ def build_and_predict_model(ml_input_df):
results_dict = {}
y_pred = model.predict(X)

results_dict["auc"] = roc_auc_score(y.values_host, y_pred.values_host)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use cuML models for both CPU and GPU, we should use sklearn for CPU and cuML for GPU.

@DaceT DaceT marked this pull request as draft March 16, 2022 19:13
@DaceT DaceT closed this Apr 12, 2022
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

Successfully merging this pull request may close these issues.

2 participants