Skip to content

Conversation

@weiguoz
Copy link
Collaborator

@weiguoz weiguoz commented Oct 14, 2019

fix #976

@weiguoz weiguoz added the SHAP label Oct 14, 2019
@weiguoz weiguoz force-pushed the analyzer_ir_generator branch 2 times, most recently from f91555e to 516073f Compare October 17, 2019 06:40
@weiguoz weiguoz force-pushed the analyzer_ir_generator branch from 675fc40 to d635bf2 Compare October 17, 2019 13:48
@weiguoz weiguoz changed the title [WIP] [Intermediate Representation] Generate AnalyzeIR [Intermediate Representation] Generate AnalyzeIR Oct 17, 2019
// TODO(joyyoj) read feature mapping table's name from table attributes.
// TODO(joyyoj) pr may contains partition.
fmap := columns.FeatureMap{pr.tables[0] + "_feature_map", ""}
fmap := columns.FeatureMap{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure why we need to change these files. Have you used a code formatter?

userSpec.DType,
userSpec.Delimiter,
nil,
*meta.featureMap}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a linter complaining we need to explicitly name the field name? If so, please file the change in a separate PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The go vet complains: [govet] xxx(struct) composite literal uses unkeyed fields [E] while I'm editing in another file.
I found that there was not much code to be changed, so I changed them conveniently.

Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

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

LGTM++

@weiguoz weiguoz merged commit af50695 into sql-machine-learning:develop Oct 18, 2019
@weiguoz weiguoz deleted the analyzer_ir_generator branch October 18, 2019 09:38
shendiaomo pushed a commit to shendiaomo/sqlflow that referenced this pull request Oct 22, 2019
…g#997)

* Remove complaints: "GOLANG: composite literal uses unkeyed fields"

* add explainer for AnalyzeIR

* add test for analyzeIR

* add ut for generateAnalyzeIR

* remove TO before TRAIN/ANALYZE in ut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Intermediate Representation] Generate AnalyzeIR from SQL

3 participants