Skip to content

Conversation

@Yancey0623
Copy link
Collaborator

fixed #3090


with db.buffered_db_writer(conn, result_table, column_names, 100) as w:
for features in pred_dataset:
for features, (row, _) in zip(pred_dataset, predict_generator()):
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if the result order of the SELECT ... statement is always deterministic? I mean: does the data order of pred_dataset can always be the same as predict_generator?

Copy link
Collaborator Author

@Yancey0623 Yancey0623 Nov 10, 2020

Choose a reason for hiding this comment

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

dataset is generated by generator, according to the source code of from_generator, it stays the same order expect calling shuffle

@codecov-io
Copy link

codecov-io commented Nov 10, 2020

Codecov Report

Merging #3098 (9de4283) into develop (c9d48b1) will increase coverage by 0.04%.
The diff coverage is 51.42%.

Impacted file tree graph

@@ Coverage Diff @@ ## develop #3098 +/- ## =========================================== + Coverage 50.88% 50.93% +0.04%  =========================================== Files 248 248 Lines 18447 18493 +46 =========================================== + Hits 9387 9419 +32  - Misses 8364 8378 +14  Partials 696 696 
Impacted Files Coverage Δ
python/runtime/tensorflow/predict.py 11.70% <0.00%> (-0.80%) ⬇️
go/cmd/sqlflowserver/e2e_common_cases.go 91.84% <100.00%> (+0.19%) ⬆️
python/runtime/step/xgboost/predict.py 94.11% <0.00%> (-1.20%) ⬇️
python/runtime/step/xgboost/train.py 78.75% <0.00%> (-1.00%) ⬇️
python/runtime/step/xgboost/evaluate.py 91.25% <0.00%> (-0.86%) ⬇️
python/runtime/pai/prepare_archive.py 32.14% <0.00%> (ø)
python/runtime/step/xgboost/explain.py 76.51% <0.00%> (+0.48%) ⬆️
python/runtime/pai/submit_pai_task.py 31.57% <0.00%> (+1.57%) ⬆️
go/sqlfs/reader.go 71.01% <0.00%> (+2.26%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c9d48b1...9de4283. Read the comment docs.

Copy link
Collaborator

@sneaxiy sneaxiy left a comment

Choose a reason for hiding this comment

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

LGTM.

@Yancey0623 Yancey0623 merged commit ddf4b2d into sql-machine-learning:develop Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants