Skip to content

Conversation

@sperlingxx
Copy link
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
raise XGBoostError('invalid shape %s of FeatureMeta' % value)


class SqlflowDSConfig(typing.NamedTuple):
Copy link
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
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
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
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://github.com/sql-machine-learning/sqlflow/pull/647/files#diff-10bbf40d8866f298982cb34c597430d9R73

Copy link
Collaborator

@Yancey0623 Yancey0623 left a comment

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